Liu Song’s Projects


~/Projects/AWTRIX2.0-Controller

git clone https://code.lsong.org/AWTRIX2.0-Controller

Commit

Commit
f10f41b5002af2d1fda7b9b9c6d33e8342cb36b0
Author
Mazze2000 <[email protected]>
Date
2019-06-15 17:50:12 +0200 +0200
Diffstat
 src/AWTRIXController.cpp | 4 +++-
 src/awtrix-conf.h | 5 ++++-

solved DrawBMP problem


diff --git a/src/AWTRIXController.cpp b/src/AWTRIXController.cpp
index d210a05237e83081f088c66cda4c7ad8129a8967..2badb06df10c3828d3a346833f4a9d6372073f2d 100644
--- a/src/AWTRIXController.cpp
+++ b/src/AWTRIXController.cpp
@@ -177,9 +177,11 @@ 			int16_t height = payload[6];
 	
 			unsigned short colorData[width*height];
 #include <ArduinoOTA.h>
+#include <FastLED.h>
+#include <ArduinoOTA.h>
 SparkFun_APDS9960 apds = SparkFun_APDS9960();
-#include <ArduinoOTA.h>
 #include <WiFiClient.h>
+SparkFun_APDS9960 apds = SparkFun_APDS9960();
 				i++;
 			}
 			




diff --git a/src/awtrix-conf.h b/src/awtrix-conf.h
index a696ac6d5636af0f0629f0e29db373e032c3df25..e92f0b036ae2daca94735a46ea110053e086189d 100644
--- a/src/awtrix-conf.h
+++ b/src/awtrix-conf.h
@@ -3,14 +3,17 @@
 // Wifi Config
 
 typedef struct {
-    const char *ssid = "MPZ-Labor";
+///////////////////////// AWTRIX CONFIG /////////////////////////
     const char *password = "MPZMPZMPZ";
+///////////////////////// AWTRIX CONFIG /////////////////////////
     char *awtrix_server = "192.168.99.101";
+    char *awtrix_server = "192.168.3.40";
 } configData_t;
 
 configData_t wifiConfig;
 
 ///////////////////////// AWTRIX CONFIG /////////////////////////
+configData_t wifiConfig;
 //#define MATRIX_MODEV2
 
 /// LDR Config