Open heidnerd opened 6 months ago
The PCF8563_RTC will not compile in the arduino IDE,
Around line 270 in the pcf8563.cpp the following code exists.
void PCF8563Class::initialize (void) { INTERNAL_EEPROM_PORT.begin(); initialized = true; }
The result when a compile is attempted is:
ibraries\PCF8563_RTC\src\PCF8563.cpp:371:3: error: 'INTERNAL_EEPROM_PORT' was not declared in this scope INTERNAL_EEPROM_PORT.begin();
The MCU is a SAMD processor on an Adafruit QT board.
I can't find a declaration for the "INTERNAL_EEPROM_PORT" in the PCF8563.h file either.
Is there a typo? Or missing include. The error occurs on all of the examples included with the library. (SetEpoch for example).
Arduino IDE is 1.8.19
I have come across this issue too, but it doesn't happen when I actually upload to the P1AM-200 module that the library is made for. It only happens when I compile without being connected to the P1AM-200 board or having the board selected.
I am using a lilygo t-echo and run into the same issue. Cannot compile:
libraries\PCF8563_RTC\src\PCF8563.cpp: In member function 'void PCF8563Class::initialize()':
libraries\PCF8563_RTC\src\PCF8563.cpp:371:3: error: 'INTERNAL_EEPROM_PORT' was not declared in this scope; did you mean 'INTERNAL_RTC_PORT'?
371 | INTERNAL_EEPROM_PORT.begin();
| ^~~~~~~~
| INTERNAL_RTC_PORT
I was able to compile it doing this:
Open the file PCF8563.cpp located in c:\Users\xxx\Documents\Arduino\libraries\PCF8563_RTC\src\.
Look for line 371 where it says:
INTERNAL_EEPROM_PORT.begin();
Replace this line with:
INTERNAL_RTC_PORT.begin();
Save the file and try compiling your code again.
The PCF8563_RTC will not compile in the arduino IDE,
Around line 270 in the pcf8563.cpp the following code exists.
The result when a compile is attempted is:
ibraries\PCF8563_RTC\src\PCF8563.cpp:371:3: error: 'INTERNAL_EEPROM_PORT' was not declared in this scope INTERNAL_EEPROM_PORT.begin();
The MCU is a SAMD processor on an Adafruit QT board.
I can't find a declaration for the "INTERNAL_EEPROM_PORT" in the PCF8563.h file either.
Is there a typo? Or missing include. The error occurs on all of the examples included with the library. (SetEpoch for example).
Arduino IDE is 1.8.19