Is there any support for an RTC ?
An RTC? As in a Real Time Clock? Do you mean internal or external? The G120 has an option to add an external battery to keep the time and date of the internal Real Time Clock (if that’s what you mean; now that I mention it, I should add feature to my designs).
I’m using uc5550, ucm dev board.
There is only external real time clock (??)
Are there any calls in TinyClr to access this RTC ?
Take a look at the GHIElectronics.TinyCLR.Devices.Rtc
nuget package
It is documented here and will be live later
# Time Keeping
---
## Built-in Time Service
You can simply get the current time using `DateTime.Now`. The system starts counting at a fixed time on every power up, meaning the time ticks every second correctly but the time will be off. If the correct time is needed, the time needs to be set to the current true time (and date). This is accomplished using `GHIElectronics.TinyCLR.Native.SystemTime.SetTime(DateTime utcTime)`
```
using System;
using System.Diagnostics;
using System.Threading;
class Program {
static void Main() {
Debug.WriteLine("Time at power up: " + DateTime.Now);
// January 1st 2019 at 11:11:11
DateTime MyTime = new DateTime(2019, 1, 1, 11, 11, 11);
GHIElectronics.TinyCLR.Native.SystemTime.SetTime(MyTime);
while (true) {
Debug.WriteLine("Current Time: " + DateTime.Now);
This file has been truncated. show original