Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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(){
Expand All @@ -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(){
Expand Down Expand Up @@ -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() {
Expand Down Expand Up @@ -143,7 +143,6 @@ void loop() {

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

```arduino
```arduino
#include "RTC.h"

Expand All @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(){
Expand All @@ -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(){
Expand Down Expand Up @@ -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() {
Expand Down Expand Up @@ -145,7 +145,6 @@ void loop() {

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

```arduino
```arduino
#include "RTC.h"

Expand All @@ -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() {
Expand Down