Struct 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¶
Remaining flashes
variable lit¶
Current output state
variable mode¶
SYN_LEDMode
variable off_ms¶
Off duration (ms)
variable on_ms¶
On duration (ms)
variable pattern¶
Pattern string pointer
variable pattern_idx¶
Current position in pattern
variable pattern_unit¶
Base unit time (ms)
variable pin¶
GPIO pin
variable polarity¶
SYN_LEDPolarity
variable tick¶
Last transition tick
The documentation for this class was generated from the following file src/syntropic/output/syn_led.h