diff --git a/platformio.ini b/platformio.ini index 2c3ffa9..7cd6dfc 100644 --- a/platformio.ini +++ b/platformio.ini @@ -13,9 +13,9 @@ platform = espressif32 board = nodemcu-32s framework = arduino monitor_speed = 115200 -monitor_port = COM3 +monitor_port = /dev/ttyACM0 monitor_filters = time -upload_port = COM3 +upload_port = /dev/ttyACM0 lib_deps = knolleary/PubSubClient @ 2.8 adafruit/Adafruit GFX Library @ 1.11.3 @@ -23,7 +23,7 @@ lib_deps = ;adafruit/Adafruit BusIO @ 1.7.2 build_flags = - -DSCAN=32 + -DSCAN=16 [env:debug] ; Entwicklungssystem diff --git a/src/main.cpp b/src/main.cpp index 5bb3dd3..abe3654 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -25,7 +25,8 @@ #define P_B 23 #define P_C 18 #define P_D 5 -#define P_E 15 +//#define P_E 15 +#define P_E -1 #define P_OE 16 hw_timer_t * timer = NULL; portMUX_TYPE timerMux = portMUX_INITIALIZER_UNLOCKED; @@ -71,8 +72,8 @@ PubSubClient client(espClient); uint8_t display_draw_time=10; //30-70 is usually fine //PxMATRIX display(32,16,P_LAT, P_OE,P_A,P_B,P_C); -//PxMATRIX display(64,32,P_LAT, P_OE,P_A,P_B,P_C,P_D); -PxMATRIX display(64,64,P_LAT, P_OE,P_A,P_B,P_C,P_D,P_E); +PxMATRIX display(64,32,P_LAT, P_OE,P_A,P_B,P_C,P_D); +//PxMATRIX display(64,64,P_LAT, P_OE,P_A,P_B,P_C,P_D,P_E); // Some standard colors uint16_t myRED = display.color565(255, 0, 0);