My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ultralcd.h 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #ifndef ULTRALCD_H
  2. #define ULTRALCD_H
  3. #include "Marlin.h"
  4. #ifdef ULTRA_LCD
  5. void lcd_update();
  6. void lcd_init();
  7. void lcd_setstatus(const char* message);
  8. void lcd_setstatuspgm(const char* message);
  9. void lcd_setalertstatuspgm(const char* message);
  10. void lcd_reset_alert_level();
  11. #define LCD_MESSAGEPGM(x) lcd_setstatuspgm(PSTR(x))
  12. #define LCD_ALERTMESSAGEPGM(x) lcd_setalertstatuspgm(PSTR(x))
  13. #define LCD_UPDATE_INTERVAL 100
  14. #define LCD_TIMEOUT_TO_STATUS 15000
  15. #ifdef ULTIPANEL
  16. void lcd_buttons_update();
  17. #else
  18. FORCE_INLINE void lcd_buttons_update() {}
  19. #endif
  20. extern int plaPreheatHotendTemp;
  21. extern int plaPreheatHPBTemp;
  22. extern int plaPreheatFanSpeed;
  23. extern int absPreheatHotendTemp;
  24. extern int absPreheatHPBTemp;
  25. extern int absPreheatFanSpeed;
  26. bool lcd_clicked();
  27. #else //no lcd
  28. FORCE_INLINE void lcd_update() {}
  29. FORCE_INLINE void lcd_init() {}
  30. FORCE_INLINE void lcd_setstatus(const char* message) {}
  31. FORCE_INLINE void lcd_buttons_update() {}
  32. FORCE_INLINE void lcd_reset_alert_level() {}
  33. #define LCD_MESSAGEPGM(x)
  34. #define LCD_ALERTMESSAGEPGM(x)
  35. #endif
  36. char *itostr2(const uint8_t &x);
  37. char *itostr31(const int &xx);
  38. char *itostr3(const int &xx);
  39. char *itostr3left(const int &xx);
  40. char *itostr4(const int &xx);
  41. char *ftostr3(const float &x);
  42. char *ftostr31(const float &x);
  43. char *ftostr32(const float &x);
  44. char *ftostr5(const float &x);
  45. char *ftostr51(const float &x);
  46. char *ftostr52(const float &x);
  47. #endif //ULTRALCD