Search found 2 matches

by kvarneb
Mon Mar 13, 2017 2:46 pm
Forum: micro:bit boards
Topic: microbit music
Replies: 2
Views: 4685

microbit music

Im trying to use this code in order to create sound by moving the microbit for a project but it wont seem to work...can anyone please help? from micro bit import * import music on = False initial = 1000 while True: if button_a.is_pressed(): on = True while on: if accelerometer.get_y() >10: initial +...
by kvarneb
Mon Mar 13, 2017 2:36 pm
Forum: General Discussion and Questions
Topic: microbit micropython help
Replies: 3
Views: 3474

microbit micropython help

Hi I am currently trying to use this code in order to create different sounds when the microbit is tilted in a different direction. However, it isnt working...can anyone help? from micro bit import * import music on = False initial = 1000 while True: if button_a.is_pressed(): on = True while on: if ...