Skip to content

Update RTC_Alarm.ino #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 5, 2023
Merged

Update RTC_Alarm.ino #30

merged 1 commit into from
Jul 5, 2023

Conversation

karlsoderby
Copy link
Contributor

Update RTC_Alarm to work with UNO R4 Minima & WiFi boards.

Changes made.

  • Switch the LED used (from RGB > LED_BUILTIN). R4 boards have no RGB so this example does not compile/work.
  • Made ledState global so that it can be used in loop() as well.
  • Added serial functions to the loop to print the current state of the alarm. Alarm state is now printed each second.
  • Moved alarmCallback() function to the bottom for better readability.

Example is tested and verified on both UNO R4 boards and the Portenta C33.

Update RTC_Alarm to work with UNO R4 Minima & WiFi boards
Copy link
Contributor

@aentinger aentinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can confirm it compiles for Uno R4 WiFi, Minima and Portenta C33. LGTM 👍

@aentinger aentinger merged commit 89ab55b into arduino:main Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants