Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ea7db1b

Browse files
Hannes7eicherkarlsoderby
andauthored
Apply suggestions from code review
Co-authored-by: Karl Söderby <35461661+karlsoderby@users.noreply.github.com>
1 parent 0927139 commit ea7db1b

File tree

1 file changed

+6
-2
lines changed
  • content/hardware/10.mega/boards/giga-r1-wifi/tutorials/giga-dual-core

1 file changed

+6
-2
lines changed

‎content/hardware/10.mega/boards/giga-r1-wifi/tutorials/giga-dual-core/giga-dual-core.md‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,9 @@ int servoMove(int angle) {
560560

561561
### RTC RPC
562562

563-
This example demonstrates how the RTC can be accessed from the M4:
563+
The Real-time Clock (RTC) can be accessed from the M4 core, and using RPC, we can read the values.
564+
565+
In this example, we set the RTC to a specific date (can be adjusted in the example), send it to the M7 via RPC, and finally prints it out in the Serial Monitor using the M7 core.
564566

565567
**M4 sketch:**
566568
```arduino
@@ -580,7 +582,7 @@ unsigned long printNow{};
580582
void setup() {
581583
if (RPC.begin()) {
582584
RPC.println("M4: Reading the RTC.");
583-
//RTCset() //Uncomment if you need to set the RTC for the first time.
585+
RTCset(); //sets the RTC to start from a specific time & date
584586
}
585587
}
586588
@@ -613,6 +615,8 @@ void RTCset() // Set cpu RTC
613615
}
614616
```
615617

618+
The M7 sketch is found below, and uses RPC to print out the incoming data from the M4.
619+
616620
**M7 sketch:**
617621
```arduino
618622
/**

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /