DS3231 doesn't work with the "UNO+WiFi R3 ATmega328P+ESP8266"

I've downloaded a DS3231 library from Rinky Dink Electronics, and when I compile my project (when I have my ESP8266 board selected) it gives me a wall of errors. Is there a different real time clock that I can use instead? Also, all of these errors say something along the lines of:

C:\Users\Dvance\Documents\Arduino\libraries\DS3231\DS3231.cpp:442:1: error: 'uint8_t' does not name a type
442 | uint8_t DS3231::_encode(uint8_t value)
| ^~~~~~~

Basically saying that the library was coded wrong making it impossible to upload to my board. Is there any way to fix this, or is there a different real time clock that I can use that WILL work?

That library doesn't support your platform. It only has support for ARM, AVR and PIC32 platforms. As it doesn't relay on the Arduino standard libraries you should even expect problems on the supported platforms if you use other I2C components.

There are other DS3231 library available that support the ESP8266 platform. One example is the DS3231 library by Andrew Wickert available in the Library Manager.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.