Adafruit_CircuitPython_Circ.../examples/circuitplayground_button_a.py
2019-06-07 14:45:09 -04:00

7 lines
220 B
Python

"""This example turns on the little red LED when button A is pressed."""
from adafruit_circuitplayground.express import cpx
while True:
if cpx.button_a:
print("Button A pressed!")
cpx.red_led = True