See attached file. I use it as an include.
Displaying time is like
Code:'----[ ALIAS }------------------------- RTC_SDA Var PORTB.3 RTC_SCL Var PORTB.2 '----[ INCLUDES }------------------------- INCLUDE "..\_Include\DS3231.pbp" ... gosub GetTime HSEROUT2 [hex2 RTCHour, ":", hex2 RTCMin, ":", hex2 RTCSec, 13, 10]
Bookmarks