|
PixelKey
NeoPixel USB Key
|
Support for NeoPixel LEDs. More...
Data Structures | |
| struct | neopixel_data_t |
| Individual data block for a NeoPixel: 24-bit color green-red-blue sent MSb first. More... | |
Macros | |
| #define | NEOPIXEL_CHANNEL_COUNT (3U) |
| Number of color channels per neopixel. | |
| #define | NEOPIXEL_COLOR_BITS (NEOPIXEL_CHANNEL_COUNT * 8U) |
| Total number of bits for a single NeoPixel. | |
| #define | NEOPIXEL_CODE_T0H_NS (300U) |
| Period of the 0-NRZ-code high assertion time, in nanoseconds. | |
| #define | NEOPIXEL_CODE_T0L_NS (900U) |
| Period of the 0-NRZ-code low assertion time, in nanoseconds. | |
| #define | NEOPIXEL_CODE_T1H_NS (600U) |
| Period of the 1-NRZ-code high assertion time, in nanoseconds. | |
| #define | NEOPIXEL_CODE_T1L_NS (600U) |
| Period of the 1-NRZ-code low assertion time, in nanoseconds. | |
| #define | NEOPIXEL_CODE_TBIT_NS (1200U) |
| Total period, in nanoseconds, for the high and low portions of the NRZ bit codes. | |
| #define | NEOPIXEL_CODE_TRST_NS (80000U) |
| Minumum period, in nanoseconds, of the reset code. | |
| #define | NEOPIXEL_GAMMA_CORRECTION_DEFAULT (2.8f) |
| Default gamma correction factor for NeoPixels. More... | |
Support for NeoPixel LEDs.
NeoPixels use a NRZ (non-return-to-zero) code with a fixed timing width to transmit color data.
Data is transmitted during each refresh cycle. All NeoPixels color codes are transmitted in sequence followed by a reset code. Each subsequent NeoPixel re-transmits any bit codes that follow after reception of its data.
| #define NEOPIXEL_GAMMA_CORRECTION_DEFAULT (2.8f) |
Default gamma correction factor for NeoPixels.
From: https://learn.adafruit.com/led-tricks-gamma-correction/the-longer-fix.