Starter Guide
www.adeept.com
- 120 -
3. Experimental code:
Lesson 34 Ultrasonic control RGB bar->code-> microbit-Ultrasonic+RGB-
bar.hex
Lesson 34 Ultrasonic control RGB bar->code->Ultrasonic_control_rgb.py
4. Click “flash” and download the code onto the micro:bit.
Now we can see that the LEDs change in different colors when the ultrasonic
sense obstacles at different distances.
Effect Picture: