Adafruit ESP32-S3 Manual page 129

Tft feather
Table of Contents

Advertisement

example, but now includes setup for a button switch. Instead of using the
module to blink the LED, it uses the status of the button switch to control whether the
LED is turned on or off.
LED and Button
The red LED (highlighted above in red) is located above the USB jack on the left side
of the board.
The Boot button (highlighted above in blue) is located next to the bottom left corner
of the display, above the GND pin.
Controlling the LED with a Button
In the example below, click the Download Project Bundle button below to download
the necessary libraries and the code.py file in a zip file. Extract the contents of the zip
file, open the directory CircuitPython_Templates/digital_input_built_in_button_led/
and then click on the directory that matches the version of CircuitPython you're using
and copy the contents of that directory to your CIRCUITPY drive.
Your CIRCUITPY drive should now look similar to the following image:
# SPDX-FileCopyrightText: 2022 Kattni Rembor for Adafruit Industries
# SPDX-License-Identifier: MIT
"""
©Adafruit Industries
time
Page 129 of 263

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32-S3 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF