Add power control for RTC
This commit is contained in:
parent
a897b7d9be
commit
7e8a6b0dad
@ -126,6 +126,13 @@ int main()
|
||||
{
|
||||
uart_t serial;
|
||||
rtc::DS3231<i2c::Hardware<100'000>, false> ds3231;
|
||||
io::Pin<io::P::C3> rtcPwr;
|
||||
|
||||
rtcPwr = false;
|
||||
rtcPwr.dir(io::Dir::OUT);
|
||||
|
||||
rtcPwr = true;
|
||||
_delay_ms(1000);
|
||||
|
||||
ds3231.init();
|
||||
serial.init();
|
||||
|
Loading…
Reference in New Issue
Block a user