Browse Source

Fix ExtUI + Archim compile, typos (#17825)

Marcio T 4 years ago
parent
commit
db32af9171
No account linked to committer's email address

+ 1
- 99
Marlin/src/lcd/extui/lib/ftdi_eve_touch_ui/config.h View File

@@ -23,102 +23,4 @@
23 23
 
24 24
 #include "compat.h"
25 25
 
26
-// Define the display board used (see "ftdi_eve_boards.h" for definitions)
27
-
28
-//#define LCD_FTDI_VM800B35A        // FTDI 3.5" 320x240 with FT800
29
-//#define LCD_4DSYSTEMS_4DLCD_FT843 // 4D Systems 4.3" 480x272
30
-//#define LCD_HAOYU_FT800CB         // Haoyu with 4.3" or 5" 480x272
31
-//#define LCD_HAOYU_FT810CB         // Haoyu with 5" 800x480
32
-//#define LCD_ALEPHOBJECTS_CLCD_UI  // Aleph Objects Color LCD User Interface
33
-
34
-// Leave the following commented out to use a board's default resolution.
35
-// If you have changed the LCD panel, you may override the resolution
36
-// below (see "ftdi_eve_resolutions.h" for definitions):
37
-
38
-//#define TOUCH_UI_320x240
39
-//#define TOUCH_UI_480x272
40
-//#define TOUCH_UI_800x480
41
-
42
-// Define the printer interface or pins used (see "ui_pin_mappings.h" for definitions):
43
-
44
-//#define CR10_TFT_PINMAP
45
-//#define AO_EXP1_DEPRECATED_PINMAP  // UltraLCD EXP1 connector, old AlephObject's wiring
46
-//#define AO_EXP1_PINMAP  // UltraLCD EXP1 connector, new AlephObject's wiring
47
-//#define AO_EXP2_PINMAP  // UltraLCD EXP2 connector, new AlephObject's wiring
48
-//#define OTHER_PIN_LAYOUT
49
-
50
-// Otherwise. Define all the pins manually:
51
-
52
-#ifdef OTHER_PIN_LAYOUT
53
-    // Select interfacing pins, the following pin specifiers are supported:
54
-    //
55
-    //     ARDUINO_DIGITAL_1  - Arduino pin via digitalWrite/digitalRead
56
-    //     AVR_A1             - Fast AVR port access via PORTA/PINA/DDRA
57
-    //     1                  - When compiling Marlin, use Marlin pin IDs.
58
-
59
-    // The pins for CS and MOD_RESET (PD) must be chosen.
60
-    #define CLCD_MOD_RESET                      9
61
-    #define CLCD_SPI_CS                        10
62
-
63
-    // If using software SPI, specify pins for SCLK, MOSI, MISO
64
-    //#define CLCD_USE_SOFT_SPI
65
-    #ifdef CLCD_USE_SOFT_SPI
66
-        #define CLCD_SOFT_SPI_MOSI             11
67
-        #define CLCD_SOFT_SPI_MISO             12
68
-        #define CLCD_SOFT_SPI_SCLK             13
69
-    #endif
70
-#endif
71
-
72
-// Defines how to orient the display. An inverted (i.e. upside-down) display
73
-// is supported on the FT800. The FT810 or better also support a portrait
74
-// and mirrored orientation.
75
-//#define TOUCH_UI_INVERTED
76
-//#define TOUCH_UI_PORTRAIT
77
-//#define TOUCH_UI_MIRRORED
78
-
79
-// Enable UTF8 processing and rendering. Unsupported characters
80
-// will be shown as '?'.
81
-//#define TOUCH_UI_USE_UTF8
82
-#ifdef TOUCH_UI_USE_UTF8
83
-  // Western accents support. These accented characters use
84
-  // combined bitmaps and require relatively little storage.
85
-  #define TOUCH_UI_UTF8_WESTERN_CHARSET
86
-  #ifdef TOUCH_UI_UTF8_WESTERN_CHARSET
87
-    // Additional character groups. These characters require
88
-    // full bitmaps and take up considerable storage:
89
-    //#define TOUCH_UI_UTF8_SUPERSCRIPTS    // ¹ ² ³
90
-    //#define TOUCH_UI_UTF8_COPYRIGHT       // © ®
91
-    //#define TOUCH_UI_UTF8_GERMANIC        // ß
92
-    //#define TOUCH_UI_UTF8_SCANDINAVIAN    // Æ Ð Ø Þ æ ð ø þ
93
-    //#define TOUCH_UI_UTF8_PUNCTUATION     // « » ¿ ¡
94
-    //#define TOUCH_UI_UTF8_CURRENCY        // ¢ £ ¤ ¥
95
-    //#define TOUCH_UI_UTF8_ORDINALS        // º ª
96
-    //#define TOUCH_UI_UTF8_MATHEMATICS     // ± × ÷
97
-    //#define TOUCH_UI_UTF8_FRACTIONS       // ¼ ½ ¾
98
-    //#define TOUCH_UI_UTF8_SYMBOLS         // µ ¶ ¦ § ¬
99
-  #endif
100
-#endif
101
-
102
-// When labels do not fit buttons, use smaller font
103
-//#define TOUCH_UI_FIT_TEXT
104
-
105
-// Enable support for selection of languages at run-time
106
-// (otherwise will use the value of LCD_LANGUAGE)
107
-//#define TOUCH_UI_LANGUAGE_MENU
108
-
109
-// Use a numeric passcode for "Parental lock".
110
-// This is a recommended for smaller displays.
111
-//#define TOUCH_UI_PASSCODE
112
-
113
-// The timeout (in ms) to return to the status screen from sub-menus
114
-//#define LCD_TIMEOUT_TO_STATUS 15000
115
-
116
-// Enable this to debug the event framework
117
-//#define TOUCH_UI_DEBUG
118
-
119
-// Enable the developer's menu and screens
120
-//#define DEVELOPER_SCREENS
121
-
122
-// Sets the SPI speed in Hz
123
-
124
-#define SPI_FREQUENCY 8000000 >> SPI_SPEED
26
+// Configure this display with options in Configuration_adv.h

+ 1
- 1
Marlin/src/lcd/extui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/basic/spi.cpp View File

@@ -29,7 +29,7 @@
29 29
 namespace FTDI {
30 30
 
31 31
   #ifndef CLCD_USE_SOFT_SPI
32
-    #ifndef __AVR__
32
+    #ifdef CLCD_SPI_BUS
33 33
       SPIClass EVE_SPI(CLCD_SPI_BUS);
34 34
     #endif
35 35
     SPISettings SPI::spi_settings(SPI_FREQUENCY, MSBFIRST, SPI_MODE0);

+ 1
- 1
Marlin/src/lcd/extui/lib/ftdi_eve_touch_ui/ftdi_eve_lib/basic/spi.h View File

@@ -28,7 +28,7 @@
28 28
 
29 29
 namespace FTDI {
30 30
 
31
-  #if defined(__AVR__) || defined(CLCD_USE_SOFT_SPI)
31
+  #if !defined(CLCD_SPI_BUS) || defined(CLCD_USE_SOFT_SPI)
32 32
     #define SPI_OBJ ::SPI
33 33
   #else
34 34
     extern SPIClass EVE_SPI;

+ 3
- 4
Marlin/src/lcd/extui/lib/ftdi_eve_touch_ui/screens/advanced_settings_menu.cpp View File

@@ -99,9 +99,8 @@ void AdvancedSettingsMenu::onRedraw(draw_mode_t what) {
99 99
       .enabled(ENABLED(SENSORLESS_HOMING))
100 100
       .tag(14).button( TMC_HOMING_THRS_POS,    GET_TEXT_F(MSG_TMC_HOMING_THRS))
101 101
       .enabled(EITHER(HAS_MULTI_HOTEND, BLTOUCH))
102
-      .tag(4) .button( OFFSETS_POS,            GET_TEXT_F(TERN(HAS_MULTI_HOTEND, MSG_OFFSETS_MENU, MSG_RESET_BLTOUCH))
103
-      .enabled(EITHER(LIN_ADVANCE, FILAMENT_RUNOUT_SENSOR)
104
-      )
102
+      .tag(4) .button( OFFSETS_POS,            GET_TEXT_F(TERN(HAS_MULTI_HOTEND, MSG_OFFSETS_MENU, MSG_RESET_BLTOUCH)))
103
+      .enabled(EITHER(LIN_ADVANCE, FILAMENT_RUNOUT_SENSOR))
105 104
       .tag(11).button( FILAMENT_POS,           GET_TEXT_F(MSG_FILAMENT))
106 105
       .tag(12).button( ENDSTOPS_POS,           GET_TEXT_F(MSG_LCD_ENDSTOPS))
107 106
       .tag(15).button( DISPLAY_POS,            GET_TEXT_F(MSG_DISPLAY_MENU))
@@ -109,7 +108,7 @@ void AdvancedSettingsMenu::onRedraw(draw_mode_t what) {
109 108
       .tag(10).button( RESTORE_DEFAULTS_POS,   GET_TEXT_F(MSG_RESTORE_DEFAULTS))
110 109
       .tag(5) .button( VELOCITY_POS,           GET_TEXT_F(MSG_VELOCITY))
111 110
       .tag(6) .button( ACCELERATION_POS,       GET_TEXT_F(MSG_ACCELERATION))
112
-      .tag(7) .button( JERK_POS,               GET_TEXT_F(TERN(HAS_JUNCTION_DEVIATION, MSG_JUNCTION_DEVIATION, MSG_JERK))
111
+      .tag(7) .button( JERK_POS,               GET_TEXT_F(TERN(HAS_JUNCTION_DEVIATION, MSG_JUNCTION_DEVIATION, MSG_JERK)))
113 112
       .enabled(ENABLED(BACKLASH_GCODE))
114 113
       .tag(8).button( BACKLASH_POS,            GET_TEXT_F(MSG_BACKLASH))
115 114
       .colors(action_btn)

+ 3
- 3
Marlin/src/lcd/extui/lib/ftdi_eve_touch_ui/screens/tune_menu.cpp View File

@@ -72,14 +72,14 @@ void TuneMenu::onRedraw(draw_mode_t what) {
72 72
        .enabled(EITHER(LIN_ADVANCE, FILAMENT_RUNOUT_SENSOR))
73 73
        .tag(9).button( FILAMENT_POS, GET_TEXT_F(MSG_FILAMENT))
74 74
        .enabled(EITHER(HAS_BED_PROBE, BABYSTEPPING))
75
-       .tag(4).button( NUDGE_NOZ_POS, GET_TEXT_F(TERN(BABYSTEPPING, MSG_NUDGE_NOZZLE, MSG_ZPROBE_ZOFFSET))
75
+       .tag(4).button( NUDGE_NOZ_POS, GET_TEXT_F(TERN(BABYSTEPPING, MSG_NUDGE_NOZZLE, MSG_ZPROBE_ZOFFSET)))
76 76
        .tag(5).button( SPEED_POS, GET_TEXT_F(MSG_PRINT_SPEED))
77 77
        .tag(isPrintingFromMediaPaused() ? 7 : 6)
78 78
        .enabled(TERN0(SDSUPPORT, isPrintingFromMedia()))
79 79
        .button( PAUSE_POS, isPrintingFromMediaPaused() ? GET_TEXT_F(MSG_RESUME_PRINT) : GET_TEXT_F(MSG_PAUSE_PRINT))
80 80
        .enabled(TERN0(SDSUPPORT, isPrintingFromMedia()))
81
-      .tag(8).button( STOP_POS, GET_TEXT_F(MSG_STOP_PRINT))
82
-      .tag(1).colors(action_btn)
81
+       .tag(8).button( STOP_POS, GET_TEXT_F(MSG_STOP_PRINT))
82
+       .tag(1).colors(action_btn)
83 83
              .button( BACK_POS, GET_TEXT_F(MSG_BACK));
84 84
   }
85 85
   #undef GRID_COLS

+ 8
- 6
Marlin/src/lcd/extui_dgus_lcd.cpp View File

@@ -106,13 +106,15 @@ namespace ExtUI {
106 106
     // whether successful or not.
107 107
   }
108 108
 
109
-  void onMeshUpdate(const int8_t xpos, const int8_t ypos, const float zval) {
110
-    // Called when any mesh points are updated
111
-  }
109
+  #if HAS_MESH
110
+    void onMeshUpdate(const int8_t xpos, const int8_t ypos, const float zval) {
111
+      // Called when any mesh points are updated
112
+    }
112 113
 
113
-  void onMeshUpdate(const int8_t xpos, const int8_t ypos, const ExtUI::probe_state_t state) {
114
-    // Called to indicate a special condition
115
-  }
114
+    void onMeshUpdate(const int8_t xpos, const int8_t ypos, const ExtUI::probe_state_t state) {
115
+      // Called to indicate a special condition
116
+    }
117
+  #endif
116 118
 
117 119
   #if ENABLED(POWER_LOSS_RECOVERY)
118 120
     void onPowerLossResume() {

Loading…
Cancel
Save