5 lines
135 B
Python
5 lines
135 B
Python
from adafruit_circuitplayground.express import cpx
|
|
|
|
while True:
|
|
if cpx.shake(shake_threshold=20):
|
|
print("Shake detected!")
|