Git Product home page Git Product logo

microbit's Introduction

microbit

Tinkering with the BBC microbit

microbit's People

Contributors

ncoghlan avatar

Watchers

James Cloos avatar  avatar

microbit's Issues

Loading the built micropython image onto the micro:bit

With the initial compilation issues resolved via lancaster-university/microbit-targets#1 , the Docker based dev environment can now be used to build MicroPython for the micro:bit via:
docker pull ncoghlan/microbit-dev
docker run -it --device=/dev/ttyACM0 --name=microbit ncoghlan/microbit-dev

However, it doesn't currently support pushing the image back to the micro:bit, since the USB Mass Storage interface isn't exposed to the container by default. This problem also affects the output of the tools/makecombinedhex.py script in the micropython repo.

There seem to be two main options available here:

  • describe how to map the USB block device interface into the container as well, mount it as a directory, and then copy the built hex files to the micro:bit through the container shell used for building. The downside of this approach is that it increases the complexity of getting the container up and running, as you have to figure out which block device to map into the container (and it may not be possible to get it to work at all on Windows and Mac OS X, where there is a VM running Docker in the mix).
  • describe how to map a host filesystem volume into the container, and then use that to copy files to the host, and then use the host to copy them onto the micro:bit. That's a clumsier two step process each time you change the firmware, but has the virtue of being more likely to work on Windows and Mac OS X in addition to Linux hosts.

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.