kopia lustrzana https://github.com/pimoroni/pimoroni-pico
Cleanup RV3028 comments/whitespace
rodzic
904bf657bb
commit
5ca77b6e28
|
@ -184,7 +184,6 @@ namespace pimoroni {
|
|||
}
|
||||
|
||||
// Takes the time from the last build and uses it as the current time
|
||||
//Works very well as an arduino sketch
|
||||
bool RV3028::set_to_compiler_time() {
|
||||
times[TIME_SECONDS] = dec_to_bcd(BUILD_SECOND);
|
||||
times[TIME_MINUTES] = dec_to_bcd(BUILD_MINUTE);
|
||||
|
@ -449,10 +448,9 @@ namespace pimoroni {
|
|||
alarmTime[1] |= 1 << HOURSALM_AE_H;
|
||||
if(mode & 0b100)
|
||||
alarmTime[2] |= 1 << DATE_AE_WD;
|
||||
//Write registers
|
||||
|
||||
write_multiple_registers(RV3028_MINUTES_ALM, alarmTime, 3);
|
||||
|
||||
//enable Alarm Interrupt
|
||||
enable_alarm_interrupt();
|
||||
|
||||
// Clock output?
|
||||
|
|
Ładowanie…
Reference in New Issue