My week with Micro:Bit

10 thoughts
last posted Jan. 18, 2016, 11:01 p.m.
0

First Impressions and Environment Set Up

I first received Mei-Xiu yesterday. I plugged it into my computer and thanks to Eleni's project was instantly rewarded with a sad face. This gave me an idea to make some more positive program to flash on the device before I send it on!

But first I needed to set up the coding environment. I managed to get upyed working following the instructions, but getting the REPL client microrepl to work was not that easy. When I tried to install and run it, I kept receiving import errors ImportError: No module named console. After a looong time I finally figured out that I had the wrong version of pyserial installed.

Installing microrepl on Ubuntu 14.04

I already had python and pyserial installed, so first I needed to uninstall the incorrect pyserial version.

sudo pip uninstall pyserial

Then I installed the correct version:

sudo pip install pyserial==2.7

and finally I was able to install Microrepl.

sudo pip install microrepl

I also noticed I had to run microrepl using sudo or I would get errors that I had no access to the port the MicroBit is using.

sudo urepl

After that everything was working really well!

P.S. If you'd rather read this in Finnish, you can find it here.

9 later thoughts