circuitpython/tests/circuitpython/nvm_not_present.py
Scott Shawcroft 266be30777 atmel-samd: Introduce a nvm module for non-volatile byte-level memory access. (#203)
* atmel-samd: Introduce a nvm module for non-volatile byte-level memory access.

This allows for persisting small configuration values even when the file system
is read-only from CircuitPython.

Fixes #160

* Review feedback:
* Add tests.
* Fix non-zero index.
* Fix len()
2017-08-25 16:00:27 -04:00

7 lines
123 B
Python

import skip_if
skip_if.board_not_in("gemma_m0", "trinket_m0")
import microcontroller
assert(microcontroller.nvm == None)