Module neopixel_example::lib::neopixel
source · Expand description
§Welcome to the neopixel library source code!
- By: Jonathan Zurita
- Date: 11/18/2024
- Version: 0.1.0
§What is the function of this library?
This library allows the user to call user-friendly functions in order to manipulate WS2812 neopixels.
§IMPORTANT NOTES
Please edit the pub const
variables as needed
- (e.g. change
NUM_LEDS
to 24 instead of default value of 8.)
§Why do use a watchdog timer as an argument?
I decided to include a watchdog timer in order to protect against possible lockups in DMA transmission. Thankfully utilizing a WDT requires minimal overhead. :)
§Release Notes
V0.1.0 - Released neopixel library to the public
Constants§
- ARR_SIZE = NUM_LEDS * PACKET_SIZE
- SPI generate waveforms (LOGIC_1)
- SPI generate waveforms (LOGIC_0)
- Desired number of neopixels to control
- Number of color bits per neopixel
- TURN_
OFF 🔒Essentially hex color code for black (no light)
Functions§
- <<< Click on me to see function desc!
- <<< Click on me to see function desc!
- <<< Click on me to see function desc!