File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,21 @@ Methods
75
75
- ``wake `` specifies the sleep mode from where this interrupt can wake
76
76
up the system.
77
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
+
78
93
Constants
79
94
---------
80
95
You can’t perform that action at this time.
0 commit comments