Update. /JL
This commit is contained in:
19
microbit/speaker.py
Normal file
19
microbit/speaker.py
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user