<filename>src/adafruit-circuitpython-bundle-4.x-mpy-20190713/examples/circuitplayground_button_a.py
"""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

<filename>src/adafruit-circuitpython-bundle-4.x-mpy-20190713/examples/circuitplayground_button_a.py
"""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

This example turns on the little red LED when button A is pressed.