circuitpython/ports/nrf/common-hal
Nick Moore 8e7fee2246 Working flash pages for nvm.ByteArray adafruit/circuitpython#1042
import microcontroller

def dump(n = microcontroller.nvm):
    for i in range(0,len(n)):
        print ("%02X " % n[i], end="")
        if i % 16 == 15: print('')

microcontroller.nvm[0:4096] = bytes([1,2,3,4,5,6,7,8]) * 512
microcontroller.nvm[4096:8192] = bytes([16,17,18,19]) * 1024
microcontroller.nvm[4090:4101] = b'thisisatest'
microcontroller.nvm[100:105] = b'hello'
microcontroller.nvm[8000:8007] = b'goodbye'
dump()
2019-04-09 10:55:39 +10:00
..
analogio fix copyright notice 2018-10-16 11:09:37 -04:00
bleio Really fix the error messages in bleio, this time 2019-03-25 14:04:50 +01:00
board Remove nRF52832 support 2018-12-30 22:49:20 -05:00
busio Remove terse TODOs 2019-04-08 14:46:45 -07:00
digitalio Move atmel-samd to tinyusb and support nRF flash. 2018-11-08 17:25:30 -08:00
displayio Improvements thanks to danh's review 2019-01-18 16:37:06 -08:00
microcontroller nvm.ByteArray reads & writes but no sensible erase yet adafruit/circuitpython#1042 2019-04-09 10:54:11 +10:00
neopixel_write finish Makefile refactoring; nrf builds work 2019-02-15 18:55:10 -05:00
nvm Working flash pages for nvm.ByteArray adafruit/circuitpython#1042 2019-04-09 10:55:39 +10:00
os nrf: Rewrite the os common-hal using nrfx 2018-06-27 21:01:07 +02:00
pulseio finish Makefile refactoring; nrf builds work 2019-02-15 18:55:10 -05:00
rotaryio Change pin mode to pullup for adafruit/circuitpython#1045 2019-02-07 09:47:56 +11:00
rtc Remove unnecessary MP_WEAK declarations 2019-04-02 13:33:22 +11:00
supervisor replacing change to input() with separate method to check for USB Serial input 2018-10-09 18:37:52 -04:00
time nrf: Remove the old time hal and replace with nRFx 2018-07-10 14:59:10 +02:00
touchio Automatically set a default threshold for touchio.TouchIn channels 2019-01-28 18:22:57 +11:00