Searched refs:rtc (Results 1 – 2 of 2) sorted by relevance
31 void printTime(upm::DS1307 *rtc) in printTime() argument34 rtc->month << "/" << rtc->dayOfMonth << "/" << rtc->year << " " in printTime()35 << rtc->hours << ":" << rtc->minutes << ":" << rtc->seconds; in printTime()37 if (rtc->amPmMode) in printTime()38 cout << (rtc->pm) ? " PM " : " AM "; in printTime()42 cout << "Clock is in " << ((rtc->amPmMode) ? "AM/PM mode" : "24hr mode") in printTime()51 upm::DS1307 *rtc = new upm::DS1307(0); in main() local55 if (!rtc->loadTime()) in main()61 printTime(rtc); in main()65 rtc->year = 50; in main()[all …]
37 static private void printTime(upm_ds1307.DS1307 rtc) { in printTime() argument38 System.out.print("The time is: " + rtc.getMonth() + "/" + rtc.getDayOfMonth() + "/" in printTime()39 + rtc.getYear() + " " + rtc.getHours() + ":" + rtc.getMinutes() + ":" in printTime()40 + rtc.getSeconds()); in printTime()42 if (rtc.getAmPmMode()) { in printTime()43 if (rtc.getAmPmMode()) in printTime()51 if (rtc.getAmPmMode()) in printTime()61 upm_ds1307.DS1307 rtc = new upm_ds1307.DS1307(0); in main() local65 if (!rtc.loadTime()) { in main()70 printTime(rtc); in main()[all …]