![]() |
OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
|
Everything related to pixel control. More...
Functions | |
| void | configure (PixelGroup group, OutputGPIO dataPin, uint8_t pixelCount, bool useLevelShift, PixelDriver pixelType=PixelDriver::WS2812, PixelFormat pixelFormat=PixelFormat::AUTO, uint8_t globalBrightness=0xFF) |
| Configure an LED strip for pixel control. | |
Everything related to pixel control.
| void pixels::configure | ( | PixelGroup | group, |
| OutputGPIO | dataPin, | ||
| uint8_t | pixelCount, | ||
| bool | useLevelShift, | ||
| PixelDriver | pixelType = PixelDriver::WS2812, | ||
| PixelFormat | pixelFormat = PixelFormat::AUTO, | ||
| uint8_t | globalBrightness = 0xFF ) |
Configure an LED strip for pixel control.
| group | Group of pixels to configure |
| dataPin | GPIO number attached to Din (data input) in the LED strip. Must be output-capable. |
| pixelCount | Total count of pixels in the strip. |
| useLevelShift | Set to false when using 3.3V logic. Set to true when using the level shifter in open-drain mode. |
| pixelType | Pixel driver. |
| pixelFormat | Format of color data (byte order). Set to AUTO for auto-detection. |
| globalBrightness | Global brightness for all pixels. By default, the maximum brightness. Set to 16 when using a 3.3V power supply with a non-3.3V LED strip and no level shifter. |