Skip to content

Struct SYN_LED

ClassList > SYN_LED

LED instance — pin, mode, blink/flash/pattern state.

  • #include <syn_led.h>

Public Attributes

Type Name
uint8_t flash_remain
bool lit
uint8_t mode
uint16_t off_ms
uint16_t on_ms
const char * pattern
uint8_t pattern_idx
uint16_t pattern_unit
SYN_GPIO_Pin pin
uint8_t polarity
uint32_t tick

Public Attributes Documentation

variable flash_remain

uint8_t SYN_LED::flash_remain;

Remaining flashes


variable lit

bool SYN_LED::lit;

Current output state


variable mode

uint8_t SYN_LED::mode;

SYN_LEDMode


variable off_ms

uint16_t SYN_LED::off_ms;

Off duration (ms)


variable on_ms

uint16_t SYN_LED::on_ms;

On duration (ms)


variable pattern

const char* SYN_LED::pattern;

Pattern string pointer


variable pattern_idx

uint8_t SYN_LED::pattern_idx;

Current position in pattern


variable pattern_unit

uint16_t SYN_LED::pattern_unit;

Base unit time (ms)


variable pin

SYN_GPIO_Pin SYN_LED::pin;

GPIO pin


variable polarity

uint8_t SYN_LED::polarity;

SYN_LEDPolarity


variable tick

uint32_t SYN_LED::tick;

Last transition tick



The documentation for this class was generated from the following file src/syntropic/output/syn_led.h