PebbleOS v4.47.0
Loading...
Searching...
No Matches
led.h File Reference
#include <stdint.h>
#include <pbl/device.h>

Data Structures

struct  pbl_led_ops
 LED driver operations. More...
 
struct  pbl_led
 LED. More...
 

Macros

#define PBL_LED_BRIGHTNESS_MAX   255U
 Full brightness.
 
#define PBL_LED_INIT(sym, _name, _init, _parent, _ops)
 Initialize a struct pbl_led.
 

Functions

int pbl_led_set (const struct pbl_led *led, uint8_t brightness, uint32_t rgb_color)
 Set an LED.
 
int pbl_led_refresh (const struct pbl_led *led, uint8_t brightness, uint32_t rgb_color)
 Configure the controller of an LED again and set the LED, after the controller may have lost its configuration.