ByteArray – Presents a stretch of non-volatile memory as a bytearray.

Non-volatile memory is available as a byte array that persists over reloads 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:3] = b"\xcc\x10\x00"
class nvm.ByteArray

Not currently dynamically supported. Access the sole instance through microcontroller.nvm.

__len__()

Return the length. This is used by (len)