HoMetz 6 роки тому
батько
коміт
a6bed9ab9a
2 змінених файлів з 8 додано та 10 видалено
  1. 3 5
      platformio.ini
  2. 5 5
      src/AWTRIXController.cpp

+ 3 - 5
platformio.ini

@@ -14,7 +14,7 @@ env_default = nodemcuv2
 [common]
 lib_deps_builtin =
     SPI
-
+    
 lib_deps =
     PubSubClient
     Adafruit NeoPixel
@@ -28,13 +28,11 @@ lib_deps =
 platform = espressif8266
 #board = nodemcuv2
 board = d1_mini
-#build_flags = -w -Wl,-Teagle.flash.4m.ld -DMQTT_MAX_PACKET_SIZE=3000
-build_flags = -w -Wl,-Tesp8266.flash.4m.ld -DMQTT_MAX_PACKET_SIZE=3000
-board_build.f_cpu = 80000000L
+build_flags = -w -Wl,-Teagle.flash.4m.ld -DMQTT_MAX_PACKET_SIZE=3000
+board_build.f_cpu = 80000000L 
 framework = arduino
 monitor_speed = 115200
 upload_speed = 921600
-upload_port = 192.168.1.121
 lib_deps =
     ${common.lib_deps_builtin}
     ${common.lib_deps}

+ 5 - 5
src/AWTRIXController.cpp

@@ -16,12 +16,12 @@
 ////////////////////////////////////////////////////////////////
 ///////////////////////// Config begin /////////////////////////
 // Wifi Config
-const char *ssid = "SilberfishAtHome";
-const char *password = "6457328324132300AE";
-char *awtrix_server = "192.168.1.146";
+const char *ssid = "XXXXX";
+const char *password = "XXXXX";
+char *awtrix_server = "192.168.178.xx";
 
 /// LDR Config
-#define LDR_RESISTOR 1000 //ohms
+#define LDR_RESISTOR 10000 //ohms
 #define LDR_PIN A0
 #define LDR_PHOTOCELL LightDependentResistor::GL5516
 
@@ -38,7 +38,7 @@ char *awtrix_server = "192.168.1.146";
 char *topics = "awtrixmatrix/";
 #define NUMMATRIX (32 * 8)
 CRGB leds[NUMMATRIX];
-String version = "0.31";
+String version = "0.32";
 #ifdef MATRIX_MODEV2
 FastLED_NeoMatrix *matrix = new FastLED_NeoMatrix(leds, 32, 8, NEO_MATRIX_TOP + NEO_MATRIX_LEFT + NEO_MATRIX_ROWS + NEO_MATRIX_ZIGZAG);
 #endif