Git Product home page Git Product logo

micropython-calliope-mini-v3's Introduction

MicroPython on the Calliope mini via CODAL based on the port of microbit

This is a port of MicroPython to the Calliope mini 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

Note: you may need to add to the line above PYTHON=python (or some variant thereof) to select your Python executable (this defaults to python3); for example:

$ make -C lib/micropython/mpy-cross PYTHON=python

Building and running

After setting up, go to the src/ directory and build (as above, you may need to add PYTHON=python to the make command):

$ 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 MINI.hex in the src/ directory which can be copied to the Calliope mini.

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 (from microbit)

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.

micropython-calliope-mini-v3's People

Contributors

dpgeorge avatar microbit-carlos avatar microbit-pauline avatar jaustin avatar joernalraun avatar microbit-matt-hillsdon avatar fabianhugo avatar

Forkers

joernalraun

micropython-calliope-mini-v3's Issues

Naming of motor pins

consider motor pins naming convention.
is currently m_a_in1, motor output pins are called m0+,m1- etc..

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.