d5acc13d5e | ||
---|---|---|
.. | ||
boards | ||
device | ||
drivers | ||
examples | ||
freeze | ||
hal | ||
modules | ||
.gitignore | ||
Makefile | ||
README.md | ||
bluetooth_conf.h | ||
builtin_open.c | ||
fatfs_port.c | ||
font_petme128_8x8.h | ||
gccollect.c | ||
gccollect.h | ||
help.c | ||
main.c | ||
mpconfigport.h | ||
mphalport.c | ||
mphalport.h | ||
nrf51_af.csv | ||
nrf52_af.csv | ||
pin_defs_nrf5.h | ||
pin_named_pins.c | ||
qstrdefsport.h |
README.md
MicroPython port to the NRF5
This is a port of MicroPython to the Nordic nRF5 series of chips.
Supported features
- UART
- SPI
- LEDs
- Pins
- ADC
- I2C
- PWM (nRF52 only)
- Temperature
- RTC
- Some BLE support including REPL over BLE
Note that this port is still a work-in-progress and some modules are not fully feature complete.
Tested hardware
- nRF51
- nRF52
Build steps
Example is for the Adafruit Feather nRF52:
> sudo apt-get install build-essential libffi-dev pkg-config gcc-arm-none-eabi git python python-pip
> git clone https://github.com/adafruit/Adafruit_nRF52_Arduino.git
> cd Adafruit_nRF52_Arduino/tools/nrfutil-0.5.2/
> sudo pip install -r requirements.txt
> sudo python setup.py install
> cd ../../..
> git clone https://github.com/tralamazza/micropython.git nrf5_no_sdk
> cd nrf5_no_sdk/
> git submodule update --init
> make -C mpy-cross
> cd nrf5/
> make BOARD=feather52
> make BOARD=feather52 dfu-gen
> make BOARD=feather52 dfu-flash