|
@@ -254,7 +254,7 @@ const int DISPLAY_MENU_A__PROGMEM_CONSOLE_PRINT = 3 ;
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
//BEGIN 1602
|
|
//BEGIN 1602
|
|
|
-#if defined(HAS_LCD1602)
|
|
|
|
|
|
|
+#if defined(HAS_LCD1602) or defined(HAS_LCD1602_I2C)
|
|
|
|
|
|
|
|
// initialize the library with the numbers of the interface pins
|
|
// initialize the library with the numbers of the interface pins
|
|
|
//LiquidCrystal lcd(4, 6, 10, 11, 12, 13);
|
|
//LiquidCrystal lcd(4, 6, 10, 11, 12, 13);
|
|
@@ -318,11 +318,11 @@ const int DISPLAY_MENU_A__PROGMEM_CONSOLE_PRINT = 3 ;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-#if defined(HAS_LCD1602)
|
|
|
|
|
|
|
+#if defined(HAS_LCD1602) or defined(HAS_LCD1602_I2C)
|
|
|
#include "_LCD1602_init.h"
|
|
#include "_LCD1602_init.h"
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
-#if defined(HAS_LCD1602)
|
|
|
|
|
|
|
+#if defined(HAS_LCD1602) or defined(HAS_LCD1602_I2C)
|
|
|
#include "_LCD1602_func.h"
|
|
#include "_LCD1602_func.h"
|
|
|
//#include "_LCD1602_init.h"
|
|
//#include "_LCD1602_init.h"
|
|
|
#endif
|
|
#endif
|
|
@@ -444,6 +444,12 @@ const int DISPLAY_MENU_A__PROGMEM_CONSOLE_PRINT = 3 ;
|
|
|
|
|
|
|
|
#include "scan.h"
|
|
#include "scan.h"
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+//test driven lcd_display
|
|
|
|
|
+#include "automation_driven_main.submodule.struct.write.lcd_menu.h"
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
void setup() { //REMEMBER NOT INITIALIZE ANY VARIABLES OR ARRAYS
|
|
void setup() { //REMEMBER NOT INITIALIZE ANY VARIABLES OR ARRAYS
|
|
|
Serial.begin(115200);
|
|
Serial.begin(115200);
|
|
|
Wire.begin();
|
|
Wire.begin();
|
|
@@ -502,7 +508,7 @@ ARDUINO_SETUP_DEF_T HAS_ROTTARY_SW_A = false;
|
|
|
|
|
|
|
|
// put your setup code here, to run once:
|
|
// put your setup code here, to run once:
|
|
|
ARDUINO_SETUP_DEF_T HAS_LCD1602_A = false; //todo
|
|
ARDUINO_SETUP_DEF_T HAS_LCD1602_A = false; //todo
|
|
|
- #if defined(HAS_LCD1602)
|
|
|
|
|
|
|
+ #if defined(HAS_LCD1602) or defined(HAS_LCD1602_I2C)
|
|
|
#include "_LCD1602_setup.h"
|
|
#include "_LCD1602_setup.h"
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
@@ -518,7 +524,7 @@ ARDUINO_SETUP_DEF_T HAS_TFT_ILI9163C_A = false ; //todo
|
|
|
|
|
|
|
|
#include "_CAN_setup.h" //lite _CAN/
|
|
#include "_CAN_setup.h" //lite _CAN/
|
|
|
|
|
|
|
|
- #if defined(HAS_LCD1602)
|
|
|
|
|
|
|
+ #if defined(HAS_LCD1602) or defined(HAS_LCD1602_I2C)
|
|
|
/* todo
|
|
/* todo
|
|
|
LCDarray1 = "loop.... ";
|
|
LCDarray1 = "loop.... ";
|
|
|
LCDarray2 = "....";
|
|
LCDarray2 = "....";
|
|
@@ -536,8 +542,6 @@ ARDUINO_SETUP_DEF_T HAS_TFT_ILI9163C_A = false ; //todo
|
|
|
#include "___DEBUG/___DEBUG_DISABLE_SETUP.h"
|
|
#include "___DEBUG/___DEBUG_DISABLE_SETUP.h"
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//#if Active_ControllerID == _ControllerID
|
|
//#if Active_ControllerID == _ControllerID
|
|
@@ -552,6 +556,7 @@ ARDUINO_SETUP_DEF_T HAS_TFT_ILI9163C_A = false ; //todo
|
|
|
#include "_LOOP_LATENCY_COUNTER.h" //lite ___loop/
|
|
#include "_LOOP_LATENCY_COUNTER.h" //lite ___loop/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
void loop() {
|
|
void loop() {
|
|
|
register long time;
|
|
register long time;
|
|
|
time = millis();
|
|
time = millis();
|
|
@@ -582,7 +587,7 @@ void loop() {
|
|
|
// Serial.print("] COUNTER__MAIN_END_A["); Serial.print(ARDUINO_LOOP_LATENCY_COUNTER__MAIN_END_A);
|
|
// Serial.print("] COUNTER__MAIN_END_A["); Serial.print(ARDUINO_LOOP_LATENCY_COUNTER__MAIN_END_A);
|
|
|
}
|
|
}
|
|
|
DEBUG_LAST_ACTION_TRIG = DEBUG_ACTION_TRIG ;
|
|
DEBUG_LAST_ACTION_TRIG = DEBUG_ACTION_TRIG ;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|