asyncio Demonstration
The example on this page demonstrates a basic use of asyncio. This uses a
microcontroller and a button to control two animations displayed on two different
NeoPixel rings. One ring displays a rainbow swirl, and the other displays a blink
animation at a 0.5 second interval. Pressing the button reverses the direction of the
rainbow swirl, and speeds up the blink animation to a 0.1 second interval. Releasing
the button returns both to their initial states.
Wiring
The first step is wiring up the NeoPixel rings to your microcontroller.
NeoPixel Rings
NeoPixel ring one: data in (DIN) to microcontroller A1
NeoPixel ring one: ground to microcontroller GND
NeoPixel ring one: V+ to microcontroller 3V
NeoPixel ring two: data in (DIN) to microcontroller A2
•
•
•
•
©Adafruit Industries Page 182 of 263