2019-10-11 16:06:37 +00:00
|
|
|
//backlight.h
|
|
|
|
#ifndef _BACKLIGHT_H
|
|
|
|
#define _BACKLIGHT_H
|
|
|
|
|
|
|
|
#include <inttypes.h>
|
2019-10-18 09:18:43 +00:00
|
|
|
#include "Marlin.h"
|
|
|
|
#include "pins.h"
|
2019-10-11 16:06:37 +00:00
|
|
|
|
2019-10-17 10:11:32 +00:00
|
|
|
enum Backlight_Mode
|
|
|
|
{
|
2019-10-30 19:11:19 +00:00
|
|
|
BACKLIGHT_MODE_DIM = 0,
|
|
|
|
BACKLIGHT_MODE_BRIGHT = 1,
|
2019-10-17 10:11:32 +00:00
|
|
|
BACKLIGHT_MODE_AUTO = 2,
|
|
|
|
};
|
|
|
|
|
|
|
|
extern int16_t backlightLevel_HIGH;
|
|
|
|
extern int16_t backlightLevel_LOW;
|
|
|
|
extern uint8_t backlightMode;
|
2019-10-16 11:40:45 +00:00
|
|
|
extern bool backlightSupport;
|
2019-10-18 07:32:41 +00:00
|
|
|
extern int16_t backlightTimer_period;
|
2019-10-11 16:06:37 +00:00
|
|
|
|
2019-10-18 09:42:55 +00:00
|
|
|
#define FORCE_BL_ON_START force_bl_on(true)
|
|
|
|
#define FORCE_BL_ON_END force_bl_on(false)
|
|
|
|
|
2019-10-18 09:18:43 +00:00
|
|
|
extern void force_bl_on(bool section_start);
|
2019-10-11 16:06:37 +00:00
|
|
|
extern void backlight_update();
|
|
|
|
extern void backlight_init();
|
2019-10-17 10:11:32 +00:00
|
|
|
extern void backlight_save();
|
2019-10-30 19:11:19 +00:00
|
|
|
extern void backlight_wake(const uint8_t flashNo = 0);
|
2019-10-11 16:06:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif //_BACKLIGHT_H
|