Skip to content

mgolu/nrf-micropython-guide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MicroPython experimental support for Nordic devices using Zephyr

This repository has experimental support for MicroPython on Nordic Semiconductor devices running Zephyr.

This support is unofficial, and not supported by Nordic Semiconductor.

About MicroPython

The main documentation for the MicroPython Zephyr port can be found at the MicroPython documentation site.

Note that as of this writing (November 2023), the MicroPython Zephyr port uses an older version of Zephyr. This experimental support uses Zephyr v3.4, so there are a few differences, explained here:

Pins and GPIO

The syntax for getting a Pin instance is different. No better way to explain it than with an example:

from machine import Pin

pin = Pin(Pin.cpu.gpio1_6, Pin.OUT)

The constructor for the Pin class no longer takes a tuple as the input. Rather, there are pre-defined pins. These can be referenced as pins of the CPU, or as board pins if they have a definition.

Look at the device guides for the pins that are available.

Device Guides

The following boards are currently supported:

About

Examples for MicroPython on Nordic devices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages