These are examples of the same code in the Intro to Circuit Playground Express guide Circuit Python section using the `cpx express` class.`
7 lines
150 B
Python
Executable file
7 lines
150 B
Python
Executable file
from adafruit_circuitplayground.express import cpx
|
|
|
|
while True:
|
|
if cpx.button_b:
|
|
cpx.red_led = True
|
|
else:
|
|
cpx.red_led = False
|