My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

ultralcd.h 1.8KB

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