Skip to content

feixin620/micropython-microbit-v2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

163 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MicroPython on the micro:bit via CODAL

This is a port of MicroPython to the micro:bit which uses the CODAL as the underlying target platform.

Setting up

After cloning this repository update the submodules:

$ git submodule update --init

Then build the MicroPython cross-compiler:

$ make -C lib/micropython/mpy-cross

Building and running

After setting up, go to the src/ directory and build:

$ cd src
$ make

That will build both libmicropython.a (from source in src/codal_port/) and the CODAL app (from source in src/codal_app/). The resulting firmware will be MICROBIT.hex in the src/ directory which can be copied to the micro:bit.

Once the firmware is on the device there will appear a REPL prompt on the serial port. To test it you can run:

>>> display.show(Image.HAPPY)
>>> audio.play(Sound.HAPPY)

Code of Conduct

Trust, partnership, simplicity and passion are our core values we live and breathe in our daily work life and within our projects. Our open-source projects are no exception. We have an active community which spans the globe and we welcome and encourage participation and contributions to our projects by everyone. We work to foster a positive, open, inclusive and supportive environment and trust that our community respects the micro:bit code of conduct.

Please see our code of conduct which outlines our expectations for all those that participate in our community and details on how to report any concerns and what would happen should breaches occur.

About

Temporary home for MicroPython for micro:bit v2 as we stablise it before pushing upstream

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • C 92.7%
  • C++ 4.6%
  • Python 1.8%
  • Makefile 0.9%