OpenSprinkler Forums Comments, Suggestions, Requests Opensprinkler on ESP8266 Reply To: Opensprinkler on ESP8266

#48101

TeguhTeknisi
Participant

Hi @pbecchi

In this Post https://opensprinkler.com/forums/topic/opensprinkler-on-esp8266/#post-41685
You have build OpenSprinkler with NodeMCU and 74HC595
Because i have alot 74HC595, i want to make it.

Please help me, can i have the schematic and the code?

Thanks.

Best Regrads,
Teguh

Edit:
I have choose Proto = 1
But still failed to compile….

Try to choode Proto = 8 (OSBee)
But still failed.

Here the error:

sketch/PCF8574Mio - Copia.cpp:27:6: error: prototype for 'void PCF8574::begin(int)' does not match any in class 'PCF8574'
 void PCF8574::begin(int address)
      ^
In file included from sketch/PCF8574Mio - Copia.cpp:21:0:
PCF8574Mio.h:35: error: candidate is: void PCF8574::begin(uint8_t)
  void begin(uint8_t address);
       ^
In file included from sketch/PCF8574Mio - Copia.cpp:23:0:
/home/sukanime/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/Wire/Wire.h: In member function 'uint8_t PCF8574::read8()':
/home/sukanime/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/Wire/Wire.h:69:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int)
     uint8_t requestFrom(int, int);
             ^
/home/sukanime/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/Wire/Wire.h:67:13: note: candidate 2: uint8_t TwoWire::requestFrom(uint8_t, uint8_t)
     uint8_t requestFrom(uint8_t, uint8_t);
             ^
sketch/PCF8574Mio - Copia.cpp:41:2: error: '_data' was not declared in this scope
  _data = Wire.read();
  ^
sketch/PCF8574Mio - Copia.cpp: At global scope:
sketch/PCF8574Mio - Copia.cpp:47:9: error: prototype for 'uint8_t PCF8574::value()' does not match any in class 'PCF8574'
 uint8_t PCF8574::value()
         ^
In file included from sketch/PCF8574Mio - Copia.cpp:21:0:
PCF8574Mio.h:38: error: candidate is: uint8_t PCF8574::value() const
  uint8_t value() const { return _dataIn; };
          ^
sketch/PCF8574Mio - Copia.cpp: In member function 'void PCF8574::write8(uint8_t)':
sketch/PCF8574Mio - Copia.cpp:55:2: error: '_data' was not declared in this scope
  _data = value;
  ^
sketch/PCF8574Mio - Copia.cpp: In member function 'uint8_t PCF8574::read(uint8_t)':
sketch/PCF8574Mio - Copia.cpp:63:10: error: '_data' was not declared in this scope
  return (_data & (1 << pin)) > 0;
          ^
sketch/PCF8574Mio - Copia.cpp: In member function 'void PCF8574::write(uint8_t, uint8_t)':
sketch/PCF8574Mio - Copia.cpp:71:3: error: '_data' was not declared in this scope
   _data &= ~(1 << pin);
   ^
sketch/PCF8574Mio - Copia.cpp:75:3: error: '_data' was not declared in this scope
   _data |= (1 << pin);
   ^
sketch/PCF8574Mio - Copia.cpp:78:18: error: '_data' was not declared in this scope
  PCF8574::write8(_data);
                  ^
sketch/PCF8574Mio - Copia.cpp: In member function 'void PCF8574::toggle(uint8_t)':
Multiple libraries were found for "Dns.h"
sketch/PCF8574Mio - Copia.cpp:84:2: error: '_data' was not declared in this scope
 Used: /home/sukanime/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/Ethernet
  _data ^= (1 << pin);
  ^
sketch/PCF8574Mio - Copia.cpp: In member function 'void PCF8574::shiftRight(uint8_t)':
sketch/PCF8574Mio - Copia.cpp:92:2: error: '_data' was not declared in this scope