From 1e18ef83f7570a7e8667a6d5d49f534c5831f563 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20S=C3=B6derby?= <35461661+karlsoderby@users.noreply.github.com> Date: Wed, 5 Jul 2023 18:12:39 +0200 Subject: [PATCH 1/2] Update RTC tutorials --- .../02.hero/boards/uno-r4-minima/tutorials/rtc/rtc.md | 4 ++-- .../hardware/02.hero/boards/uno-r4-wifi/tutorials/rtc/rtc.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/content/hardware/02.hero/boards/uno-r4-minima/tutorials/rtc/rtc.md b/content/hardware/02.hero/boards/uno-r4-minima/tutorials/rtc/rtc.md index dc707657ed..d304853969 100644 --- a/content/hardware/02.hero/boards/uno-r4-minima/tutorials/rtc/rtc.md +++ b/content/hardware/02.hero/boards/uno-r4-minima/tutorials/rtc/rtc.md @@ -25,7 +25,7 @@ The goals of this project are: ## Real-Time Clock (RTC) -The RTC on the UNO R4 Minima can be accessed using the [RTC]() library that is included in the [Renesas]() core. This library allows you to set/get the time as well as using alarms to trigger interrupts. +The RTC on the UNO R4 Minima can be accessed using the [RTC](https://github.com/arduino/ArduinoCore-renesas/tree/main/libraries/RTC) library that is included in the [Renesas](https://github.com/arduino/ArduinoCore-renesas) core. This library allows you to set/get the time as well as using alarms to trigger interrupts. There are many practical examples using an RTC, and the examples provided in this page will help you get started with it. @@ -50,7 +50,7 @@ void setup() { RTCTime startTime(30, Month::JUNE, 2023, 13, 37, 00, DayOfWeek::WEDNESDAY, SaveLight::SAVING_TIME_ACTIVE); - RTC.setTime(startTime) + RTC.setTime(startTime); } void loop(){ diff --git a/content/hardware/02.hero/boards/uno-r4-wifi/tutorials/rtc/rtc.md b/content/hardware/02.hero/boards/uno-r4-wifi/tutorials/rtc/rtc.md index 2dbf2369e4..b106baa044 100644 --- a/content/hardware/02.hero/boards/uno-r4-wifi/tutorials/rtc/rtc.md +++ b/content/hardware/02.hero/boards/uno-r4-wifi/tutorials/rtc/rtc.md @@ -52,7 +52,7 @@ void setup() { RTCTime startTime(30, Month::JUNE, 2023, 13, 37, 00, DayOfWeek::WEDNESDAY, SaveLight::SAVING_TIME_ACTIVE); - RTC.setTime(startTime) + RTC.setTime(startTime); } void loop(){ From 7631edf861304ff505b5fa9c2a10e24e11cdc032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20S=C3=B6derby?= <35461661+karlsoderby@users.noreply.github.com> Date: Thu, 6 Jul 2023 09:17:27 +0200 Subject: [PATCH 2/2] fix typos --- .../02.hero/boards/uno-r4-minima/tutorials/rtc/rtc.md | 7 +++---- .../02.hero/boards/uno-r4-wifi/tutorials/rtc/rtc.md | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/content/hardware/02.hero/boards/uno-r4-minima/tutorials/rtc/rtc.md b/content/hardware/02.hero/boards/uno-r4-minima/tutorials/rtc/rtc.md index d304853969..7e856a2e9b 100644 --- a/content/hardware/02.hero/boards/uno-r4-minima/tutorials/rtc/rtc.md +++ b/content/hardware/02.hero/boards/uno-r4-minima/tutorials/rtc/rtc.md @@ -75,7 +75,7 @@ void setup() { RTCTime startTime(30, Month::JUNE, 2023, 13, 37, 00, DayOfWeek::WEDNESDAY, SaveLight::SAVING_TIME_ACTIVE); - RTC.setTime(startTime) + RTC.setTime(startTime); } void loop(){ @@ -109,7 +109,7 @@ void setup() { RTCTime startTime(30, Month::JUNE, 2023, 13, 37, 00, DayOfWeek::WEDNESDAY, SaveLight::SAVING_TIME_ACTIVE); - RTC.setTime(startTime) + RTC.setTime(startTime); } void loop() { @@ -143,7 +143,6 @@ void loop() { To retrieve the Unix timestamp, use the `getUnixTime()` method. -```arduino ```arduino #include "RTC.h" @@ -154,7 +153,7 @@ void setup() { RTCTime startTime(30, Month::JUNE, 2023, 13, 37, 00, DayOfWeek::WEDNESDAY, SaveLight::SAVING_TIME_ACTIVE); - RTC.setTime(startTime) + RTC.setTime(startTime); } void loop() { diff --git a/content/hardware/02.hero/boards/uno-r4-wifi/tutorials/rtc/rtc.md b/content/hardware/02.hero/boards/uno-r4-wifi/tutorials/rtc/rtc.md index b106baa044..86373e9e58 100644 --- a/content/hardware/02.hero/boards/uno-r4-wifi/tutorials/rtc/rtc.md +++ b/content/hardware/02.hero/boards/uno-r4-wifi/tutorials/rtc/rtc.md @@ -77,7 +77,7 @@ void setup() { RTCTime startTime(30, Month::JUNE, 2023, 13, 37, 00, DayOfWeek::WEDNESDAY, SaveLight::SAVING_TIME_ACTIVE); - RTC.setTime(startTime) + RTC.setTime(startTime); } void loop(){ @@ -111,7 +111,7 @@ void setup() { RTCTime startTime(30, Month::JUNE, 2023, 13, 37, 00, DayOfWeek::WEDNESDAY, SaveLight::SAVING_TIME_ACTIVE); - RTC.setTime(startTime) + RTC.setTime(startTime); } void loop() { @@ -145,7 +145,6 @@ void loop() { To retrieve the Unix timestamp, use the `getUnixTime()` method. -```arduino ```arduino #include "RTC.h" @@ -156,7 +155,7 @@ void setup() { RTCTime startTime(30, Month::JUNE, 2023, 13, 37, 00, DayOfWeek::WEDNESDAY, SaveLight::SAVING_TIME_ACTIVE); - RTC.setTime(startTime) + RTC.setTime(startTime); } void loop() {