mirror of
https://github.com/alankrantas/microbit-micropython-cookbook.git
synced 2026-01-04 19:31:22 +01:00
Update README.md
This commit is contained in:
@@ -546,7 +546,7 @@ while True:
|
|||||||
print('Message converted:\n', morse_str)
|
print('Message converted:\n', morse_str)
|
||||||
|
|
||||||
for code in morse_str:
|
for code in morse_str:
|
||||||
music.pitch(440)
|
music.pitch(392)
|
||||||
display.show(Image.TARGET)
|
display.show(Image.TARGET)
|
||||||
sleep(morse_delay * (3 if code == '-' else 1))
|
sleep(morse_delay * (3 if code == '-' else 1))
|
||||||
music.stop()
|
music.stop()
|
||||||
|
|||||||
Reference in New Issue
Block a user