Add power control for RTC

This commit is contained in:
BlackMark 2020-05-17 15:40:29 +02:00
parent a897b7d9be
commit 7e8a6b0dad

View File

@ -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();