1
0
Fork 0

New macro: ACTION_BACKLIGHT_LEVEL(level)

To have full control of the backlight level.
This commit is contained in:
Ralf Schmitt 2014-04-08 21:02:46 +02:00
parent 5c63751790
commit 589d99b448
8 changed files with 89 additions and 24 deletions

View file

@ -24,18 +24,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
typedef union {
uint8_t raw;
struct {
bool enable:1;
uint8_t level:7;
bool enable :1;
uint8_t level :7;
};
} backlight_config_t;
void backlight_init(void);
void backlight_increase(void);
void backlight_decrease(void);
void backlight_toggle(void);
void backlight_step(void);
void backlight_set(uint8_t level);
void backlight_level(uint8_t level);
#endif