Adding STEMMA speaker guide files
This commit is contained in:
parent
5408bf99f1
commit
8c13a597c4
4 changed files with 14 additions and 0 deletions
7
Adafruit_STEMMA_Speaker/STEMMA_Speaker_CPX_play_file.py
Executable file
7
Adafruit_STEMMA_Speaker/STEMMA_Speaker_CPX_play_file.py
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
from adafruit_circuitplayground.express import cpx
|
||||
|
||||
while True:
|
||||
if cpx.button_a:
|
||||
cpx.play_file("rise.wav")
|
||||
if cpx.button_b:
|
||||
cpx.play_file("dip.wav")
|
||||
7
Adafruit_STEMMA_Speaker/STEMMA_Speaker_CPX_play_tone.py
Executable file
7
Adafruit_STEMMA_Speaker/STEMMA_Speaker_CPX_play_tone.py
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
from adafruit_circuitplayground.express import cpx
|
||||
|
||||
while True:
|
||||
if cpx.button_a:
|
||||
cpx.play_tone(260, 1)
|
||||
if cpx.button_b:
|
||||
cpx.play_tone(292, 1)
|
||||
BIN
Adafruit_STEMMA_Speaker/dip.wav
Normal file
BIN
Adafruit_STEMMA_Speaker/dip.wav
Normal file
Binary file not shown.
BIN
Adafruit_STEMMA_Speaker/rise.wav
Normal file
BIN
Adafruit_STEMMA_Speaker/rise.wav
Normal file
Binary file not shown.
Loading…
Reference in a new issue