Quote Originally Posted by MichelJasmin View Post
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]
Michel, I know it's been a long time since this was posted, but doesn't the statement "GOTO OverDS3231" skip over the entire program? Or is this just a case of me not understanding how include files work? -Jeff