]>
git.zerfleddert.de Git - fnordlicht-mini/blob - firmware/fnordlicht-firmware/color.h
1 /* vim:ts=4 sts=4 et tw=80
5 * for additional information please
6 * see http://lochraster.org/fnordlichtmini
8 * (c) by Alexander Neumann <alexander@bumpern.de>
9 * Lars Noschinski <lars@public.noschinski.de>
11 * This program is free software: you can redistribute it and/or modify it
12 * under the terms of the GNU General Public License version 3 as published by
13 * the Free Software Foundation.
15 * This program is distributed in the hope that it will be useful, but WITHOUT
16 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
20 * You should have received a copy of the GNU General Public License along with
21 * this program. If not, see <http://www.gnu.org/licenses/>.
25 /* for PWM_CHANNELS */
32 #error "PWM_CHANNELS is not 3, this is unsupported!"
47 struct rgb_color_offset_t
{
70 struct hsv_color_offset_t
{
78 struct rgb_color_t rgb
;
79 struct hsv_color_t hsv
;
94 /* marker, 0xff if rgb */
102 /* 0 <= hue <= 349, otherwise rgb might be assumed */