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.

draw_dialog.h 3.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4. *
  5. * Based on Sprinter and grbl.
  6. * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. #ifdef __cplusplus
  24. extern "C" { /* C-declarations for C++ */
  25. #endif
  26. #define DIALOG_TYPE_STOP 0
  27. #define DIALOG_TYPE_PRINT_FILE 1
  28. #define DIALOG_TYPE_REPRINT_NO_FILE 2
  29. #define DIALOG_TYPE_M80_FAIL 3 //**
  30. #define DIALOG_TYPE_MESSAGE_ERR1 4 //**
  31. #define DIALOG_TYPE_UPDATE_ESP_FIRMARE 5
  32. #define DIALOG_TYPE_UPDATE_ESP_DATA 6
  33. #define DIALOG_TYPE_UPLOAD_FILE 7
  34. #define DIALOG_TYPE_UNBIND 8
  35. #define DIALOG_TYPE_FILAMENT_LOAD_HEAT 9
  36. #define DIALOG_TYPE_FILAMENT_HEAT_LOAD_COMPLETED 10
  37. #define DIALOG_TYPE_FILAMENT_LOADING 11
  38. #define DIALOG_TYPE_FILAMENT_LOAD_COMPLETED 12
  39. #define DIALOG_TYPE_FILAMENT_UNLOAD_HEAT 13
  40. #define DIALOG_TYPE_FILAMENT_HEAT_UNLOAD_COMPLETED 14
  41. #define DIALOG_TYPE_FILAMENT_UNLOADING 15
  42. #define DIALOG_TYPE_FILAMENT_UNLOAD_COMPLETED 16
  43. #define DIALOG_TYPE_FILE_LOADING 17 //**
  44. #define DIALOG_TYPE_FILAMENT_NO_PRESS 18
  45. #define DIALOG_TYPE_FINISH_PRINT 19
  46. #define WIFI_ENABLE_TIPS 20
  47. #define DIALOG_PAUSE_MESSAGE_PAUSING 21
  48. #define DIALOG_PAUSE_MESSAGE_CHANGING 22
  49. #define DIALOG_PAUSE_MESSAGE_UNLOAD 23
  50. #define DIALOG_PAUSE_MESSAGE_WAITING 24
  51. #define DIALOG_PAUSE_MESSAGE_INSERT 25
  52. #define DIALOG_PAUSE_MESSAGE_LOAD 26
  53. #define DIALOG_PAUSE_MESSAGE_PURGE 27
  54. #define DIALOG_PAUSE_MESSAGE_RESUME 28
  55. #define DIALOG_PAUSE_MESSAGE_HEAT 29
  56. #define DIALOG_PAUSE_MESSAGE_HEATING 30
  57. #define DIALOG_PAUSE_MESSAGE_OPTION 31
  58. #define DIALOG_STORE_EEPROM_TIPS 32
  59. #define DIALOG_READ_EEPROM_TIPS 33
  60. #define DIALOG_REVERT_EEPROM_TIPS 34
  61. #define DIALOG_WIFI_CONFIG_TIPS 35
  62. #define DIALOG_TRANSFER_NO_DEVICE 36
  63. #define BTN_OK_X 100
  64. #define BTN_OK_Y 180
  65. #define BTN_CANCEL_X 280
  66. #define BTN_CANCEL_Y 180
  67. extern void lv_draw_dialog(uint8_t type);
  68. extern void lv_clear_dialog();
  69. extern void filament_sprayer_temp();
  70. extern void filament_dialog_handle();
  71. extern void lv_filament_setbar();
  72. //extern void disp_temp_ready_print();
  73. #ifdef __cplusplus
  74. } /* C-declarations for C++ */
  75. #endif