Sub Looper1
'If Millis > lastRead + 1000 Then
RunNative("read",Null)
'If results(0) > 0 Then
Log("Received 0: ", results(0))
Log("Received 4: ", results(4))
'End If
'End If
'Log("LastRead : ", lastRead," Millis : ", Millis)
End Sub
#if C
#include "RTClib.h"
RTC_DS1307 RTC;
// RTC.now = return DateTime (y, m, d, hh, mm, ss) - all ULong values
void read(B4R::Object* o) {
b4r_main::_results = RTC.now();
}
#end if