Contoh program if else arduino5/4/2023 ![]() ![]() To get the current time use: RTCTime gRTCTime // defined globallyĪs you can see, I converted the Time class to a RTCTime class (implementation included in the project) that provides additional methods and capabilities. Create a DS1302 instance and do the following in the setup function: gRtc.halt(false) RTCTime gRTCTime // Stores the current time #define RAM_SIZE_BYTES 31 /* Don't change - value from library */ĭS1302 gRtc (RTC_CE_PIN, RTC_DATA_PIN, RTC_SCLK_PIN)
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |