Skip to content

Commit

Permalink
Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
pu2clr committed Oct 6, 2024
1 parent 3a2342d commit 92f3b4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/08_STM32/STM32_ENCODER_LCD/STM32_ENCODER_LCD.ino
Original file line number Diff line number Diff line change
Expand Up @@ -333,11 +333,11 @@ void setup() {
pinMode(ENCODER_PIN_B, INPUT_PULLUP);

// Sets the current local Date and Time. - Change it for your current local time
// rtc.setClockSource(STM32RTC::LSE_CLOCK);
rtc.setClockSource(STM32RTC::LSE_CLOCK);
rtc.begin(); // initialize RTC 24H format

// Comment out the next two lines if you have already set the clock and are using a battery connected to the VBat pin of the STM32.
rtc.setTime(8, 35, 0); // Sets Hour, Minute, Seconds
rtc.setTime(17, 10, 0); // Sets Hour, Minute, Seconds
rtc.setDate(0, 6, 10, 24); // Sets Week Day, Day, Month, Year

Wire.begin(STM32_I2C_SDA, STM32_I2C_SCL);
Expand Down

0 comments on commit 92f3b4e

Please sign in to comment.