My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

ultralcd.h 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. extern volatile uint8_t buttons; //the last checked buttons in a bit array.
  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. #ifdef NEWPANEL
  28. #define EN_C (1<<BLEN_C)
  29. #define EN_B (1<<BLEN_B)
  30. #define EN_A (1<<BLEN_A)
  31. #define LCD_CLICKED (buttons&EN_C)
  32. #else
  33. //atomatic, do not change
  34. #define B_LE (1<<BL_LE)
  35. #define B_UP (1<<BL_UP)
  36. #define B_MI (1<<BL_MI)
  37. #define B_DW (1<<BL_DW)
  38. #define B_RI (1<<BL_RI)
  39. #define B_ST (1<<BL_ST)
  40. #define EN_B (1<<BLEN_B)
  41. #define EN_A (1<<BLEN_A)
  42. #define LCD_CLICKED ((buttons&B_MI)||(buttons&B_ST))
  43. #endif//NEWPANEL
  44. #else //no lcd
  45. FORCE_INLINE void lcd_update() {}
  46. FORCE_INLINE void lcd_init() {}
  47. FORCE_INLINE void lcd_setstatus(const char* message) {}
  48. FORCE_INLINE void lcd_buttons_update() {}
  49. FORCE_INLINE void lcd_reset_alert_level() {}
  50. #define LCD_MESSAGEPGM(x)
  51. #define LCD_ALERTMESSAGEPGM(x)
  52. #endif
  53. char *itostr2(const uint8_t &x);
  54. char *itostr31(const int &xx);
  55. char *itostr3(const int &xx);
  56. char *itostr3left(const int &xx);
  57. char *itostr4(const int &xx);
  58. char *ftostr3(const float &x);
  59. char *ftostr31(const float &x);
  60. char *ftostr32(const float &x);
  61. char *ftostr5(const float &x);
  62. char *ftostr51(const float &x);
  63. char *ftostr52(const float &x);
  64. #endif //ULTRALCD