This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 2019-09-26 SK, MIT license | |
""" | |
MicroPython code - nRF port | |
Accessing the peripherals of the MPow/Desay DS-D6 wristband | |
""" | |
""" | |
pins.cvs content: | |
USB_VOLT,P2 | |
BAT_VOLT,P3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 2019-09-19 SK, MIT license | |
""" | |
MicroPython code. | |
Memory map access using the peek and poke functions. | |
Tested on nRF52. | |
""" | |
# Peek | |
@micropython.asm_thumb | |
def reg_read(r0): # address |