From 83d38e793e9ea15de11b8f29e4be6b8aca1c5803 Mon Sep 17 00:00:00 2001 From: jirikrepl Date: Fri, 18 Oct 2019 17:54:07 +0200 Subject: [PATCH] fix: moved back deleted rtc.memory API --- content/firmwareapi/pycom/machine/rtc.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/content/firmwareapi/pycom/machine/rtc.md b/content/firmwareapi/pycom/machine/rtc.md index 7714b14..d2c8b73 100644 --- a/content/firmwareapi/pycom/machine/rtc.md +++ b/content/firmwareapi/pycom/machine/rtc.md @@ -85,6 +85,24 @@ Returns `True` if the last `ntp_sync` has been completed, `False` otherwise: rtc.synced() ``` +#### rtc.memory(\[data\]) + +Reads RTC memory contents or write data in passed Buffer in to RTC memory + +Example: + +```python +rtc = RTC() +rtc.memory(b'10101010') # writes data in RTC memory +rtc.memory() +``` + +Output: + +```python +b'10101010' +``` + ## Constants * Clock source: `RTC.INTERNAL_RC`, `RTC.XTAL_32KHZ`