File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
libraries/RTC/examples/Test_RTC Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1111// Include the RTC library
1212#include " RTC.h"
1313
14- // Define the interrupt pin for LED control during interrupts
15- const int LED_ON_INTERRUPT = 22 ;
14+ // Define the pin to toggle on interrupt
15+ const int PIN_ON_INTERRUPT = D7 ;
1616
1717bool periodicFlag = false ;
1818bool alarmFlag = false ;
@@ -37,7 +37,7 @@ void setup() {
3737
3838 // Set LED pins as outputs
3939 pinMode (LED_BUILTIN, OUTPUT);
40- pinMode (LED_ON_INTERRUPT , OUTPUT);
40+ pinMode (PIN_ON_INTERRUPT , OUTPUT);
4141
4242 // Initialize the RTC
4343 RTC.begin ();
@@ -83,10 +83,10 @@ void loop() {
8383
8484 // Toggle the LED based on callback state
8585 if (clb_st) {
86- digitalWrite (LED_ON_INTERRUPT , HIGH);
86+ digitalWrite (PIN_ON_INTERRUPT , HIGH);
8787 }
8888 else {
89- digitalWrite (LED_ON_INTERRUPT , LOW);
89+ digitalWrite (PIN_ON_INTERRUPT , LOW);
9090 }
9191
9292 clb_st = !clb_st; // Toggle callback state
You can’t perform that action at this time.
0 commit comments