How do I install the microbit package

Questions and discussion about running MicroPython on a micro:bit board.
Target audience: MicroPython users with a micro:bit.
Post Reply
Posts: 1
Joined: Tue Nov 29, 2016 6:35 pm

How do I install the microbit package

Post by b.max » Tue Nov 29, 2016 6:41 pm

Hi, I am new to the micro:bit and micropython. I would like to write tests for my micro:bit code, mocking out the micropython module so I can test its inputs and outputs. But I can't find anywhere to install the microbit package - it's not on pypi - so I can't run my tests. Can anyone help?


User avatar
Posts: 1252
Joined: Thu May 28, 2015 5:54 pm

Re: How do I install the microbit package

Post by deshipu » Tue Nov 29, 2016 11:05 pm

The microbit package is specific to the MicroPython port for micro:bit, and therefore is only available there. It's not even clear what it would do on a PC computer. You can write your own module that mocks it, or use one that someone already has written, but there is nothing official, I'm afraid.

Post Reply