Adafruit_Learning_System_Gu.../Introducing_CircuitPlaygroundExpress/CircuitPlaygroundExpress_DigitalIO_example1_cpx.py
Kattni 4f0276012c Examples from Intro Guide using cpx express class
These are examples of the same code in the Intro to Circuit Playground Express guide Circuit Python section using the `cpx express` class.`
2017-12-04 14:22:00 -08:00

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