Page 1 of 1

How do I install the microbit package

Posted: Tue Nov 29, 2016 6:41 pm
by b.max
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?

Thanks
Max

Re: How do I install the microbit package

Posted: Tue Nov 29, 2016 11:05 pm
by deshipu
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.