Added some micro:bit projects I previously did in here
This commit is contained in:
11
bin/micro_bit/micro_bit_soft/sender.py
Normal file
11
bin/micro_bit/micro_bit_soft/sender.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import music
|
||||
from microbit import *
|
||||
|
||||
while True:
|
||||
if button_a.is_pressed() is True:
|
||||
pin1.write_digital(1)
|
||||
music.pitch(440, 50, wait=False)
|
||||
else:
|
||||
music.stop()
|
||||
pin1.write_digital(0)
|
||||
|
||||
Reference in New Issue
Block a user