Hmmm… Happened to get this chance of playing with micro:bit for fun, then take this opportunity to write a blog. It seems this BBC products is very convenient. Let’s just plug and play.
Just plug in and
Refer to micro:bit Hardware Specification
Refer to micro:bit User Guide Overview
- Makecode Tutorials: this so called makecode looks very similar to Google Blockly
- BBC micro:bit MicroPython: this seems to be BBC Official tutorial, which adopts Python as the programming language
- UCL’s BBC Micro:bit Tutorials: this is a micro:bit tutorial from University College London, but the ONLY defect is: it seems it’s developed under Windows? Please check UCL’s BBC Micro:bit Tutorials - Command Line Interface.
- Lancaster University micro:bit Runtime: this seems to be a little complicated, but adopts my favorite coding language: C/C++
Since I’m NOT a professional Makecode coder, I’ll run a couple of simple micro:bit projects using either Python or C/C++.
Hellow World Using micro:bit MicroPython
Please refer to micro:bit MicroPython Installation
sudo add-apt-repository -y ppa:team-gcc-arm-embedded
and now ,let’s check yotta.
✔ pip show yotta
3.2 Connect micro:bit
12 ✔ sudo picocom /dev/ttyACM0 -b 115200 ~
Oh, my god… why can’t I just code directly here from within the console??? That’s ABSOLUTELY NOT my style.
The VERY FIRST demo is ALWAYS displaying
Hello World. To fulfill this task, please refer to How do I transfer my code onto the micro:bit via USB.
4. Flash Lancaster microbit-samples Using Yotta
Please strictly follow Lancaster University micro:bit Yotta.
141 ✔ cd microbit-samples/
Please refer to micro:bit Official Python Projects.