OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
Loading...
Searching...
No Matches
pixels Namespace Reference

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.
 

Detailed Description

Everything related to pixel control.

Function Documentation

◆ configure()

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.

Parameters
groupGroup of pixels to configure
dataPinGPIO number attached to Din (data input) in the LED strip. Must be output-capable.
pixelCountTotal count of pixels in the strip.
useLevelShiftSet to false when using 3.3V logic. Set to true when using the level shifter in open-drain mode.
pixelTypePixel driver.
pixelFormatFormat of color data (byte order). Set to AUTO for auto-detection.
globalBrightnessGlobal 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.