blynk & neopixelring & w7500

Fork of WIZwiki-7500_Blynk by IOP

Revision:
7:8879692d4e6c
Parent:
4:fa1450a7dd08
Child:
9:7369ec77a3ea
--- a/Blynk/BlynkDetectDevice.h	Thu Jun 23 23:00:40 2016 +0000
+++ b/Blynk/BlynkDetectDevice.h	Wed Oct 12 09:18:39 2016 +0300
@@ -58,12 +58,37 @@
 #ifndef BLYNK_INFO_DEVICE
 
     #if   defined(ENERGIA)
-        #define BLYNK_INFO_DEVICE  "Energia"
+
+        #define BLYNK_NO_YIELD
         #define BLYNK_USE_128_VPINS
 
-        #if   defined(__MSP430F5529__)
-        #define BLYNK_INFO_CPU  "MSP430F5529"
-        #define BLYNK_NO_FLOAT
+        #if   defined(ENERGIA_ARCH_MSP430)
+            #define BLYNK_INFO_DEVICE  "LaunchPad"
+            #define BLYNK_INFO_CPU     "MSP430"
+            #define BLYNK_NO_FLOAT
+        #elif defined(ENERGIA_ARCH_MSP432)
+            #define BLYNK_INFO_DEVICE  "LaunchPad"
+            #define BLYNK_INFO_CPU     "MSP432"
+        #elif defined(ENERGIA_ARCH_TIVAC)
+            #define BLYNK_INFO_DEVICE  "LaunchPad"
+
+        #elif defined(ENERGIA_ARCH_CC3200)
+            #define BLYNK_INFO_CONNECTION  "CC3200"
+            #define BLYNK_SEND_CHUNK 64
+
+            #if   defined(ENERGIA_CC3200-LAUNCHXL)
+            #define BLYNK_INFO_DEVICE  "CC32000-LanuchXL"
+            #elif defined(ENERGIA_RedBearLab_CC3200)
+            #define BLYNK_INFO_DEVICE  "RBL CC3200"
+            #elif defined(ENERGIA_RedBearLab_WiFiMini)
+            #define BLYNK_INFO_DEVICE  "RBL WiFi Mini"
+            #elif defined(ENERGIA_RedBearLab_WiFiMicro)
+            #define BLYNK_INFO_DEVICE  "RBL WiFi Micro"
+            #endif
+        #endif
+
+        #if !defined(BLYNK_INFO_DEVICE)
+        #define BLYNK_INFO_DEVICE  "Energia"
         #endif
 
     #elif defined(LINUX)
@@ -130,7 +155,7 @@
 
     #elif defined(ARDUINO)
 
-        #ifdef ESP8266
+        #if defined(ESP8266) || defined(ESP32)
             #define BLYNK_USE_128_VPINS
         #endif
 
@@ -230,6 +255,10 @@
         #elif defined(ARDUINO_ESP8266_THING_DEV)
         #define BLYNK_INFO_DEVICE  "Esp Thing Dev"
 
+        /* ESP32 */
+        #elif defined(ARDUINO_ESP32_DEV)
+        #define BLYNK_INFO_DEVICE  "ESP32"
+
         /* Digistump */
         #elif defined(ARDUINO_ESP8266_OAK)
         #define BLYNK_INFO_DEVICE  "Oak"
@@ -270,7 +299,13 @@
         #define BLYNK_INFO_DEVICE  "Arduino"
         #endif
 
-	#endif
+    #endif
+
+    #ifdef BLYNK_DEBUG
+	#pragma message ("BLYNK_INFO_DEVICE=" BLYNK_INFO_DEVICE)
+	#pragma message ("BLYNK_INFO_CPU="    BLYNK_INFO_CPU)
+    #endif
+
 #endif
 
 #endif