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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. void lcd_buzz(long duration,uint16_t freq);
  28. bool lcd_clicked();
  29. #else //no lcd
  30. FORCE_INLINE void lcd_update() {}
  31. FORCE_INLINE void lcd_init() {}
  32. FORCE_INLINE void lcd_setstatus(const char* message) {}
  33. FORCE_INLINE void lcd_buttons_update() {}
  34. FORCE_INLINE void lcd_reset_alert_level() {}
  35. FORCE_INLINE void lcd_buzz(long duration,uint16_t freq) {}
  36. #define LCD_MESSAGEPGM(x)
  37. #define LCD_ALERTMESSAGEPGM(x)
  38. #endif
  39. char *itostr2(const uint8_t &x);
  40. char *itostr31(const int &xx);
  41. char *itostr3(const int &xx);
  42. char *itostr3left(const int &xx);
  43. char *itostr4(const int &xx);
  44. char *ftostr3(const float &x);
  45. char *ftostr31ns(const float &x); // float to string without sign character
  46. char *ftostr31(const float &x);
  47. char *ftostr32(const float &x);
  48. char *ftostr5(const float &x);
  49. char *ftostr51(const float &x);
  50. char *ftostr52(const float &x);
  51. #endif //ULTRALCD