Just choose a library for your DS3231 RTC module such as this one and ensure you successfully run one example sketch. You can also set time and date at that moment, so you don't need to do it later.
Then choose a library for your LCD display such as this one and ensure you successfully run one of the example sketch.
When everything is fine, try making your own code using the bases you just learned.
Just choose a library for your DS3231 RTC module such as this one and ensure you successfully run one example sketch. You can also set time and date at that moment, so you don't need to do it later.
Then choose a library for your LCD display such as this one and ensure you successfully run one of the example sketch.
When everything is fine, try making your own code using the bases you just learned.
Probably you have missed, but my LCD is I2C too and the lib for LCD that you have provided is for SPI protocol?
With due respect to lesept, but a better library for I2C LCDs (my opinion) is the hd44780 library. That library has the facility to auto detect the LCD I2C address and, more importantly, the I2C expander chip to LCD pin mapping (which can be a huge stumbling block for new users).
When used with another I2C device the address may have to be specified in the LCD constructor. Sometimes the address auto detect will pick the other (RTC) device first. In that case, run the i2C scanner, if necessary, to get the LCD address and put that address in the LCD constructor.
The library is available through the library manager. In the Topic drop down, choose Displays and in filter, enter hd44780. Then select and install the hd44780 library by Bill Perry.