Added shake threshold code

This commit is contained in:
Kattni Rembor 2018-05-28 18:07:16 -04:00
parent b4879da5ec
commit 038de5ea29

View file

@ -0,0 +1,6 @@
from adafruit_circuitplayground.express import cpx
while True:
if cpx.shake(shake_threshold=20):
print("Shake detected!")
cpx.red_led = True