diff options
| author | Dan Halbert <halbert@halwitz.org> | 2018-04-16 18:11:56 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-16 18:11:56 -0400 |
| commit | eba10eab49eb9682b447b30d301207696989a69b (patch) | |
| tree | 32aefe02be4e01fd2410ae5f5904e93dc983f774 /shared-bindings | |
| parent | 10eabf6bc22391292c7bec42f611a876698d587f (diff) | |
| parent | 5af4e79ed3df035bc3c428a57b0937ef3165b2e4 (diff) | |
Merge pull request #764 from tannewt/nvm3
Turn on nvm in 3.0.
Diffstat (limited to 'shared-bindings')
| -rw-r--r-- | shared-bindings/nvm/ByteArray.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/shared-bindings/nvm/ByteArray.c b/shared-bindings/nvm/ByteArray.c index f4e046378..56337df40 100644 --- a/shared-bindings/nvm/ByteArray.c +++ b/shared-bindings/nvm/ByteArray.c @@ -36,12 +36,13 @@ //| ================================================================================ //| //| Non-volatile memory is available as a byte array that persists over reloads -//| and power cycles. +//| and power cycles. Each assignment causes an erase and write cycle so its recommended to assign +//| all values to change at once. //| //| Usage:: //| //| import microcontroller -//| microcontroller.nvm[0] = 0xcc +//| microcontroller.nvm[0:3] = b"\xcc\x10\x00" //| //| .. class:: ByteArray() |
