Scratch2 - Micro:bit extension (with BLE)
-
Install requirements
# pip install blockext==0.2.0a2
# pip install pyserial
-
microbit_ext.py
(using blockext)# python microbit_ext.py
- Import
microbit.s2e
extension, create your Scratch2 project (sample projectmicrobit_sample.sb2
). - 使用 Micro:bit 控制 Scratch 2
- Scratch Extension
- Creating Scratch 2.0 Extensions
- micro:bit game controller with Scratch
- How to read the micro:bit's serial output from your computer
- Scratch controller with Micro:bit over BLE (Bluetooth Low Energy)
- Scratch controller with Micro:bit over BLE (Bluetooth Low Energy)
- Scratch controller with Micro:bit over BLE (Bluetooth Low Energy)
$ modprobe -r btusb
$ modprobe btusb
$ sudo rfkill unblock all
$ wget https://github.com/sandeepmistry/node-bbc-microbit/raw/master/firmware/node-bbc-microbit-v0.1.0.hex
$ cp node-bbc-microbit-v0.1.0.hex /run/media/lyshie/MICROBIT
$ pip install --user --upgrade "pygatt==3.1.1"
$ pip install --user --upgrade "pygatt[GATTTOOL]"
$ sudo python ./microbit_ext_ble.py D6:AF:43:58:57:9F
HSIEH, Li-Yi