Adafruit ESP32-S3 Manual page 185

Tft feather
Table of Contents

Advertisement

adafruit_ticks.mpy
neopixel.mpy
Ring one will light up in a rainbow swirl. Ring two will begin blinking blue at a 0.5
second interval.
Now, press the button. The rainbow swirl on ring one will reverse direction, and the
blinking on ring two will speed up!
Now release the button. The rainbow swirl on ring one returns to its original direction,
and the blinking on ring two returns to its original speed!
Code Walkthrough
First you import the necessary modules and libraries.
import asyncio
import board
import neopixel
import keypad
from rainbowio import colorwheel
©Adafruit Industries
Page 185 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?

Table of Contents

Save PDF