2 Copyright 2013 Mathias Andersson <wraul@dbox.se>
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
23 #ifndef BACKLIGHT_LEVELS
24 #define BACKLIGHT_LEVELS 3
25 #elif BACKLIGHT_LEVELS > 15
26 #error "Maximum value of BACKLIGHT_LEVELS is 15"
38 void backlight_init(void);
39 void backlight_increase(void);
40 void backlight_decrease(void);
41 void backlight_toggle(void);
42 void backlight_enable(void);
43 void backlight_disable(void);
44 bool is_backlight_enabled(void);
45 void backlight_step(void);
46 void backlight_set(uint8_t level);
47 void backlight_level(uint8_t level);
48 uint8_t get_backlight_level(void);
50 #ifdef BACKLIGHT_BREATHING
51 void backlight_toggle_breathing(void);
52 void backlight_enable_breathing(void);
53 void backlight_disable_breathing(void);
54 bool is_backlight_breathing(void);
55 void breathing_enable(void);
56 void breathing_disable(void);