We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0d31e5 commit 57de9daCopy full SHA for 57de9da
docs/library/machine.RTC.rst
@@ -75,6 +75,21 @@ Methods
75
- ``wake`` specifies the sleep mode from where this interrupt can wake
76
up the system.
77
78
+.. method:: RTC.memory([data])
79
+
80
+ ``RTC.memory(data)`` will write *data* to the RTC memory, where *data* is any
81
+ object which supports the buffer protocol (including `bytes`, `bytearray`,
82
+ `memoryview` and `array.array`). ``RTC.memory()`` reads RTC memory and returns
83
+ a `bytes` object.
84
85
+ Data written to RTC user memory is persistent across restarts, including
86
+ `machine.soft_reset()` and `machine.deepsleep()`.
87
88
+ The maximum length of RTC user memory is 2048 bytes by default on esp32,
89
+ and 492 bytes on esp8266.
90
91
+ Availability: esp32, esp8266 ports.
92
93
Constants
94
---------
95
0 commit comments