10000 Merge pull request #1142 from arduino/karlsoderby/fix-rtc-tutorial · V205Arduino/docs-content@f4333bf · GitHub
[go: up one dir, main page]

Skip to content

Commit f4333bf

Browse files
authored
Merge pull request arduino#1142 from arduino/karlsoderby/fix-rtc-tutorial
Update RTC tutorials for UNO R4 boards
2 parents 4bc8ffe + 7631edf commit f4333bf

File tree

2 files changed

+9
-11
lines changed
  • content/hardware/02.hero/boards
    • uno-r4-minima/tutorials/rtc
    • uno-r4-wifi/tutorials/rtc

2 files changed

+9
-11
lines changed

content/hardware/02.hero/boards/uno-r4-minima/tutorials/rtc/rtc.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The goals of this project are:
2525

2626
## Real-Time Clock (RTC)
2727

28-
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.
28+
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.
2929

3030
There are many practical examples using an RTC, and the examples provided in this page will help you get started with it.
3131

@@ -50,7 +50,7 @@ void setup() {
5050
5151
RTCTime startTime(30, Month::JUNE, 2023, 13, 37, 00, DayOfWeek::WEDNESDAY, SaveLight::SAVING_TIME_ACTIVE);
5252
53-
RTC.setTime(startTime)
53+
RTC.setTime(startTime);
5454
}
5555
5656
void loop(){
@@ -75,7 +75,7 @@ void setup() {
7575
7676
RTCTime startTime(30, Month::JUNE, 2023, 13, 37, 00, DayOfWeek::WEDNESDAY, SaveLight::SAVING_TIME_ACTIVE);
7777
78-
RTC.setTime(startTime)
78+
RTC.setTime(startTime);
7979
}
8080
8181
void loop(){
@@ -109,7 +109,7 @@ void setup() {
109109
110110
RTCTime startTime(30, Month::JUNE, 2023, 13, 37, 00, DayOfWeek::WEDNESDAY, SaveLight::SAVING_TIME_ACTIVE);
111111
112-
RTC.setTime(startTime)
112+
RTC.setTime(startTime);
113113
}
114114
115115
void loop() {
@@ -143,7 +143,6 @@ void loop() {
143143

144144
To retrieve the Unix timestamp, use the `getUnixTime()` method.
145145

146-
```arduino
147146
```arduino
148147
#include "RTC.h"
149148
@@ -154,7 +153,7 @@ void setup() {
154153
155154
RTCTime startTime(30, Month::JUNE, 2023, 13, 37, 00, DayOfWeek::WEDNESDAY, SaveLight::SAVING_TIME_ACTIVE);
156155
157-
RTC.setTime(startTime)
156+
RTC.setTime(startTime);
158157
}
159158
160159
void loop() {

content/hardware/02.hero/boards/uno-r4-wifi/tutorials/rtc/rtc.md

Lines changed: 4 additions & 5 deletions
54D6
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void setup() {
5252
5353
RTCTime startTime(30, Month::JUNE, 2023, 13, 37, 00, DayOfWeek::WEDNESDAY, SaveLight::SAVING_TIME_ACTIVE);
5454
55-
RTC.setTime(startTime)
55+
RTC.setTime(startTime);
5656
}
5757
5858
void loop(){
@@ -77,7 +77,7 @@ void setup() {
7777
7878
RTCTime startTime(30, Month::JUNE, 2023, 13, 37, 00, DayOfWeek::WEDNESDAY, SaveLight::SAVING_TIME_ACTIVE);
7979
80-
RTC.setTime(startTime)
80+
RTC.setTime(startTime);
8181
}
8282
8383
void loop(){
@@ -111,7 +111,7 @@ void setup() {
111111
112112
RTCTime startTime(30, Month::JUNE, 2023, 13, 37, 00, DayOfWeek::WEDNESDAY, SaveLight::SAVING_TIME_ACTIVE);
113113
114-
RTC.setTime(startTime)
114+
RTC.setTime(startTime);
115115
}
116116
117117
void loop() {
@@ -145,7 +145,6 @@ void loop() {
145145

146146
To retrieve the Unix timestamp, use the `getUnixTime()` method.
147147

148-
```arduino
149148
```arduino
150149
#include "RTC.h"
151150
@@ -156,7 +155,7 @@ void setup() {
156155
157156
RTCTime startTime(30, Month::JUNE, 2023, 13, 37, 00, DayOfWeek::WEDNESDAY, SaveLight::SAVING_TIME_ACTIVE);
158157
159-
RTC.setTime(startTime)
158+
RTC.setTime(startTime);
160159
}
161160
162161
void loop() {

0 commit comments

Comments
 (0)
0