Paparazzi UAS  v5.15_devel-88-gb3ad7fe
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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 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

#define WS2812_NB_LEDS   8

Number of LEDs.

Definition at line 36 of file light_ws2812_arch.h.

Referenced by light_scheduler_periodic(), and light_ws2812_arch_set().

Function Documentation

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 152 of file light_ws2812_arch.c.

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

Referenced by light_scheduler_periodic().

+ Here is the caller graph for this function: