Prusa3d Marlin fork
backlight.h
1 //backlight.h
2 #ifndef _BACKLIGHT_H
3 #define _BACKLIGHT_H
4 
5 #include <inttypes.h>
6 
7 enum Backlight_Mode
8 {
9  BACKLIGHT_MODE_DIM = 0,
10  BACKLIGHT_MODE_BRIGHT = 1,
11  BACKLIGHT_MODE_AUTO = 2,
12 };
13 
14 extern uint8_t backlightLevel_HIGH;
15 extern uint8_t backlightLevel_LOW;
16 extern uint8_t backlightMode;
17 extern bool backlightSupport;
18 extern int16_t backlightTimer_period;
19 
20 #define FORCE_BL_ON_START force_bl_on(true)
21 #define FORCE_BL_ON_END force_bl_on(false)
22 
23 extern void force_bl_on(bool section_start);
24 extern void backlight_update();
25 extern void backlight_init();
26 extern void backlight_save();
27 extern void backlight_wake(const uint8_t flashNo = 0);
28 
29 
30 #endif //_BACKLIGHT_H