Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
light_scheduler.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2019 Xavier Paris
3 *
4 * This file is part of paparazzi.
5 *
6 * paparazzi is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
10 *
11 * paparazzi is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with paparazzi; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
19 *
20 */
21
30#ifndef LIGHT_SCHEDULER_H
31#define LIGHT_SCHEDULER_H
32
33#include "std.h"
34
36#define LIGHT_SCHEDULER_MODE_RAINBOW 0
37#define LIGHT_SCHEDULER_MODE_COLOR 1
38#define LIGHT_SCHEDULER_MODE_OFF 2
39#define LIGHT_SCHEDULER_MODE_SPARKLE 3
40
46
66
67#define LIGHT_SCHEDULER_COLOR_FLAG_FIRST LIGHT_SCHEDULER_COLOR_FLAG_ITALY
68
70
71extern void light_scheduler_init(void);
72extern void light_scheduler_periodic(void);
73
76
77#endif /* LIGHT_SCHEDULER_H */
uint8_t light_scheduler_green
green value in color mode
uint8_t light_scheduler_color
selected preset (light_scheduler_color_t)
uint8_t light_scheduler_mode
one of LIGHT_SCHEDULER_MODE_*
light_scheduler_color_t
Color presets and flags, order must match the values of the color setting Flags are shown as three eq...
@ LIGHT_SCHEDULER_COLOR_BLUE
@ LIGHT_SCHEDULER_COLOR_FLAG_ITALY
first flag, red | white | green
@ LIGHT_SCHEDULER_COLOR_FLAG_FRANCE
blue | white | red
@ LIGHT_SCHEDULER_COLOR_GREEN
@ LIGHT_SCHEDULER_COLOR_WHITE
@ LIGHT_SCHEDULER_COLOR_ORANGE
@ LIGHT_SCHEDULER_COLOR_PURPLE
@ LIGHT_SCHEDULER_COLOR_FLAG_NETHERLANDS
red | white | blue
@ LIGHT_SCHEDULER_COLOR_YELLOW
@ LIGHT_SCHEDULER_COLOR_NB
@ LIGHT_SCHEDULER_COLOR_CUSTOM
@ LIGHT_SCHEDULER_COLOR_RED
@ LIGHT_SCHEDULER_COLOR_CYAN
@ LIGHT_SCHEDULER_COLOR_MAGENTA
uint8_t light_scheduler_blue
blue value in color mode
void light_scheduler_set_color(uint8_t color)
Settings handler: apply a color preset to red/green/blue (or select a flag) and switch to color mode.
uint8_t light_scheduler_red
red value in color mode
void light_scheduler_init(void)
void light_scheduler_periodic(void)
uint8_t light_scheduler_brightness
brightness scaling (255 = full)
uint16_t foo
Definition main_demo5.c:58
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.