- how to get started with the Raspberry Pi Pico and use VS Code to develope
- how to work with classes
- writing a library (never did this before)
- copy the folder my_lib in your project
- add "from my_lib import RTC_DS3231" on top of your main file.
- create the RTC object with "rtc = RTC_DS3231.RTC()"
- use "rtc.DS3231_SetTime(b'\x00\x14\x18\x28\x14\x07\x21')" (modify the time and date) to set the Time. Do this only once or if you want to correct the Time.
- use "t = rtc.DS3231_ReadTime(1)" to get the current Time.
- use "print(t)" to send the time over uart to the PC