Bundle of MicroPython codes for micro:bit to get used to simple robotics concepts and activities.
The repository MicroPython for micro:bit
gathers samples of code to learn to program micro:bit boards. It consists of 5 sections of increasing difficulty:
- Introduction
- GPIO
- Control systems
- Remote controls
- Robot design
Each part comes with a video presenting its final result. The MobileRoboticsWithMicrobit_SummerSchool2020.pdf
file (elaborated by my colleague Amaury Dame) serves as a guidance documentation.
- Tested on macOS Big Sur version 11.0.1
- Python 3.6
- PyCharm CE 2020.2 (with MicroPython plugin)
pip install -r requirements.txt
- Make sure to have plugged the micro:bit board into your computer and set the correct device path into
PyCharm > Preferences… > Languages & Frameworks > MicroPython
. For this, simply plug your micro:bit into your computer using a USB cable and type following Terminal command to get the micro:bit device path:ls /dev/cu.usb*
. For me, it was/dev/cu.usbmodem14302
: - Configure your file by right-clicking and creating a "MicroPython Run Configuration":
- Run your file by clicking on the green "run triangle":
- 0.1
- Initial release