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.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. static unsigned char blink = 0; // Variable for visualisation of fan rotation in GLCD
  12. #define LCD_MESSAGEPGM(x) lcd_setstatuspgm(PSTR(x))
  13. #define LCD_ALERTMESSAGEPGM(x) lcd_setalertstatuspgm(PSTR(x))
  14. #define LCD_UPDATE_INTERVAL 100
  15. #define LCD_TIMEOUT_TO_STATUS 15000
  16. #ifdef ULTIPANEL
  17. void lcd_buttons_update();
  18. #else
  19. FORCE_INLINE void lcd_buttons_update() {}
  20. #endif
  21. extern int plaPreheatHotendTemp;
  22. extern int plaPreheatHPBTemp;
  23. extern int plaPreheatFanSpeed;
  24. extern int absPreheatHotendTemp;
  25. extern int absPreheatHPBTemp;
  26. extern int absPreheatFanSpeed;
  27. bool lcd_clicked();
  28. #else //no lcd
  29. FORCE_INLINE void lcd_update() {}
  30. FORCE_INLINE void lcd_init() {}
  31. FORCE_INLINE void lcd_setstatus(const char* message) {}
  32. FORCE_INLINE void lcd_buttons_update() {}
  33. FORCE_INLINE void lcd_reset_alert_level() {}
  34. #define LCD_MESSAGEPGM(x)
  35. #define LCD_ALERTMESSAGEPGM(x)
  36. #endif
  37. char *itostr2(const uint8_t &x);
  38. char *itostr31(const int &xx);
  39. char *itostr3(const int &xx);
  40. char *itostr3left(const int &xx);
  41. char *itostr4(const int &xx);
  42. char *ftostr3(const float &x);
  43. char *ftostr31ns(const float &x); // float to string without sign character
  44. char *ftostr31(const float &x);
  45. char *ftostr32(const float &x);
  46. char *ftostr5(const float &x);
  47. char *ftostr51(const float &x);
  48. char *ftostr52(const float &x);
  49. #endif //ULTRALCD