Merge pull request #198 from kattni/cpx-express-lib

Added shake threshold code
This commit is contained in:
Kattni 2018-05-28 18:07:46 -04:00 committed by GitHub
commit 9d9fe91092
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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