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 driver=PixelDriver::WS2812, uint8_t globalBrightness=0xFF, bool reverse=false)
 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 driver = PixelDriver::WS2812,
uint8_t globalBrightness = 0xFF,
bool reverse = false )

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.
driverPixel driver.
globalBrightnessGlobal brightness for all pixels. By default, the maximum brightness. Set to 127 when using a 3.3V power supply with a non-3.3V LED strip and no level shifter.
reverseSet to true if the physical arrangement of the pixels is the inverse of their logical arrangement.