backlight.h 705 B

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