Updated Real‐Time Clock (markdown)

Ancyker 2023-08-01 22:09:21 -04:00
parent 1974fb6629
commit 5ab8ea21b8

@ -44,6 +44,6 @@ When you first flash the firmware to the OSCR it will use the build time of the
Before you can set the time you will need to enable the firmware updater. To do this, uncomment the "ENABLE_UPDATER" line in the config and flash the firmware. You can confirm this worked by looking at the console log in the Arduino IDE. When the OSCR is first connected/powered on it will immediately send its hardware version, firmware version, and enabled features over serial. You can verify this further by typing `VERCHK` into the input and pressing enter to get this information.
To check the current time you can use the command `GETTIME` which will cause the OSCR to send the current date/time over serial. To set the time, you will need to know the time value as a UNIX epoch/offset. You can use an [online tool)(https://www.epochconverter.com/) to help you with that. Make sure the timezone is set to UTC unless you are on Linux and entering a local time. Pad it by a few seconds to give you time to type the command. The command is `SETTIME <timestamp>`, such as `SETTIME 1689468590`. This will immediately set the time and return the resulting human-readable date and time. You can do this a few times until the clock is as accurate as you need it.
To check the current time you can use the command `GETTIME` which will cause the OSCR to send the current date/time over serial. To set the time, you will need to know the time value as a UNIX epoch/offset. You can use an [online tool](https://www.epochconverter.com/) to help you with that. Make sure the timezone is set to UTC unless you are on Linux and entering a local time. Pad it by a few seconds to give you time to type the command. The command is `SETTIME <timestamp>`, such as `SETTIME 1689468590`. This will immediately set the time and return the resulting human-readable date and time. You can do this a few times until the clock is as accurate as you need it.
Congratulations on your RTC!