Files
paparazzi/conf/modules/light_scheduler.xml
T
2020-05-15 10:44:29 +02:00

28 lines
1.1 KiB
XML

<!DOCTYPE module SYSTEM "module.dtd">
<module name="light_scheduler" dir="light">
<doc>
<description>
Basic light scheduler using WS2812 driver
WS2812 are small RGB leds controlled with a 1-wire protocol.
This module is an example of controlling several leds with the color changing continuously.
Implementation for ChibiOS using DMA.
</description>
<configure name="WS2812_TIM" value="TIM1" description="Select the timer used to control the LEDs"/>
<define name="WS2812_NB_LEDS" value="8" description="Number of leds"/>
</doc>
<header>
<file name="light_scheduler.h"/>
</header>
<init fun="light_scheduler_init()"/>
<periodic fun="light_scheduler_periodic()" freq="8"/>
<makefile target="ap">
<configure name="WS2812_TIM" default="TIM1" case="upper"/>
<define name="STM32_PWM_USE_$(WS2812_TIM)" cond="ifeq ($(RTOS),chibios)"/>
<file name="light_scheduler.c"/>
<file_arch name="light_ws2812_arch.c"/>
<file_arch name="hal_stm32_dma.c" dir="mcu_periph" cond="ifeq ($(RTOS),chibios)"/>
</makefile>
</module>