The micro:bit Talking LED Blink And Breath is a micro:bit Electronic Educational Engagement Tool designed to help students create a talking sound application.
image
*** NOTE *** USE PIN1 INSTEAD OF PIN7 (GREEN WIRE)
micro:bit
Ks0360 Keyestudio Sensor Shield V2 for BBC micro:bit
- Keyestudio Micro bit Sensor V2 Shield * 1
- keyestudio Digital Buzzer Module * 1
- Dupont jumper wire * 3
micro:bit Python Web Editor
image
*PLUG IN USB CABLE TO COMPUTER AND DEVICE
from time import sleep_ms from microbit import pin1, display, Image from speech import say SPEED = 95 while True: display.show(Image.SURPRISED) say('Sound On', speed=SPEED) pin1.write_digital(1) display.show(Image.HAPPY) sleep_ms(1000) display.show(Image.SURPRISED) say('Sound Off', speed=SPEED) display.show(Image.HAPPY) pin1.write_digital(0) sleep_ms(1000)
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.