Prop maker light up prop update
Prop maker light up prop update
This commit is contained in:
parent
4d00b5f41e
commit
06deafd4e3
1 changed files with 11 additions and 1 deletions
|
|
@ -1,3 +1,13 @@
|
||||||
|
"""
|
||||||
|
Prop-Maker based Light Up Prop.
|
||||||
|
Adafruit invests time and resources providing this open source code.
|
||||||
|
Please support Adafruit and open source hardware by purchasing
|
||||||
|
products from Adafruit!
|
||||||
|
Written by Kattni Rembor for Adafruit Industries
|
||||||
|
Copyright (c) 2019 Adafruit Industries
|
||||||
|
Licensed under the MIT license.
|
||||||
|
All text above must be included in any redistribution.
|
||||||
|
"""
|
||||||
import time
|
import time
|
||||||
import random
|
import random
|
||||||
import digitalio
|
import digitalio
|
||||||
|
|
@ -125,4 +135,4 @@ while True:
|
||||||
led.color = HIT_COLOR # Set color to hit color
|
led.color = HIT_COLOR # Set color to hit color
|
||||||
else: # No sound now, but still SWING or HIT modes
|
else: # No sound now, but still SWING or HIT modes
|
||||||
play_wav('idle', loop=True) # Resume idle sound
|
play_wav('idle', loop=True) # Resume idle sound
|
||||||
mode = 1 # Return to idle mode
|
mode = 1 # Return to idle mode
|
||||||
Loading…
Reference in a new issue