Quellcode durchsuchen

asign ports begin

a.binder vor 5 Jahren
Ursprung
Commit
a39ed5a7d6

+ 10 - 0
SE/stuff/P5_Automation_can-dev-res-working-1930/P5_Automation_can-dev-res-working-1930.ino

@@ -106,6 +106,16 @@
 //#define DISABLE_LOOP
 #define DISABLE_QUEUE_REASSIGN
 //#define DEBUG_LATENCY_MARKER
+
+//ports assign config
+#define PortA8 A8  //for rottary sw
+#define PortA9 A9  //for rottary sw dt
+#define PortA10 A10  //for rottary sw clk
+#define Port7 7 //for TFT_ILI9163C_CSpin 7 
+#define Port8 8 //for TFT_ILI9163C_DCpin 8
+
+
+
 #define Sprintln(a) (Serial.println(a))
 /*
 Then instead of

+ 3 - 3
SE/stuff/P5_Automation_can-dev-res-working-1930/_ROTTARY_SW/_ROTTARY_SW_config.h

@@ -1,7 +1,7 @@
 // rottary switch ports 
-#define ROTTARY_SW_sw A8 // 62 // A8 //A8 //53 // 89 // = A8
-#define ROTTARY_SW_dt  A9 // 90 // = A9
-#define ROTTARY_SW_clk A10  // 91 // = A10
+#define ROTTARY_SW_sw PortA8 //A8 // 62 // A8 //A8 //53 // 89 // = A8
+#define ROTTARY_SW_dt PortA9  //A9 // 90 // = A9
+#define ROTTARY_SW_clk PortA10 //A10  // 91 // = A10
 
 /*
  LOW to trigger the interrupt whenever the pin is low,

+ 3 - 3
SE/stuff/P5_Automation_can-dev-res-working-1930/_TFT_ILI9163C_config.h

@@ -1,8 +1,8 @@
- #define TFT_ILI9163C_CSpin 7 // __CSpin // 53 // 10 //  chip select
+ #define TFT_ILI9163C_CSpin Port7 // 7 // __CSpin // 53 // 10 //  chip select
 
-  #define TFT_ILI9163C_DCpin 8 // A0   data/command pin.   sometimes called DC, RS, ...
+  #define TFT_ILI9163C_DCpin Port8 //8 // A0   data/command pin.   sometimes called DC, RS, ...
 
-  #define TFT_ILI9163C__RSTpin 9 //reset pin.   you must connect.   (or pullup)
+  #define TFT_ILI9163C__RSTpin Port9 //9 //reset pin.   you must connect.   (or pullup)
   //#define __SDA 51 //11 //+ bidirectional data pin.   Connect to MOSI
   //#define __SCK 52 //13 //+ clock.   sometimes called SCLK, SCL, ...