Browse Source

Touch UI updates for Cocoa Press (#15986)

Scott Lahteine 5 years ago
parent
commit
b11551c767
No account linked to committer's email address
100 changed files with 288 additions and 164 deletions
  1. 3
    0
      Marlin/Makefile
  2. 2
    2
      Marlin/src/HAL/HAL_DUE/usb/compiler.h
  3. 0
    1
      Marlin/src/Marlin.cpp
  4. 0
    3
      Marlin/src/gcode/lcd/M0_M1.cpp
  5. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/archim2-flash/flash_storage.cpp
  6. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/archim2-flash/flash_storage.h
  7. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/archim2-flash/media_file_reader.cpp
  8. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/archim2-flash/media_file_reader.h
  9. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/compat.h
  10. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/config.h
  11. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/LICENSE.txt
  12. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/README.md
  13. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/basic/boards.h
  14. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/basic/commands.cpp
  15. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/basic/commands.h
  16. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/basic/constants.h
  17. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/basic/display_list.h
  18. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/basic/ftdi_basic.h
  19. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/basic/registers_ft800.h
  20. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/basic/registers_ft810.h
  21. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/basic/resolutions.h
  22. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/basic/spi.cpp
  23. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/basic/spi.h
  24. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/compat.h
  25. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/bitmap_info.h
  26. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/command_processor.cpp
  27. 1
    1
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/command_processor.h
  28. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/dl_cache.cpp
  29. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/dl_cache.h
  30. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/event_loop.cpp
  31. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/event_loop.h
  32. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/ftdi_extended.h
  33. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/grid_layout.h
  34. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/polygon.h
  35. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/rgb_t.h
  36. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/screen_types.cpp
  37. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/screen_types.h
  38. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/sound_list.h
  39. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/sound_player.cpp
  40. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/sound_player.h
  41. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/text_box.cpp
  42. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/text_box.h
  43. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/tiny_timer.cpp
  44. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/tiny_timer.h
  45. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/README.txt
  46. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/font_bitmaps.cpp
  47. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/font_bitmaps.h
  48. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/font_bitmaps/romfont_31.pbm
  49. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/font_bitmaps/western_char_set_bitmap_31.png
  50. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/font_bitmaps/western_char_set_bitmap_31.svg
  51. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/font_size_t.cpp
  52. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/font_size_t.h
  53. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/standard_char_set.cpp
  54. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/standard_char_set.h
  55. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/unicode.cpp
  56. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/unicode.h
  57. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/western_char_set.cpp
  58. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/western_char_set.h
  59. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/western_char_set_bitmap_31.h
  60. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extras/bitmap2cpp.py
  61. 10
    5
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extras/circular_progress.h
  62. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extras/poly_ui.h
  63. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extras/svg2cpp.py
  64. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/ftdi_eve_lib.h
  65. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/language/language.cpp
  66. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/language/language.h
  67. 4
    1
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/language/language_en.h
  68. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/marlin_events.cpp
  69. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/pin_mappings.h
  70. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/about_screen.cpp
  71. 80
    66
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/advanced_settings_menu.cpp
  72. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/alert_dialog_box.cpp
  73. 10
    6
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/backlash_compensation_screen.cpp
  74. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/base_numeric_adjustment_screen.cpp
  75. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/base_screen.cpp
  76. 25
    25
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/bio_advanced_settings.cpp
  77. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/bio_confirm_home_e.cpp
  78. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/bio_confirm_home_xyz.cpp
  79. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/bio_main_menu.cpp
  80. 10
    6
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/bio_printer_ui_landscape.h
  81. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/bio_printer_ui_portrait.h
  82. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/bio_printing_dialog_box.cpp
  83. 39
    11
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/bio_status_screen.cpp
  84. 5
    5
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/bio_tune_menu.cpp
  85. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/boot_screen.cpp
  86. 62
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/case_light_screen.cpp
  87. 8
    5
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/change_filament_screen.cpp
  88. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/confirm_abort_print_dialog_box.cpp
  89. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/confirm_auto_calibration_dialog_box.cpp
  90. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/confirm_erase_flash_dialog_box.cpp
  91. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/confirm_start_print_dialog_box.cpp
  92. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/confirm_user_request_alert_box.cpp
  93. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/default_acceleration_screen.cpp
  94. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/developer_menu.cpp
  95. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/dialog_box_base_class.cpp
  96. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/display_tuning_screen.cpp
  97. 9
    7
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/endstop_state_screen.cpp
  98. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/feedrate_percent_screen.cpp
  99. 20
    20
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/filament_menu.cpp
  100. 0
    0
      Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/filament_runout_screen.cpp

+ 3
- 0
Marlin/Makefile View File

@@ -92,6 +92,9 @@ U8GLIB             ?= 1
92 92
 # this defines whether to include the Trinamic TMCStepper library
93 93
 TMC                ?= 1
94 94
 
95
+# this defines whether to include the AdaFruit NeoPixel library
96
+NEOPIXEL           ?= 0
97
+
95 98
 ############
96 99
 # Try to automatically determine whether RELOC_WORKAROUND is needed based
97 100
 # on GCC versions:

+ 2
- 2
Marlin/src/HAL/HAL_DUE/usb/compiler.h View File

@@ -444,8 +444,8 @@ typedef struct
444 444
 #define ENABLE    1
445 445
 #ifndef __cplusplus
446 446
 #ifndef __bool_true_false_are_defined
447
-#define false 0
448
-#define true 1
447
+#define false (1==0)
448
+#define true (1==1)
449 449
 #endif
450 450
 #endif
451 451
 #ifndef PASS

+ 0
- 1
Marlin/src/Marlin.cpp View File

@@ -720,7 +720,6 @@ void kill(PGM_P const lcd_error/*=nullptr*/, PGM_P const lcd_component/*=nullptr
720 720
   SERIAL_ERROR_MSG(MSG_ERR_KILLED);
721 721
 
722 722
   #if HAS_DISPLAY
723
-    extern const char NUL_STR[];
724 723
     ui.kill_screen(lcd_error ?: GET_TEXT(MSG_KILLED), lcd_component ?: NUL_STR);
725 724
   #else
726 725
     UNUSED(lcd_error);

+ 0
- 3
Marlin/src/gcode/lcd/M0_M1.cpp View File

@@ -100,9 +100,6 @@ void GcodeSuite::M0_M1() {
100 100
   #if ENABLED(HOST_PROMPT_SUPPORT)
101 101
     host_prompt_do(PROMPT_USER_CONTINUE, PSTR("M0/1 Break Called"), PSTR("Continue"));
102 102
   #endif
103
-  #if ENABLED(EXTENSIBLE_UI)
104
-    ExtUI::onUserConfirmRequired_P(PSTR("M0/1 Break Called"));
105
-  #endif
106 103
 
107 104
   if (ms > 0) {
108 105
     ms += millis();  // wait until this time for a click

Marlin/src/lcd/extensible_ui/lib/lulzbot/archim2-flash/flash_storage.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/archim2-flash/flash_storage.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/archim2-flash/flash_storage.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/archim2-flash/flash_storage.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/archim2-flash/media_file_reader.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/archim2-flash/media_file_reader.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/archim2-flash/media_file_reader.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/archim2-flash/media_file_reader.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/compat.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/compat.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/config.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/config.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/LICENSE.txt → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/LICENSE.txt View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/README.md → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/README.md View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/basic/boards.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/basic/boards.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/basic/commands.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/basic/commands.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/basic/commands.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/basic/commands.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/basic/constants.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/basic/constants.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/basic/display_list.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/basic/display_list.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/basic/ftdi_basic.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/basic/ftdi_basic.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/basic/registers_ft800.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/basic/registers_ft800.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/basic/registers_ft810.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/basic/registers_ft810.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/basic/resolutions.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/basic/resolutions.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/basic/spi.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/basic/spi.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/basic/spi.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/basic/spi.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/compat.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/compat.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/bitmap_info.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/bitmap_info.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/command_processor.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/command_processor.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/command_processor.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/command_processor.h View File

@@ -132,7 +132,7 @@ class CommandProcessor : public CLCD::CommandFifo {
132 132
 
133 133
     inline CommandProcessor& font     (int16_t  font)             {_font = font; return *this;}
134 134
 
135
-    inline CommandProcessor& enabled  (bool enabled) {
135
+    inline CommandProcessor& enabled  (bool enabled=false) {
136 136
       if (enabled)
137 137
         _style &= ~STYLE_DISABLED;
138 138
       else

Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/dl_cache.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/dl_cache.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/dl_cache.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/dl_cache.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/event_loop.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/event_loop.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/event_loop.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/event_loop.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/ftdi_extended.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/ftdi_extended.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/grid_layout.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/grid_layout.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/polygon.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/polygon.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/rgb_t.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/rgb_t.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/screen_types.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/screen_types.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/screen_types.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/screen_types.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/sound_list.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/sound_list.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/sound_player.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/sound_player.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/sound_player.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/sound_player.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/text_box.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/text_box.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/text_box.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/text_box.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/tiny_timer.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/tiny_timer.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/tiny_timer.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/tiny_timer.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/unicode/README.txt → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/README.txt View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/unicode/font_bitmaps.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/font_bitmaps.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/unicode/font_bitmaps.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/font_bitmaps.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/unicode/font_bitmaps/romfont_31.pbm → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/font_bitmaps/romfont_31.pbm View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/unicode/font_bitmaps/western_char_set_bitmap_31.png → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/font_bitmaps/western_char_set_bitmap_31.png View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/unicode/font_bitmaps/western_char_set_bitmap_31.svg → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/font_bitmaps/western_char_set_bitmap_31.svg View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/unicode/font_size_t.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/font_size_t.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/unicode/font_size_t.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/font_size_t.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/unicode/standard_char_set.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/standard_char_set.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/unicode/standard_char_set.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/standard_char_set.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/unicode/unicode.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/unicode.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/unicode/unicode.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/unicode.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/unicode/western_char_set.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/western_char_set.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/unicode/western_char_set.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/western_char_set.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extended/unicode/western_char_set_bitmap_31.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/western_char_set_bitmap_31.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extras/bitmap2cpp.py → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extras/bitmap2cpp.py View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extras/circular_progress.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extras/circular_progress.h View File

@@ -23,10 +23,11 @@
23 23
 
24 24
 /* This function draws a circular progress "ring" */
25 25
 
26
-void draw_circular_progress(CommandProcessor& cmd, int x, int y, int w, int h, uint8_t percent, uint32_t bgcolor, uint32_t fgcolor, float rim = 0.3) {
26
+void draw_circular_progress(CommandProcessor& cmd, int x, int y, int w, int h, float percent, char *text, uint32_t bgcolor, uint32_t fgcolor) {
27 27
   using namespace FTDI;
28 28
 
29
-  const float a  = float(percent)/100.0*2.0*PI;
29
+  const float rim = 0.3;
30
+  const float a  = percent/100.0*2.0*PI;
30 31
   const float a1 = min(PI/2, a);
31 32
   const float a2 = min(PI/2, a-a1);
32 33
   const float a3 = min(PI/2, a-a1-a2);
@@ -90,11 +91,15 @@ void draw_circular_progress(CommandProcessor& cmd, int x, int y, int w, int h, u
90 91
   cmd.cmd(RESTORE_CONTEXT());
91 92
 
92 93
   // Draw the text
93
-  char str[5];
94
-  sprintf(str,"%d\%%",percent);
95 94
 
96 95
   cmd.cmd(SAVE_CONTEXT());
97 96
   cmd.cmd(COLOR_RGB(fgcolor));
98
-  cmd.text(x,y,w,h,str, OPT_CENTERX | OPT_CENTERY);
97
+  cmd.text(x,y,w,h,text, OPT_CENTERX | OPT_CENTERY);
99 98
   cmd.cmd(RESTORE_CONTEXT());
100 99
 }
100
+
101
+void draw_circular_progress(CommandProcessor& cmd, int x, int y, int w, int h, float percent, uint32_t bgcolor, uint32_t fgcolor) {
102
+  char str[5];
103
+  sprintf(str,"%d\%%",int(percent));
104
+  draw_circular_progress(cmd, x, y, w, h, percent, str, bgcolor, fgcolor);
105
+}

Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extras/poly_ui.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extras/poly_ui.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/extras/svg2cpp.py → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/extras/svg2cpp.py View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/ftdi_eve_lib/ftdi_eve_lib.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/ftdi_eve_lib.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/language/language.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/language/language.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/language/language.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/language/language.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/language/language_en.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/language/language_en.h View File

@@ -70,7 +70,8 @@ namespace Language_en {
70 70
   PROGMEM Language_Str MSG_PRINT_FINISHED           = u8"Print finished";
71 71
   PROGMEM Language_Str MSG_PRINT_ERROR              = u8"Print error";
72 72
   PROGMEM Language_Str MSG_ABOUT_TOUCH_PANEL_1      = u8"Color Touch Panel";
73
-  PROGMEM Language_Str MSG_ABOUT_TOUCH_PANEL_2      = u8"Portions " COPYRIGHT_SIGN " 2019 Aleph Objects, Inc.";
73
+  PROGMEM Language_Str MSG_ABOUT_TOUCH_PANEL_2      = u8"Portions " COPYRIGHT_SIGN " 2019 Aleph Objects, Inc.\n"
74
+                                                        "Portions " COPYRIGHT_SIGN " 2019 Cocoa Press";
74 75
   PROGMEM Language_Str MSG_FIRMWARE_FOR_TOOLHEAD    = u8"Firmware for toolhead:\n%s\n\n";
75 76
   PROGMEM Language_Str MSG_RUNOUT_1                 = u8"Runout 1";
76 77
   PROGMEM Language_Str MSG_RUNOUT_2                 = u8"Runout 2";
@@ -157,5 +158,7 @@ namespace Language_en {
157 158
   #ifdef TOUCH_UI_COCOA_PRESS
158 159
     PROGMEM Language_Str MSG_ZONE_1                 = u8"Zone 1:";
159 160
     PROGMEM Language_Str MSG_ZONE_2                 = u8"Zone 2:";
161
+    PROGMEM Language_Str MSG_ZONE_3                 = u8"Zone 3:";
162
+    PROGMEM Language_Str MSG_PREHEAT_FINISHED       = u8"Preheat finished";
160 163
   #endif
161 164
 }; // namespace Language_en

Marlin/src/lcd/extensible_ui/lib/lulzbot/marlin_events.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/marlin_events.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/pin_mappings.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/pin_mappings.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/screens/about_screen.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/about_screen.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/screens/advanced_settings_menu.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/advanced_settings_menu.cpp View File

@@ -42,44 +42,49 @@ void AdvancedSettingsMenu::onRedraw(draw_mode_t what) {
42 42
     cmd.colors(normal_btn)
43 43
        .font(Theme::font_medium)
44 44
     #ifdef TOUCH_UI_PORTRAIT
45
-      #define GRID_ROWS 9
45
+      #define GRID_ROWS 10
46 46
       #define GRID_COLS 2
47
-      #if HAS_BED_PROBE
48
-        .enabled(1)
49
-      #else
50
-        .enabled(0)
51
-      #endif
47
+      .enabled(
48
+        #if HAS_BED_PROBE
49
+          1
50
+        #endif
51
+      )
52 52
       .tag(2) .button( BTN_POS(1,1), BTN_SIZE(1,1), GET_TEXT_F(MSG_ZPROBE_ZOFFSET))
53
-      .enabled(1)
53
+      .enabled(
54
+        #if HAS_CASE_LIGHT
55
+          1
56
+        #endif
57
+      )
58
+      .tag(16).button( BTN_POS(1,6),  BTN_SIZE(1,1), GET_TEXT_F(MSG_CASE_LIGHT))
54 59
       .tag(3) .button( BTN_POS(2,1), BTN_SIZE(1,1), GET_TEXT_F(MSG_STEPS_PER_MM))
55
-      #if HAS_TRINAMIC
56
-        .enabled(1)
57
-      #else
58
-        .enabled(0)
59
-      #endif
60
-      .tag(13).button( BTN_POS(1,5), BTN_SIZE(1,1), GET_TEXT_F(MSG_TMC_CURRENT))
61
-      #if HAS_TRINAMIC
62
-        .enabled(1)
63
-      #else
64
-        .enabled(0)
65
-      #endif
66
-      .tag(14).button( BTN_POS(1,4), BTN_SIZE(1,1), GET_TEXT_F(MSG_TMC_HOMING_THRS))
67
-      #if HOTENDS > 1
68
-      .enabled(1)
69
-      #else
70
-      .enabled(0)
71
-      #endif
60
+      .enabled(
61
+        #if HAS_TRINAMIC
62
+          1
63
+        #endif
64
+      )
65
+      .tag(13).button( BTN_POS(1,4), BTN_SIZE(1,1), GET_TEXT_F(MSG_TMC_CURRENT))
66
+      .enabled(
67
+        #if HAS_TRINAMIC
68
+          1
69
+        #endif
70
+      )
71
+      .tag(14).button( BTN_POS(1,7), BTN_SIZE(2,1), GET_TEXT_F(MSG_TMC_HOMING_THRS))
72
+      .enabled(
73
+        #if HOTENDS > 1
74
+          1
75
+        #endif
76
+      )
72 77
       .tag(4) .button( BTN_POS(1,2), BTN_SIZE(1,1), GET_TEXT_F(MSG_OFFSETS_MENU))
73
-      #if EITHER(LIN_ADVANCE, FILAMENT_RUNOUT_SENSOR)
74
-      .enabled(1)
75
-      #else
76
-      .enabled(0)
77
-      #endif
78
+      .enabled(
79
+        #if EITHER(LIN_ADVANCE, FILAMENT_RUNOUT_SENSOR)
80
+          1
81
+        #endif
82
+      )
78 83
       .tag(11).button( BTN_POS(1,3), BTN_SIZE(1,1), GET_TEXT_F(MSG_FILAMENT))
79
-      .tag(12).button( BTN_POS(1,6), BTN_SIZE(1,1), GET_TEXT_F(MSG_LCD_ENDSTOPS))
84
+      .tag(12).button( BTN_POS(1,5), BTN_SIZE(1,1), GET_TEXT_F(MSG_LCD_ENDSTOPS))
80 85
       .tag(15).button( BTN_POS(2,6), BTN_SIZE(1,1), GET_TEXT_F(MSG_DISPLAY_MENU))
81
-      .tag(9) .button( BTN_POS(1,7), BTN_SIZE(2,1), GET_TEXT_F(MSG_INTERFACE_SETTINGS))
82
-      .tag(10).button( BTN_POS(1,8), BTN_SIZE(2,1), GET_TEXT_F(MSG_RESTORE_FAILSAFE))
86
+      .tag(9) .button( BTN_POS(1,8), BTN_SIZE(2,1), GET_TEXT_F(MSG_INTERFACE_SETTINGS))
87
+      .tag(10).button( BTN_POS(1,9), BTN_SIZE(2,1), GET_TEXT_F(MSG_RESTORE_FAILSAFE))
83 88
       .tag(5) .button( BTN_POS(2,2), BTN_SIZE(1,1), GET_TEXT_F(MSG_VELOCITY))
84 89
       .tag(6) .button( BTN_POS(2,3), BTN_SIZE(1,1), GET_TEXT_F(MSG_ACCELERATION))
85 90
       #if DISABLED(CLASSIC_JERK)
@@ -87,51 +92,57 @@ void AdvancedSettingsMenu::onRedraw(draw_mode_t what) {
87 92
       #else
88 93
       .tag(7) .button( BTN_POS(2,4), BTN_SIZE(1,1), GET_TEXT_F(MSG_JERK))
89 94
       #endif
90
-      #if ENABLED(BACKLASH_GCODE)
91
-      .enabled(1)
92
-      #else
93
-      .enabled(0)
94
-      #endif
95
+      .enabled(
96
+        #if ENABLED(BACKLASH_GCODE)
97
+          1
98
+        #endif
99
+      )
95 100
       .tag(8).button( BTN_POS(2,5), BTN_SIZE(1,1), GET_TEXT_F(MSG_BACKLASH))
96 101
       .colors(action_btn)
97
-      .tag(1) .button( BTN_POS(1,9), BTN_SIZE(2,1), GET_TEXT_F(MSG_BACK));
102
+      .tag(1) .button( BTN_POS(1,10), BTN_SIZE(2,1), GET_TEXT_F(MSG_BACK));
98 103
       #undef GRID_COLS
99 104
       #undef GRID_ROWS
100 105
     #else
101 106
       #define GRID_ROWS 6
102 107
       #define GRID_COLS 3
103
-      #if HAS_BED_PROBE
104
-        .enabled(1)
105
-      #else
106
-        .enabled(0)
107
-      #endif
108
-      .tag(2) .button( BTN_POS(1,1),  BTN_SIZE(1,2), GET_TEXT_F(MSG_ZPROBE_ZOFFSET))
108
+      .enabled(
109
+        #if HAS_BED_PROBE
110
+          1
111
+        #endif
112
+      )
113
+      .tag(2) .button( BTN_POS(1,1),  BTN_SIZE(1,1), GET_TEXT_F(MSG_ZPROBE_ZOFFSET))
114
+      .enabled(
115
+        #if HAS_CASE_LIGHT
116
+          1
117
+        #endif
118
+      )
119
+      .tag(16).button( BTN_POS(1,4),  BTN_SIZE(1,1), GET_TEXT_F(MSG_CASE_LIGHT))
109 120
       .enabled(1)
110 121
       .tag(3) .button( BTN_POS(2,1),  BTN_SIZE(1,1), GET_TEXT_F(MSG_STEPS_PER_MM))
111
-      #if HAS_TRINAMIC
112
-        .enabled(1)
113
-      #else
114
-        .enabled(0)
115
-      #endif
122
+      .enabled(
123
+        #if HAS_TRINAMIC
124
+          1
125
+        #endif
126
+      )
116 127
       .tag(13).button( BTN_POS(3,1), BTN_SIZE(1,1), GET_TEXT_F(MSG_TMC_CURRENT))
117
-      #if HAS_TRINAMIC
118
-        .enabled(1)
119
-      #else
120
-        .enabled(0)
121
-      #endif
128
+      .enabled(
129
+        #if HAS_TRINAMIC
130
+          1
131
+        #endif
132
+      )
122 133
       .tag(14).button( BTN_POS(3,2), BTN_SIZE(1,1), GET_TEXT_F(MSG_TMC_HOMING_THRS))
123
-      #if ENABLED(BACKLASH_GCODE)
124
-      .enabled(1)
125
-      #else
126
-      .enabled(0)
127
-      #endif
134
+      .enabled(
135
+        #if ENABLED(BACKLASH_GCODE)
136
+          1
137
+        #endif
138
+      )
128 139
       .tag(8).button( BTN_POS(3,3),  BTN_SIZE(1,1), GET_TEXT_F(MSG_BACKLASH))
129
-      #if HOTENDS > 1
130
-      .enabled(1)
131
-      #else
132
-      .enabled(0)
133
-      #endif
134
-      .tag(4) .button( BTN_POS(1,3),  BTN_SIZE(1,1), GET_TEXT_F(MSG_OFFSETS_MENU))
140
+      .enabled(
141
+        #if HOTENDS > 1
142
+          1
143
+        #endif
144
+      )
145
+      .tag(4) .button( BTN_POS(1,2),  BTN_SIZE(1,1), GET_TEXT_F(MSG_OFFSETS_MENU))
135 146
       .tag(12).button( BTN_POS(3,4),  BTN_SIZE(1,1), GET_TEXT_F(MSG_LCD_ENDSTOPS))
136 147
       .tag(5) .button( BTN_POS(2,2),  BTN_SIZE(1,1), GET_TEXT_F(MSG_VELOCITY))
137 148
       .tag(6) .button( BTN_POS(2,3),  BTN_SIZE(1,1), GET_TEXT_F(MSG_ACCELERATION))
@@ -140,7 +151,7 @@ void AdvancedSettingsMenu::onRedraw(draw_mode_t what) {
140 151
       #else
141 152
       .tag(7) .button( BTN_POS(2,4),  BTN_SIZE(1,1), GET_TEXT_F(MSG_JERK))
142 153
       #endif
143
-      .tag(11).button( BTN_POS(1,4),  BTN_SIZE(1,1), GET_TEXT_F(MSG_FILAMENT))
154
+      .tag(11).button( BTN_POS(1,3),  BTN_SIZE(1,1), GET_TEXT_F(MSG_FILAMENT))
144 155
       .tag(15).button( BTN_POS(3,5),  BTN_SIZE(1,1), GET_TEXT_F(MSG_DISPLAY_MENU))
145 156
       .tag(9) .button( BTN_POS(1,5),  BTN_SIZE(2,1), GET_TEXT_F(MSG_INTERFACE_SETTINGS))
146 157
       .tag(10).button( BTN_POS(1,6),  BTN_SIZE(2,1), GET_TEXT_F(MSG_RESTORE_FAILSAFE))
@@ -183,6 +194,9 @@ bool AdvancedSettingsMenu::onTouchEnd(uint8_t tag) {
183 194
     case 14: GOTO_SCREEN(StepperBumpSensitivityScreen); break;
184 195
     #endif
185 196
     case 15: GOTO_SCREEN(DisplayTuningScreen); break;
197
+    #if HAS_CASE_LIGHT
198
+    case 16: GOTO_SCREEN(CaseLightScreen); break;
199
+    #endif
186 200
     default: return false;
187 201
   }
188 202
   return true;

Marlin/src/lcd/extensible_ui/lib/lulzbot/screens/alert_dialog_box.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/alert_dialog_box.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/screens/backlash_compensation_screen.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/backlash_compensation_screen.cpp View File

@@ -38,11 +38,13 @@ void BacklashCompensationScreen::onRedraw(draw_mode_t what) {
38 38
   w.color(y_axis).adjuster(4, GET_TEXT_F(MSG_AXIS_Y), getAxisBacklash_mm(Y));
39 39
   w.color(z_axis).adjuster(6, GET_TEXT_F(MSG_AXIS_Z), getAxisBacklash_mm(Z));
40 40
   #if ENABLED(CALIBRATION_GCODE)
41
-  w.button(12, GET_TEXT_F(MSG_MEASURE_AUTOMATICALLY));
41
+    w.button(12, GET_TEXT_F(MSG_MEASURE_AUTOMATICALLY));
42
+  #endif
43
+  #ifdef BACKLASH_SMOOTHING_MM
44
+    w.color(other).adjuster(8,  GET_TEXT_F(MSG_BACKLASH_SMOOTHING), getBacklashSmoothing_mm());
42 45
   #endif
43
-  w.color(other).adjuster(8,  GET_TEXT_F(MSG_SMOOTHING), getBacklashSmoothing_mm());
44 46
   w.precision(0).units(GET_TEXT_F(MSG_UNITS_PERCENT))
45
-                .adjuster(10, GET_TEXT_F(MSG_CORRECTION), getBacklashCorrection_percent());
47
+                .adjuster(10, GET_TEXT_F(MSG_BACKLASH_CORRECTION), getBacklashCorrection_percent());
46 48
   w.precision(2).increments();
47 49
 }
48 50
 
@@ -55,12 +57,14 @@ bool BacklashCompensationScreen::onTouchHeld(uint8_t tag) {
55 57
     case  5:  UI_INCREMENT(AxisBacklash_mm, Y); break;
56 58
     case  6:  UI_DECREMENT(AxisBacklash_mm, Z); break;
57 59
     case  7:  UI_INCREMENT(AxisBacklash_mm, Z); break;
58
-    case  8:  UI_DECREMENT(BacklashSmoothing_mm); break;
59
-    case  9:  UI_INCREMENT(BacklashSmoothing_mm); break;
60
+    #ifdef BACKLASH_SMOOTHING_MM
61
+      case  8:  UI_DECREMENT(BacklashSmoothing_mm); break;
62
+      case  9:  UI_INCREMENT(BacklashSmoothing_mm); break;
63
+    #endif
60 64
     case  10: UI_DECREMENT_BY(BacklashCorrection_percent, increment*100);  break;
61 65
     case  11: UI_INCREMENT_BY(BacklashCorrection_percent, increment*100);  break;
62 66
     #if ENABLED(CALIBRATION_GCODE)
63
-    case  12: GOTO_SCREEN(ConfirmAutoCalibrationDialogBox); return true;
67
+      case  12: GOTO_SCREEN(ConfirmAutoCalibrationDialogBox); return true;
64 68
     #endif
65 69
     default:
66 70
       return false;

Marlin/src/lcd/extensible_ui/lib/lulzbot/screens/base_numeric_adjustment_screen.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/base_numeric_adjustment_screen.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/screens/base_screen.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/base_screen.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/screens/bio_advanced_settings.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/bio_advanced_settings.cpp View File

@@ -44,24 +44,24 @@ void AdvancedSettingsMenu::onRedraw(draw_mode_t what) {
44 44
     #define GRID_COLS 2
45 45
 
46 46
       .tag(2) .button( BTN_POS(1,1), BTN_SIZE(1,1), GET_TEXT_F(MSG_DISPLAY_MENU))
47
-      #if HAS_TRINAMIC
48
-       .enabled(1)
49
-      #else
50
-       .enabled(0)
51
-      #endif
47
+      .enabled(
48
+        #if HAS_TRINAMIC
49
+          1
50
+        #endif
51
+      )
52 52
       .tag(3) .button( BTN_POS(1,2), BTN_SIZE(1,1), GET_TEXT_F(MSG_TMC_CURRENT))
53
-      #if HAS_TRINAMIC
54
-       .enabled(1)
55
-      #else
56
-       .enabled(0)
57
-      #endif
53
+      .enabled(
54
+        #if HAS_TRINAMIC
55
+          1
56
+        #endif
57
+      )
58 58
       .tag(4) .button( BTN_POS(1,3), BTN_SIZE(1,1), GET_TEXT_F(MSG_TMC_HOMING_THRS))
59 59
       .tag(5) .button( BTN_POS(1,4), BTN_SIZE(1,1), GET_TEXT_F(MSG_LCD_ENDSTOPS))
60
-      #if HOTENDS > 1
61
-      .enabled(1)
62
-      #else
63
-      .enabled(0)
64
-      #endif
60
+      .enabled(
61
+        #if HOTENDS > 1
62
+          1
63
+        #endif
64
+      )
65 65
       .tag(6) .button( BTN_POS(1,5), BTN_SIZE(1,1), GET_TEXT_F(MSG_OFFSETS_MENU))
66 66
 
67 67
 
@@ -73,17 +73,17 @@ void AdvancedSettingsMenu::onRedraw(draw_mode_t what) {
73 73
       #else
74 74
         .tag(10) .button( BTN_POS(2,4), BTN_SIZE(1,1), GET_TEXT_F(MSG_JERK))
75 75
       #endif
76
-      #if ENABLED(BACKLASH_GCODE)
77
-      .enabled(1)
78
-      #else
79
-      .enabled(0)
80
-      #endif
76
+      .enabled(
77
+        #if ENABLED(BACKLASH_GCODE)
78
+          1
79
+        #endif
80
+      )
81 81
       .tag(11) .button( BTN_POS(2,5), BTN_SIZE(1,1), GET_TEXT_F(MSG_BACKLASH))
82
-      #if ENABLED(LIN_ADVANCE)
83
-      .enabled(1)
84
-      #else
85
-      .enabled(0)
86
-      #endif
82
+      .enabled(
83
+        #if ENABLED(LIN_ADVANCE)
84
+          1
85
+        #endif
86
+      )
87 87
       .tag(12) .button( BTN_POS(1,6), BTN_SIZE(2,1), GET_TEXT_F(MSG_LINEAR_ADVANCE))
88 88
       .tag(13) .button( BTN_POS(1,7), BTN_SIZE(2,1), GET_TEXT_F(MSG_INTERFACE_SETTINGS))
89 89
       .tag(14) .button( BTN_POS(1,8), BTN_SIZE(2,1), GET_TEXT_F(MSG_RESTORE_FAILSAFE))

Marlin/src/lcd/extensible_ui/lib/lulzbot/screens/bio_confirm_home_e.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/bio_confirm_home_e.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/screens/bio_confirm_home_xyz.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/bio_confirm_home_xyz.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/screens/bio_main_menu.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/bio_main_menu.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/screens/bio_printer_ui_landscape.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/bio_printer_ui_landscape.h View File

@@ -40,16 +40,20 @@ const PROGMEM uint16_t syringe[] = {0xB8AD, 0x6BB1, 0xB8AD, 0x6E0C, 0xBE02, 0x6E
40 40
 const PROGMEM uint16_t syringe_outline[] = {0xB396, 0x110A, 0xB396, 0x1818, 0xB995, 0x1818, 0xB995, 0x22AD, 0xB396, 0x22AD, 0xB396, 0x7ADA, 0xB995, 0x7E61, 0xB995, 0x88F5, 0xBB95, 0x88F5, 0xBB95, 0xA8B4, 0xBD94, 0xAC3B, 0xBD94, 0x88F5, 0xBF94, 0x88F5, 0xBF94, 0x7E61, 0xC593, 0x7ADA, 0xC593, 0x22AD, 0xBF94, 0x22AD, 0xBF94, 0x1818, 0xC593, 0x1818, 0xC593, 0x110A, 0xB396, 0x110A};
41 41
 const PROGMEM uint16_t padlock[] = {0x3FE3, 0x2A04, 0x3D34, 0x2AF9, 0x3AFF, 0x2D93, 0x397D, 0x316D, 0x38E8, 0x3626, 0x38E8, 0x3A14, 0x39B3, 0x3C8F, 0x3B50, 0x3C8F, 0x3C1C, 0x3A14, 0x3C1C, 0x363C, 0x3C6B, 0x33A9, 0x3D3A, 0x3193, 0x3E6C, 0x302D, 0x3FE3, 0x2FAA, 0x415A, 0x302D, 0x428C, 0x3192, 0x435B, 0x33A8, 0x43AB, 0x363C, 0x43AB, 0x4492, 0x38C3, 0x4492, 0x3741, 0x45AC, 0x36A1, 0x4856, 0x36A1, 0x5C41, 0x3741, 0x5EEC, 0x38C3, 0x6005, 0x4703, 0x6005, 0x4886, 0x5EEC, 0x4925, 0x5C41, 0x4925, 0x4856, 0x4886, 0x45AC, 0x4703, 0x4492, 0x46DE, 0x362B, 0x4649, 0x316D, 0x44C7, 0x2D92, 0x4292, 0x2AF9};
42 42
 const PROGMEM uint16_t home_z[] = {0x80BB, 0x2B43, 0x712C, 0x46B9, 0x750F, 0x46B9, 0x750F, 0x622F, 0x7CD7, 0x622F, 0x7CD7, 0x5474, 0x849F, 0x5474, 0x849F, 0x622F, 0x8C67, 0x622F, 0x8C67, 0x46B9, 0x904B, 0x46B9, 0x8A48, 0x3C1D, 0x8A48, 0x2ECD, 0x8664, 0x2ECD, 0x8664, 0x3540};
43
-const PROGMEM uint16_t usb_btn[] = {0x0558, 0xC0D6, 0x44A4, 0xC0D6, 0x44A4, 0xF431, 0x0558, 0xF431, 0x0558, 0xC0D6};
44
-const PROGMEM uint16_t menu_btn[] = {0x4B18, 0xC0D6, 0x8A64, 0xC0D6, 0x8A64, 0xF431, 0x4B18, 0xF431, 0x4B18, 0xC0D6};
43
+const PROGMEM uint16_t usb_btn[] = {0x0558, 0xC0D6, 0x3BDB, 0xC0D6, 0x3BDB, 0xF431, 0x0558, 0xF431, 0x0558, 0xC0D6};
44
+const PROGMEM uint16_t menu_btn[] = {0x416B, 0xC0D6, 0x77EE, 0xC0D6, 0x77EE, 0xF431, 0x416B, 0xF431, 0x416B, 0xC0D6};
45 45
 const PROGMEM uint16_t e_pos[] = {0xE04E, 0x5E7B, 0xE94C, 0x5E7B, 0xE94C, 0x7E74, 0xEDCB, 0x7E74, 0xE4CD, 0x8E70, 0xDBCF, 0x7E74, 0xE04E, 0x7E74, 0xE04E, 0x5E7B};
46 46
 const PROGMEM uint16_t e_neg[] = {0xE04E, 0x4E7F, 0xE94C, 0x4E7F, 0xE94C, 0x2E87, 0xEDCB, 0x2E87, 0xE4CD, 0x1E8A, 0xDBCF, 0x2E87, 0xE04E, 0x2E87, 0xE04E, 0x4E7F};
47 47
 const PROGMEM uint16_t home_e[] = {0xD705, 0x3885, 0xC775, 0x53FB, 0xCB59, 0x53FB, 0xCB59, 0x6F71, 0xD321, 0x6F71, 0xD321, 0x61B6, 0xDAE9, 0x61B6, 0xDAE9, 0x6F71, 0xE2B1, 0x6F71, 0xE2B1, 0x53FB, 0xE695, 0x53FB, 0xE092, 0x495F, 0xE092, 0x3C0E, 0xDCAE, 0x3C0E, 0xDCAE, 0x4281};
48 48
 const PROGMEM uint16_t fine_label[] = {0x0D92, 0x9444, 0x5211, 0x9444, 0x5211, 0xA9EA, 0x0D92, 0xA9EA};
49 49
 const PROGMEM uint16_t fine_toggle[] = {0x56E7, 0x9444, 0x8007, 0x9444, 0x8007, 0xA9EA, 0x56E7, 0xA9EA};
50
-const PROGMEM uint16_t zone2_temp[] = {0xC620, 0xD35A, 0xFD0E, 0xD35A, 0xFD0E, 0xF075, 0xC620, 0xF075};
51
-const PROGMEM uint16_t zone1_temp[] = {0x8E04, 0xD35A, 0xC4F3, 0xD35A, 0xC4F3, 0xF075, 0x8E04, 0xF075};
52
-const PROGMEM uint16_t zone2_label[] = {0xC620, 0xB4AD, 0xFD0A, 0xB4AD, 0xFD0A, 0xD1C8, 0xC620, 0xD1C8};
53
-const PROGMEM uint16_t zone1_label[] = {0x8E04, 0xB4AD, 0xC4F3, 0xB4AD, 0xC4F3, 0xD1C8, 0x8E04, 0xD1C8};
50
+const PROGMEM uint16_t h1_temp[] = {0x9C2B, 0xDD3B, 0xBBDE, 0xDD3B, 0xBBDE, 0xFA57, 0x9C2B, 0xFA57};
51
+const PROGMEM uint16_t h1_label[] = {0x9C2B, 0xBE8F, 0xBBDC, 0xBE8F, 0xBBDC, 0xDBAA, 0x9C2B, 0xDBAA};
52
+const PROGMEM uint16_t h0_temp[] = {0x7BD0, 0xDD3B, 0x9B83, 0xDD3B, 0x9B83, 0xFA57, 0x7BD0, 0xFA57};
53
+const PROGMEM uint16_t h0_label[] = {0x7BD0, 0xBE8F, 0x9B83, 0xBE8F, 0x9B83, 0xDBAA, 0x7BD0, 0xDBAA};
54
+const PROGMEM uint16_t h2_temp[] = {0xBC86, 0xDD3B, 0xDC39, 0xDD3B, 0xDC39, 0xFA57, 0xBC86, 0xFA57};
55
+const PROGMEM uint16_t h2_label[] = {0xBC86, 0xBE8F, 0xDC37, 0xBE8F, 0xDC37, 0xDBAA, 0xBC86, 0xDBAA};
56
+const PROGMEM uint16_t h3_temp[] = {0xDCE2, 0xDD0D, 0xFC95, 0xDD0D, 0xFC95, 0xFA28, 0xDCE2, 0xFA28};
57
+const PROGMEM uint16_t h3_label[] = {0xDCE2, 0xBE60, 0xFC92, 0xBE60, 0xFC92, 0xDB7C, 0xDCE2, 0xDB7C};
54 58
 const PROGMEM uint16_t actual_temp[] = {0xCDF6, 0xD037, 0xF7CA, 0xD037, 0xF7CA, 0xF424, 0xCDF6, 0xF424};
55 59
 const PROGMEM uint16_t bed_icon[] = {0xCDF6, 0xA5CC, 0xF7CA, 0xA5CC, 0xF7CA, 0xC9B9, 0xCDF6, 0xC9B9};

Marlin/src/lcd/extensible_ui/lib/lulzbot/screens/bio_printer_ui_portrait.h → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/bio_printer_ui_portrait.h View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/screens/bio_printing_dialog_box.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/bio_printing_dialog_box.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/screens/bio_status_screen.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/bio_status_screen.cpp View File

@@ -23,7 +23,7 @@
23 23
 
24 24
 #include "../config.h"
25 25
 
26
-#if ENABLED(TOUCH_UI_FTDI_EVE) && (ENABLED(TOUCH_UI_LULZBOT_BIO) || ENABLED(TOUCH_UI_COCOA_PRESS))
26
+#if ENABLED(TOUCH_UI_FTDI_EVE) && ANY(TOUCH_UI_LULZBOT_BIO, TOUCH_UI_COCOA_PRESS)
27 27
 
28 28
 #include "screens.h"
29 29
 
@@ -95,20 +95,29 @@ void StatusScreen::draw_temperature(draw_mode_t what) {
95 95
          .icon (x + 2, y + 2, h, v, Bed_Heat_Icon_Info, icon_scale * 2)
96 96
          .cmd(COLOR_RGB(bg_text_enabled))
97 97
          .icon (x, y, h, v, Bed_Heat_Icon_Info, icon_scale * 2);
98
-    #endif
99
-
100
-    #if ENABLED(TOUCH_UI_COCOA_PRESS)
98
+    #elif ENABLED(TOUCH_UI_COCOA_PRESS) && DISABLED(TOUCH_UI_PORTRAIT)
101 99
       // The CocoaPress shows the temperature for two
102 100
       // heating zones, but has no bed temperature
103 101
 
104 102
       cmd.cmd(COLOR_RGB(bg_text_enabled));
105 103
       cmd.font(font_medium);
106 104
 
107
-      ui.bounds(POLY(zone1_label), x, y, h, v);
105
+      ui.bounds(POLY(h0_label), x, y, h, v);
108 106
       cmd.text(x, y, h, v, GET_TEXT_F(MSG_ZONE_1));
109 107
 
110
-      ui.bounds(POLY(zone2_label), x, y, h, v);
108
+      ui.bounds(POLY(h1_label), x, y, h, v);
111 109
       cmd.text(x, y, h, v, GET_TEXT_F(MSG_ZONE_2));
110
+
111
+      ui.bounds(POLY(h2_label), x, y, h, v);
112
+      cmd.text(x, y, h, v, GET_TEXT_F(MSG_ZONE_3));
113
+
114
+      ui.bounds(POLY(h3_label), x, y, h, v);
115
+      cmd.text(x, y, h, v, GET_TEXT_F(MSG_CHAMBER));
116
+    #else
117
+      UNUSED(x);
118
+      UNUSED(y);
119
+      UNUSED(h);
120
+      UNUSED(v);
112 121
     #endif
113 122
 
114 123
     #ifdef TOUCH_UI_USE_UTF8
@@ -143,9 +152,8 @@ void StatusScreen::draw_temperature(draw_mode_t what) {
143 152
         ui.bounds(POLY(bed_temp), x, y, h, v);
144 153
         cmd.text(x, y, h, v, str);
145 154
       #endif
146
-    #endif
147 155
 
148
-    #if ENABLED(TOUCH_UI_COCOA_PRESS)
156
+    #elif ENABLED(TOUCH_UI_COCOA_PRESS) && DISABLED(TOUCH_UI_PORTRAIT)
149 157
       // The CocoaPress shows the temperature for two
150 158
       // heating zones, but has no bed temperature
151 159
 
@@ -156,7 +164,7 @@ void StatusScreen::draw_temperature(draw_mode_t what) {
156 164
       else
157 165
         format_temp_and_idle(str, getActualTemp_celsius(E0));
158 166
 
159
-      ui.bounds(POLY(zone1_temp), x, y, h, v);
167
+      ui.bounds(POLY(h0_temp), x, y, h, v);
160 168
       cmd.text(x, y, h, v, str);
161 169
 
162 170
       if (!isHeaterIdle(E1) && getTargetTemp_celsius(E1) > 0)
@@ -164,8 +172,26 @@ void StatusScreen::draw_temperature(draw_mode_t what) {
164 172
       else
165 173
         format_temp_and_idle(str, getActualTemp_celsius(E1));
166 174
 
167
-      ui.bounds(POLY(zone2_temp), x, y, h, v);
175
+      ui.bounds(POLY(h1_temp), x, y, h, v);
176
+      cmd.text(x, y, h, v, str);
177
+
178
+      if (!isHeaterIdle(E2) && getTargetTemp_celsius(E2) > 0)
179
+        format_temp_and_temp(str, getActualTemp_celsius(E2), getTargetTemp_celsius(E2));
180
+      else
181
+        format_temp_and_idle(str, getActualTemp_celsius(E2));
182
+
183
+      ui.bounds(POLY(h2_temp), x, y, h, v);
184
+      cmd.text(x, y, h, v, str);
185
+
186
+      if (!isHeaterIdle(CHAMBER) && getTargetTemp_celsius(CHAMBER) > 0)
187
+        format_temp_and_temp(str, getActualTemp_celsius(CHAMBER), getTargetTemp_celsius(CHAMBER));
188
+      else
189
+        format_temp_and_idle(str, getActualTemp_celsius(CHAMBER));
190
+
191
+      ui.bounds(POLY(h3_temp), x, y, h, v);
168 192
       cmd.text(x, y, h, v, str);
193
+    #else
194
+      UNUSED(str);
169 195
     #endif
170 196
   }
171 197
 }
@@ -238,7 +264,9 @@ void StatusScreen::draw_arrows(draw_mode_t what) {
238 264
   }
239 265
 
240 266
   if ((what & BACKGROUND) || e_homed) {
241
-    ui.button(7, POLY(e_neg));
267
+    #if DISABLED(TOUCH_UI_COCOA_PRESS)
268
+      ui.button(7, POLY(e_neg));
269
+    #endif
242 270
     ui.button(8, POLY(e_pos));
243 271
   }
244 272
 }

Marlin/src/lcd/extensible_ui/lib/lulzbot/screens/bio_tune_menu.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/bio_tune_menu.cpp View File

@@ -50,11 +50,11 @@ void TuneMenu::onRedraw(draw_mode_t what) {
50 50
        .font(font_medium)
51 51
        .enabled( isPrinting()).tag(2).button( BTN_POS(1,2), BTN_SIZE(2,1), GET_TEXT_F(MSG_PRINT_SPEED))
52 52
                               .tag(3).button( BTN_POS(1,3), BTN_SIZE(2,1), GET_TEXT_F(MSG_BED_TEMPERATURE))
53
-        #if ENABLED(BABYSTEPPING)
54
-          .enabled(true)
55
-        #else
56
-          .enabled(false)
57
-        #endif
53
+        .enabled(
54
+          #if ENABLED(BABYSTEPPING)
55
+            true
56
+          #endif
57
+        )
58 58
                               .tag(4).button( BTN_POS(1,4), BTN_SIZE(2,1), GET_TEXT_F(MSG_NUDGE_NOZZLE))
59 59
        .enabled(!isPrinting()).tag(5).button( BTN_POS(1,5), BTN_SIZE(2,1), GET_TEXT_F(MSG_MOVE_TO_HOME))
60 60
        .enabled(!isPrinting()).tag(6).button( BTN_POS(1,6), BTN_SIZE(2,1), GET_TEXT_F(MSG_RAISE_PLUNGER))

Marlin/src/lcd/extensible_ui/lib/lulzbot/screens/boot_screen.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/boot_screen.cpp View File


+ 62
- 0
Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/case_light_screen.cpp View File

@@ -0,0 +1,62 @@
1
+/*************************
2
+ * case_light_screen.cpp *
3
+ *************************/
4
+
5
+/****************************************************************************
6
+ *   Written By Marcio Teixeira 2019 - Cocoa Press                          *
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
+ *   To view a copy of the GNU General Public License, go to the following  *
19
+ *   location: <http://www.gnu.org/licenses/>.                              *
20
+ ****************************************************************************/
21
+
22
+#include "../config.h"
23
+
24
+#if BOTH(TOUCH_UI_FTDI_EVE, CASE_LIGHT_ENABLE)
25
+
26
+#include "screens.h"
27
+
28
+using namespace FTDI;
29
+using namespace ExtUI;
30
+using namespace Theme;
31
+
32
+void CaseLightScreen::onRedraw(draw_mode_t what) {
33
+  widgets_t w(what);
34
+  w.heading(   GET_TEXT_F(MSG_CASE_LIGHT));
35
+  w.toggle( 2, GET_TEXT_F(MSG_LEDS), getCaseLightState());
36
+  #if DISABLED(CASE_LIGHT_NO_BRIGHTNESS)
37
+  w.precision(0).units(GET_TEXT_F(MSG_UNITS_PERCENT))
38
+                .adjuster(10, GET_TEXT_F(MSG_CASE_LIGHT_BRIGHTNESS), getCaseLightBrightness_percent());
39
+  w.precision(0).increments();
40
+  #endif
41
+}
42
+
43
+bool CaseLightScreen::onTouchHeld(uint8_t tag) {
44
+  using namespace ExtUI;
45
+  #if DISABLED(CASE_LIGHT_NO_BRIGHTNESS)
46
+    const float increment = getIncrement();
47
+  #endif
48
+  switch (tag) {
49
+    case 2: setCaseLightState(!getCaseLightState()); break;
50
+    #if DISABLED(CASE_LIGHT_NO_BRIGHTNESS)
51
+      case  10: UI_DECREMENT(CaseLightBrightness_percent); break;
52
+      case  11: UI_INCREMENT(CaseLightBrightness_percent); break;
53
+    #endif
54
+    default:
55
+      return false;
56
+  }
57
+
58
+  SaveSettingsDialogBox::settingsChanged();
59
+  return true;
60
+}
61
+
62
+#endif // TOUCH_UI_FTDI_EVE

Marlin/src/lcd/extensible_ui/lib/lulzbot/screens/change_filament_screen.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/change_filament_screen.cpp View File

@@ -195,11 +195,14 @@ void ChangeFilamentScreen::onRedraw(draw_mode_t what) {
195 195
     const bool tog8 = screen_data.ChangeFilamentScreen.repeat_tag == 8;
196 196
 
197 197
 
198
-    #ifdef TOUCH_UI_PORTRAIT
199
-      cmd.font(font_large);
200
-    #else
201
-      cmd.font(font_small);
202
-    #endif
198
+    cmd.font(
199
+      #ifdef TOUCH_UI_PORTRAIT
200
+        font_large
201
+      #else
202
+        font_small
203
+      #endif
204
+    );
205
+
203 206
     {
204 207
       char str[30];
205 208
 

Marlin/src/lcd/extensible_ui/lib/lulzbot/screens/confirm_abort_print_dialog_box.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/confirm_abort_print_dialog_box.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/screens/confirm_auto_calibration_dialog_box.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/confirm_auto_calibration_dialog_box.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/screens/confirm_erase_flash_dialog_box.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/confirm_erase_flash_dialog_box.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/screens/confirm_start_print_dialog_box.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/confirm_start_print_dialog_box.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/screens/confirm_user_request_alert_box.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/confirm_user_request_alert_box.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/screens/default_acceleration_screen.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/default_acceleration_screen.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/screens/developer_menu.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/developer_menu.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/screens/dialog_box_base_class.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/dialog_box_base_class.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/screens/display_tuning_screen.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/display_tuning_screen.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/screens/endstop_state_screen.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/endstop_state_screen.cpp View File

@@ -52,13 +52,15 @@ void EndstopStatesScreen::onRedraw(draw_mode_t) {
52 52
   #define PIN_ENABLED(X,Y,LABEL,PIN,INV)  cmd.enabled(1).colors(READ(PIN##_PIN) != INV ? action_btn : normal_btn).PIN_BTN(X,Y,PIN,LABEL);
53 53
   #define PIN_DISABLED(X,Y,LABEL,PIN)     cmd.enabled(0).PIN_BTN(X,Y,PIN,LABEL);
54 54
 
55
-  #ifdef TOUCH_UI_PORTRAIT
56
-  cmd.font(font_large)
57
-  #else
58
-  cmd.font(font_medium)
59
-  #endif
60
-     .text(BTN_POS(1,1), BTN_SIZE(6,1), GET_TEXT_F(MSG_LCD_ENDSTOPS))
61
-     .font(font_tiny);
55
+  cmd.font(
56
+    #ifdef TOUCH_UI_PORTRAIT
57
+      font_large
58
+    #else
59
+      font_medium
60
+    #endif
61
+  )
62
+  .text(BTN_POS(1,1), BTN_SIZE(6,1), GET_TEXT_F(MSG_LCD_ENDSTOPS))
63
+  .font(font_tiny);
62 64
   #if PIN_EXISTS(X_MAX)
63 65
     PIN_ENABLED (1, 2, PSTR(MSG_X_MAX), X_MAX, X_MAX_ENDSTOP_INVERTING)
64 66
   #else

Marlin/src/lcd/extensible_ui/lib/lulzbot/screens/feedrate_percent_screen.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/feedrate_percent_screen.cpp View File


Marlin/src/lcd/extensible_ui/lib/lulzbot/screens/filament_menu.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/filament_menu.cpp View File

@@ -46,17 +46,17 @@ void FilamentMenu::onRedraw(draw_mode_t what) {
46 46
       #define GRID_COLS 2
47 47
          .text  ( BTN_POS(1,1),      BTN_SIZE(2,1), GET_TEXT_F(MSG_FILAMENT))
48 48
          .font(font_medium).colors(normal_btn)
49
-      #if ENABLED(FILAMENT_RUNOUT_SENSOR)
50
-        .enabled(1)
51
-      #else
52
-        .enabled(0)
53
-      #endif
49
+         .enabled(
50
+           #if ENABLED(FILAMENT_RUNOUT_SENSOR)
51
+             1
52
+           #endif
53
+         )
54 54
       .tag(2).button( BTN_POS(1,2),  BTN_SIZE(2,1), GET_TEXT_F(MSG_RUNOUT_SENSOR))
55
-      #if ENABLED(LIN_ADVANCE)
56
-        .enabled(1)
57
-      #else
58
-        .enabled(0)
59
-      #endif
55
+      .enabled(
56
+        #if ENABLED(LIN_ADVANCE)
57
+          1
58
+        #endif
59
+      )
60 60
       .tag(3).button( BTN_POS(1,3),  BTN_SIZE(2,1), GET_TEXT_F(MSG_LINEAR_ADVANCE))
61 61
       .colors(action_btn)
62 62
       .tag(1) .button( BTN_POS(1,9), BTN_SIZE(2,1), GET_TEXT_F(MSG_BACK));
@@ -67,17 +67,17 @@ void FilamentMenu::onRedraw(draw_mode_t what) {
67 67
       #define GRID_COLS 3
68 68
          .text  ( BTN_POS(1,1),      BTN_SIZE(3,1), GET_TEXT_F(MSG_FILAMENT))
69 69
          .font(font_medium).colors(normal_btn)
70
-      #if ENABLED(FILAMENT_RUNOUT_SENSOR)
71
-        .enabled(1)
72
-      #else
73
-        .enabled(0)
74
-      #endif
70
+         .enabled(
71
+           #if ENABLED(FILAMENT_RUNOUT_SENSOR)
72
+             1
73
+           #endif
74
+         )
75 75
       .tag(2).button( BTN_POS(1,2),  BTN_SIZE(3,1), GET_TEXT_F(MSG_RUNOUT_SENSOR))
76
-      #if ENABLED(LIN_ADVANCE)
77
-        .enabled(1)
78
-      #else
79
-        .enabled(0)
80
-      #endif
76
+      .enabled(
77
+        #if ENABLED(LIN_ADVANCE)
78
+          1
79
+        #endif
80
+      )
81 81
       .tag(3).button( BTN_POS(1,3),  BTN_SIZE(3,1), GET_TEXT_F(MSG_LINEAR_ADVANCE))
82 82
       .colors(action_btn)
83 83
       .tag(1) .button( BTN_POS(1,6), BTN_SIZE(3,1), GET_TEXT_F(MSG_BACK));

Marlin/src/lcd/extensible_ui/lib/lulzbot/screens/filament_runout_screen.cpp → Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/filament_runout_screen.cpp View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save