PebbleOS v4.47.0
Loading...
Searching...
No Matches
pbl_led_ops Struct Reference

LED driver operations. More...

#include <led.h>

Data Fields

int(* set )(const struct pbl_led *led, uint8_t brightness, uint32_t rgb_color)
 Apply a brightness, 0 being off, and a color as 0xRRGGBB.
 
int(* refresh )(const struct pbl_led *led, uint8_t brightness, uint32_t rgb_color)
 Optional.
 

Detailed Description

LED driver operations.

Field Documentation

◆ refresh

int(* pbl_led_ops::refresh) (const struct pbl_led *led, uint8_t brightness, uint32_t rgb_color)

Optional.

Configure the controller again, then apply the brightness and color.

◆ set

int(* pbl_led_ops::set) (const struct pbl_led *led, uint8_t brightness, uint32_t rgb_color)

Apply a brightness, 0 being off, and a color as 0xRRGGBB.


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