Update. /JL

This commit is contained in:
Jan Lerking
2025-04-09 06:23:45 +02:00
parent c7bfcef0a0
commit 91bc7878f2
11 changed files with 923 additions and 0 deletions

19
microbit/speaker.py Normal file
View File

@@ -0,0 +1,19 @@
#Speaker V2
""" The micro:bit V2 has a built-in speaker located on the rear of the board.
By default sound output will be via the edge connector on pin 0 and the built-in speaker V2.
You can connect wired headphones or a speaker to pin 0 and GND on the edge connector to hear
the sounds.
The speaker can be turned off or on using the functions listed here. """
#Functions
def off():
""" Use off() to turn off the speaker. This does not disable sound output to an
edge connector pin. """
pass
def on():
""" Use on() to turn on the speaker. """
pass