HF-Core Platform 0.1.0-dev
Hardware-Agnostic Handler Layer & RTOS Utilities for HardFOC
Loading...
Searching...
No Matches
Ws2812Handler::Config Struct Reference

Configuration structure for the WS2812 handler. More...

#include <Ws2812Handler.h>

Public Attributes

gpio_num_t gpio_pin {}
 GPIO pin connected to LED data line.
 
uint32_t num_leds {1}
 Number of LEDs in the strip.
 
LedType led_type {LedType::RGB}
 
uint8_t brightness {255}
 Global brightness (0-255)
 
int rmt_channel {0}
 RMT channel number.
 
uint16_t t0h {400}
 T0H timing in nanoseconds.
 
uint16_t t1h {800}
 T1H timing in nanoseconds.
 
uint16_t t0l {850}
 T0L timing in nanoseconds.
 
uint16_t t1l {450}
 T1L timing in nanoseconds.
 

Detailed Description

Configuration structure for the WS2812 handler.

Member Data Documentation

◆ brightness

uint8_t Ws2812Handler::Config::brightness {255}

Global brightness (0-255)

◆ gpio_pin

gpio_num_t Ws2812Handler::Config::gpio_pin {}

GPIO pin connected to LED data line.

◆ led_type

LedType Ws2812Handler::Config::led_type {LedType::RGB}

◆ num_leds

uint32_t Ws2812Handler::Config::num_leds {1}

Number of LEDs in the strip.

◆ rmt_channel

int Ws2812Handler::Config::rmt_channel {0}

RMT channel number.

◆ t0h

uint16_t Ws2812Handler::Config::t0h {400}

T0H timing in nanoseconds.

◆ t0l

uint16_t Ws2812Handler::Config::t0l {850}

T0L timing in nanoseconds.

◆ t1h

uint16_t Ws2812Handler::Config::t1h {800}

T1H timing in nanoseconds.

◆ t1l

uint16_t Ws2812Handler::Config::t1l {450}

T1L timing in nanoseconds.


The documentation for this struct was generated from the following file: