Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
light_ws2812_arch.h File Reference

ws2812 driver based on ChibiOS More...

#include "std.h"
+ Include dependency graph for light_ws2812_arch.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define WS2812_NB_LEDS   8
 Number of LEDs. More...
 

Functions

void light_ws2812_arch_init (void)
 
void light_ws2812_arch_set (uint32_t led_number, uint8_t r, uint8_t g, uint8_t b)
 set color RGB color of one led More...
 

Detailed Description

ws2812 driver based on ChibiOS

Author
Xavier Paris @maintainer Gautier Hattenberger gauti.nosp@m.er.h.nosp@m.atten.nosp@m.berg.nosp@m.er@en.nosp@m.ac.f.nosp@m.r

Definition in file light_ws2812_arch.h.

Macro Definition Documentation

◆ WS2812_NB_LEDS

#define WS2812_NB_LEDS   8

Number of LEDs.

Definition at line 36 of file light_ws2812_arch.h.

Function Documentation

◆ light_ws2812_arch_init()

◆ light_ws2812_arch_set()

void light_ws2812_arch_set ( uint32_t  led_number,
uint8_t  r,
uint8_t  g,
uint8_t  b 
)

set color RGB color of one led

Definition at line 161 of file light_ws2812_arch.c.

References b, WS2812Driver::buf, g, WS2812_BLUE_BIT, WS2812_DUTYCYCLE_0, WS2812_DUTYCYCLE_1, WS2812_GREEN_BIT, WS2812_NB_LEDS, WS2812_RED_BIT, and WS2812D.

Referenced by light_scheduler_periodic().

+ Here is the caller graph for this function: