7 lines
220 B
Python
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
|