kopia lustrzana https://github.com/pimoroni/pimoroni-pico
Cosmic Unicorn: Fix feature test for #661.
rodzic
6c0c45d6c8
commit
a09fde770f
|
@ -252,7 +252,7 @@ while True:
|
||||||
was_c_pressed = False
|
was_c_pressed = False
|
||||||
|
|
||||||
if gu.is_pressed(CosmicUnicorn.SWITCH_D):
|
if gu.is_pressed(CosmicUnicorn.SWITCH_D):
|
||||||
if not was_c_pressed:
|
if not was_d_pressed:
|
||||||
# Stop synth (if running) and play Tone B
|
# Stop synth (if running) and play Tone B
|
||||||
timer.deinit()
|
timer.deinit()
|
||||||
tone_b = 600
|
tone_b = 600
|
||||||
|
@ -291,7 +291,7 @@ while True:
|
||||||
channels[0].frequency(tone_a)
|
channels[0].frequency(tone_a)
|
||||||
|
|
||||||
if gu.is_pressed(CosmicUnicorn.SWITCH_SLEEP):
|
if gu.is_pressed(CosmicUnicorn.SWITCH_SLEEP):
|
||||||
if not was_d_pressed:
|
if not was_z_pressed:
|
||||||
# Stop synth and both tones
|
# Stop synth and both tones
|
||||||
tone_a = 0
|
tone_a = 0
|
||||||
tone_b = 0
|
tone_b = 0
|
||||||
|
|
Ładowanie…
Reference in New Issue