OpenSprinkler › Forums › Comments, Suggestions, Requests › Opensprinkler on ESP8266 › Reply To: Opensprinkler on ESP8266
TeguhTeknisi
Here again the error:
17. MS7 , edit OpenSprinkler.cpp line 1359, and add #define MS7 7-s
sketch/OpenSprinkler.cpp: In static member function 'static void OpenSprinkler::apply_all_station_bits()':
OpenSprinkler.cpp:1359: error: 'MS7' was not declared in this scope
byte y = (sbits & ((byte)1 << (MS7))) ? HIGH : LOW;
I hope this edit is right:
#ifndef OSPI
#define MS7 7-s
byte y = (sbits & ((byte)1 << (MS7))) ? HIGH : LOW;
digitalWrite ( PIN_SR_DATA, (sbits & ((byte)1 << (MS7))) ? HIGH : LOW);
#endif
18. DS1307RTC trouble, so i change the DS1307RTC library from Ray OpenSprinkler to https://github.com/PaulStoffregen/DS1307RTC/archive/1.4.tar.gz , then extract it to ~/Arduino/libraries/
Then Undo the previsous edit (step 4 & 8) and delete file DS1307RTC.cpp and DS1307RTC.h
OpenSprinklerMain.cpp:83: error: 'DS1307RTC' does not name a type
extern DS1307RTC RTC;
^
sketch/OpenSprinklerMain.cpp: In function 'void do_setup()':
OpenSprinklerMain.cpp:321: error: 'RTC' was not declared in this scope
setSyncProvider(RTC.get);
^
sketch/OpenSprinklerMain.cpp: In function 'void perform_ntp_sync()':
OpenSprinklerMain.cpp:1521: error: 'RTC' was not declared in this scope
RTC.set ( t );
^
'DS1307RTC' does not name a type
19. Time.h – Undo Previsous Edit (step 1, 8 & 15), and using Time 1.5.0 from Michael Margolis in Arduino Library Manager, then Restart Arduino IDE.
/home/sukanime/Arduino/libraries/DS1307RTC-1.4/DS1307RTC.h:9:18: fatal error: Time.h: No such file or directory
#include <Time.h>
20. PCF8574Mio – Delete PCF8574Mio – Copia.cpp and PCF8574Mio – Copia.h
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)':
sketch/PCF8574Mio - Copia.cpp:84:2: error: '_data' was not declared in this scope
_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
_data >>= n;
^
sketch/PCF8574Mio - Copia.cpp: In member function 'void PCF8574::shiftLeft(uint8_t)':
sketch/PCF8574Mio - Copia.cpp:100:2: error: '_data' was not declared in this scope
_data <<= n;
21. SPIFFSdFat.h – Delete SPIFFSdFat.h and SPIFFSdFat.cpp
In file included from sketch/SPIFFSdFat.cpp:1:0:
SPIFFSdFat.h:15: error: 'uint8_t' has not been declared
bool begin(uint8_t csPin = SS, uint8_t divisor = 2){}
^
SPIFFSdFat.h:15: error: 'uint8_t' has not been declared
bool begin(uint8_t csPin = SS, uint8_t divisor = 2){}
^
SPIFFSdFat.h:17: error: 'uint8_t' has not been declared
bool cardBegin(uint8_t csPin = SS, uint8_t divisor = 2){}
^
SPIFFSdFat.h:17: error: 'uint8_t' has not been declared
bool cardBegin(uint8_t csPin = SS, uint8_t divisor = 2){}
^
SPIFFSdFat.h:15: error: 'SS' was not declared in this scope
bool begin(uint8_t csPin = SS, uint8_t divisor = 2){}
^
SPIFFSdFat.h:17: error: 'SS' was not declared in this scope
bool cardBegin(uint8_t csPin = SS, uint8_t divisor = 2){}
^
SPIFFSdFat.cpp:9: error: redefinition of 'SdFile::SdFile()'
SdFile::SdFile() { }
^
In file included from sketch/SPIFFSdFat.cpp:1:0:
SPIFFSdFat.h:24: error: 'SdFile::SdFile()' previously defined here
SdFile(){}
^
SPIFFSdFat.cpp:10: error: redefinition of 'bool SdFile::open(char*, int)'
bool SdFile::open(char nome[], int i) {
^
In file included from sketch/SPIFFSdFat.cpp:1:0:
SPIFFSdFat.h:25: error: 'bool SdFile::open(char*, int)' previously defined here
bool open(char name[], int i){}
^
SPIFFSdFat.cpp:17: error: redefinition of 'void SdFile::close()'
void SdFile::close() { MyFile.close(); }
^
In file included from sketch/SPIFFSdFat.cpp:1:0:
SPIFFSdFat.h:26: error: 'void SdFile::close()' previously defined here
void close(){}
^
SPIFFSdFat.cpp:18: error: redefinition of 'void SdFile::seekEnd()'
void SdFile::seekEnd() { MyFile.seek(0,SeekEnd); }
^
In file included from sketch/SPIFFSdFat.cpp:1:0:
SPIFFSdFat.h:27: error: 'void SdFile::seekEnd()' previously defined here
void seekEnd(){}
^
SPIFFSdFat.cpp:19: error: redefinition of 'void SdFile::seekSet(int)'
void SdFile::seekSet(int pos) { MyFile.seek(pos,SeekSet); }
^
In file included from sketch/SPIFFSdFat.cpp:1:0:
SPIFFSdFat.h:28: error: 'void SdFile::seekSet(int)' previously defined here
void seekSet(int pos){}
^
SPIFFSdFat.cpp:20: error: redefinition of 'bool SdFile::fgets(char*, int)'
bool SdFile::fgets(char buf[], int bufflen) { return MyFile.readBytesUntil('\n',buf, bufflen)); }
^
In file included from sketch/SPIFFSdFat.cpp:1:0:
SPIFFSdFat.h:29: error: 'bool SdFile::fgets(char*, int)' previously defined here
bool fgets(char buf[], int bufflen){}
^
SPIFFSdFat.cpp:21: error: redefinition of 'void SdFile::write(char*)'
void SdFile::write(char * c) { MyFile.print(c); }
^
In file included from sketch/SPIFFSdFat.cpp:1:0:
SPIFFSdFat.h:30: error: 'void SdFile::write(char*)' previously defined here
void write(char *){}
^
SPIFFSdFat.cpp:22: error: redefinition of 'void SdFile::write(char*, int)'
void SdFile::write(char * c, int l) { for (int i = 0; i < l;i++) MyFile.print(c+i); }
^
In file included from sketch/SPIFFSdFat.cpp:1:0:
SPIFFSdFat.h:31: error: 'void SdFile::write(char*, int)' previously defined here
void write(char *, int l){}
^
SPIFFSdFat.cpp:23: error: redefinition of 'void SdFile::write(const char*, int)'
void SdFile::write(const char * c, int l) { for (int i = 0; i < l; i++) MyFile.print(c + i); }
^
In file included from sketch/SPIFFSdFat.cpp:1:0:
SPIFFSdFat.h:32: error: 'void SdFile::write(const char*, int)' previously defined here
void write(const char *, int l){}
^
SPIFFSdFat.cpp:26: error: redefinition of 'SdFat::SdFat()'
SdFat::SdFat() { SPIFFS_formatted = eeprom_read_byte((void *)SPIFFS_F_BY); }
^
In file included from sketch/SPIFFSdFat.cpp:1:0:
SPIFFSdFat.h:9: error: 'SdFat::SdFat()' previously defined here
SdFat(){}
^
SPIFFSdFat.cpp:27: error: redefinition of 'void SdFat::remove(char*)'
void SdFat::remove(char data[]) { SPIFFS.remove(data); }
^
In file included from sketch/SPIFFSdFat.cpp:1:0:
SPIFFSdFat.h:10: error: 'void SdFat::remove(char*)' previously defined here
void remove(char data[]){}
^
SPIFFSdFat.cpp:28: error: redefinition of 'bool SdFat::exists(char*)'
bool SdFat::exists(char* buf) { SPIFFS.exists(buf); }
^
In file included from sketch/SPIFFSdFat.cpp:1:0:
SPIFFSdFat.h:11: error: 'bool SdFat::exists(char*)' previously defined here
bool exists(char* buf){}
^
SPIFFSdFat.cpp:29: error: redefinition of 'bool SdFat::mkdir(char*)'
bool SdFat::mkdir(char data[]) {}
^
In file included from sketch/SPIFFSdFat.cpp:1:0:
SPIFFSdFat.h:12: error: 'bool SdFat::mkdir(char*)' previously defined here
bool mkdir(char data[]){}
^
SPIFFSdFat.cpp:30: error: redefinition of 'bool SdFat::chdir(char*)'
bool SdFat::chdir(char data[]) { int i; while (data[i] != 0) FULLName[i++] = data[i]; FULLName[i] = '\0'; }
^
In file included from sketch/SPIFFSdFat.cpp:1:0:
SPIFFSdFat.h:13: error: 'bool SdFat::chdir(char*)' previously defined here
bool chdir(char data[]){}
^
SPIFFSdFat.cpp:31: error: redefinition of 'char* SdFat::vwd()'
char * SdFat::vwd() {}//da correggere--------------------------------------------------cerca chiamata ///////////
^
In file included from sketch/SPIFFSdFat.cpp:1:0:
SPIFFSdFat.h:14: error: 'char* SdFat::vwd()' previously defined here
char * vwd(){}//da correggere--------------------------------------------------cerca chiamata ///////////
^
SPIFFSdFat.cpp:32: error: prototype for 'bool SdFat::begin(uint8_t, uint8_t)' does not match any in class 'SdFat'
bool SdFat::begin(uint8_t csPin = SS, uint8_t divisor = 2) {
^
In file included from sketch/SPIFFSdFat.cpp:1:0:
SPIFFSdFat.h:15: error: candidate is: bool SdFat::begin(int, int)
bool begin(uint8_t csPin = SS, uint8_t divisor = 2){}
^
SPIFFSdFat.cpp:38: error: prototype for 'bool SdFat::cardBegin(uint8_t, uint8_t)' does not match any in class 'SdFat'
bool SdFat::cardBegin(uint8_t csPin = SS, uint8_t divisor = 2) {
^
In file included from sketch/SPIFFSdFat.cpp:1:0:
SPIFFSdFat.h:17: error: candidate is: bool SdFat::cardBegin(int, int)
bool cardBegin(uint8_t csPin = SS, uint8_t divisor = 2){}
^
exit status 1
'uint8_t' has not been declared
22. LiquidCrystal Library – Change to version 1.2.1 – https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads/LiquidCrystal_V1.2.1.zip
In file included from /home/sukanime/Arduino/libraries/NewliquidCrystal/LiquidCrystal_SR1W.cpp:35:0:
/home/sukanime/Arduino/libraries/NewliquidCrystal/LiquidCrystal_SR1W.cpp: In member function 'uint8_t LiquidCrystal_SR1W::clearSR()':
/home/sukanime/Arduino/libraries/NewliquidCrystal/LiquidCrystal_SR1W.cpp:77:24: error: invalid type argument of unary '*' (have 'fio_register {aka unsigned char}')
SR1W_ATOMIC_WRITE_LOW(srRegister, srMask);
^
/home/sukanime/Arduino/libraries/NewliquidCrystal/LiquidCrystal_SR1W.h:293:79: note: in definition of macro 'SR1W_ATOMIC_WRITE_LOW'
#define SR1W_ATOMIC_WRITE_LOW(reg, mask) ATOMIC_BLOCK(ATOMIC_RESTORESTATE) { *reg &= ~mask; }
^
/home/sukanime/Arduino/libraries/NewliquidCrystal/LiquidCrystal_SR1W.cpp:86:22: error: invalid type argument of unary '*' (have 'fio_register {aka unsigned char}')
fio_bit reg_val = *srRegister;
^
/home/sukanime/Arduino/libraries/NewliquidCrystal/LiquidCrystal_SR1W.cpp:95:5: error: invalid type argument of unary '*' (have 'fio_register {aka unsigned char}')
*srRegister = bit_high;
^
/home/sukanime/Arduino/libraries/NewliquidCrystal/LiquidCrystal_SR1W.cpp:96:5: error: invalid type argument of unary '*' (have 'fio_register {aka unsigned char}')
*srRegister = bit_low;
^
/home/sukanime/Arduino/libraries/NewliquidCrystal/LiquidCrystal_SR1W.cpp:101:4: error: invalid type argument of unary '*' (have 'fio_register {aka unsigned char}')
*srRegister = bit_high;
^
/home/sukanime/Arduino/libraries/NewliquidCrystal/LiquidCrystal_SR1W.cpp: In member function 'uint8_t LiquidCrystal_SR1W::loadSR(uint8_t)':
/home/sukanime/Arduino/libraries/NewliquidCrystal/LiquidCrystal_SR1W.cpp:139:24: error: invalid type argument of unary '*' (have 'fio_register {aka unsigned char}')
fio_bit reg_val = *srRegister;
^
/home/sukanime/Arduino/libraries/NewliquidCrystal/LiquidCrystal_SR1W.cpp:144:6: error: invalid type argument of unary '*' (have 'fio_register {aka unsigned char}')
*srRegister = bit_low;
^
/home/sukanime/Arduino/libraries/NewliquidCrystal/LiquidCrystal_SR1W.cpp:145:6: error: invalid type argument of unary '*' (have 'fio_register {aka unsigned char}')
*srRegister = bit_high;
^
In file included from /home/sukanime/Arduino/libraries/NewliquidCrystal/LiquidCrystal_SR1W.cpp:35:0:
/home/sukanime/Arduino/libraries/NewliquidCrystal/LiquidCrystal_SR1W.cpp:151:26: error: invalid type argument of unary '*' (have 'fio_register {aka unsigned char}')
SR1W_ATOMIC_WRITE_LOW(srRegister, srMask);
^
/home/sukanime/Arduino/libraries/NewliquidCrystal/LiquidCrystal_SR1W.h:293:79: note: in definition of macro 'SR1W_ATOMIC_WRITE_LOW'
#define SR1W_ATOMIC_WRITE_LOW(reg, mask) ATOMIC_BLOCK(ATOMIC_RESTORESTATE) { *reg &= ~mask; }
^
/home/sukanime/Arduino/libraries/NewliquidCrystal/LiquidCrystal_SR1W.cpp:158:27: error: invalid type argument of unary '*' (have 'fio_register {aka unsigned char}')
SR1W_ATOMIC_WRITE_HIGH(srRegister, srMask);
^
/home/sukanime/Arduino/libraries/NewliquidCrystal/LiquidCrystal_SR1W.h:294:80: note: in definition of macro 'SR1W_ATOMIC_WRITE_HIGH'
#define SR1W_ATOMIC_WRITE_HIGH(reg, mask) ATOMIC_BLOCK(ATOMIC_RESTORESTATE) { *reg |= mask; }
^
exit status 1