We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5da2cfc commit 5861150Copy full SHA for 5861150
examples/RTC_Seconds/RTC_Seconds.ino
@@ -46,7 +46,7 @@ const byte day = 25;
46
const byte month = 11;
47
const byte year = 21;
48
49
-bool toggling = false; // changed each second by the CallBack function
+PinStatus toggling = LOW; // changed each second by the CallBack function
50
51
static STM32RTC::Hour_Format hourFormat = STM32RTC::HOUR_24;
52
static STM32RTC::AM_PM period = STM32RTC::AM;
@@ -109,5 +109,5 @@ void loop()
109
void rtc_SecondsCB(void *data)
110
{
111
UNUSED(data);
112
- toggling = !toggling;
+ toggling = (toggling == LOW) ? HIGH : LOW;PinStatus toggling = LOW;
113
}
0 commit comments