blynk & neopixelring & w7500

Fork of WIZwiki-7500_Blynk by IOP

Committer:
Volodymyr Shymanskyy
Date:
Wed Oct 12 09:18:39 2016 +0300
Revision:
7:8879692d4e6c
Parent:
4:fa1450a7dd08
Child:
9:7369ec77a3ea
Update library

Who changed what in which revision?

UserRevisionLine numberNew contents of line
vshymanskyy 0:58b20b438383 1 /**
vshymanskyy 0:58b20b438383 2 * @file BlynkDetectDevice.h
vshymanskyy 0:58b20b438383 3 * @author Volodymyr Shymanskyy
vshymanskyy 0:58b20b438383 4 * @license This project is released under the MIT License (MIT)
vshymanskyy 0:58b20b438383 5 * @copyright Copyright (c) 2016 Volodymyr Shymanskyy
vshymanskyy 0:58b20b438383 6 * @date May 2016
vshymanskyy 0:58b20b438383 7 * @brief
vshymanskyy 0:58b20b438383 8 *
vshymanskyy 0:58b20b438383 9 */
vshymanskyy 0:58b20b438383 10
vshymanskyy 0:58b20b438383 11 #ifndef BlynkDetectDevice_h
vshymanskyy 0:58b20b438383 12 #define BlynkDetectDevice_h
vshymanskyy 0:58b20b438383 13
vshymanskyy 0:58b20b438383 14 #ifndef BLYNK_INFO_CPU
vshymanskyy 0:58b20b438383 15
vshymanskyy 0:58b20b438383 16 /******************************************
vshymanskyy 0:58b20b438383 17 * ATmega
vshymanskyy 0:58b20b438383 18 */
vshymanskyy 0:58b20b438383 19
vshymanskyy 0:58b20b438383 20 #if defined(__AVR_ATmega168__)
vshymanskyy 0:58b20b438383 21 #define BLYNK_INFO_CPU "ATmega168"
vshymanskyy 0:58b20b438383 22 #elif defined(__AVR_ATmega328P__)
vshymanskyy 0:58b20b438383 23 #define BLYNK_INFO_CPU "ATmega328P"
vshymanskyy 0:58b20b438383 24 #elif defined(__AVR_ATmega1280__)
vshymanskyy 0:58b20b438383 25 #define BLYNK_INFO_CPU "ATmega1280"
vshymanskyy 0:58b20b438383 26 #elif defined(__AVR_ATmega1284__)
vshymanskyy 0:58b20b438383 27 #define BLYNK_INFO_CPU "ATmega1284"
vshymanskyy 0:58b20b438383 28 #elif defined(__AVR_ATmega2560__)
vshymanskyy 0:58b20b438383 29 #define BLYNK_INFO_CPU "ATmega2560"
vshymanskyy 0:58b20b438383 30 #elif defined(__AVR_ATmega32U4__)
vshymanskyy 0:58b20b438383 31 #define BLYNK_INFO_CPU "ATmega32U4"
vshymanskyy 0:58b20b438383 32 #elif defined(__SAM3X8E__)
vshymanskyy 0:58b20b438383 33 #define BLYNK_INFO_CPU "AT91SAM3X8E"
vshymanskyy 0:58b20b438383 34
vshymanskyy 0:58b20b438383 35 /******************************************
vshymanskyy 0:58b20b438383 36 * ATtiny
vshymanskyy 0:58b20b438383 37 */
vshymanskyy 0:58b20b438383 38
vshymanskyy 0:58b20b438383 39 #elif defined(__AVR_ATtiny25__)
vshymanskyy 0:58b20b438383 40 #define BLYNK_INFO_CPU "ATtiny25"
vshymanskyy 0:58b20b438383 41 #elif defined(__AVR_ATtiny45__)
vshymanskyy 0:58b20b438383 42 #define BLYNK_INFO_CPU "ATtiny45"
vshymanskyy 0:58b20b438383 43 #elif defined(__AVR_ATtiny85__)
vshymanskyy 0:58b20b438383 44 #define BLYNK_INFO_CPU "ATtiny85"
vshymanskyy 0:58b20b438383 45 #elif defined(__AVR_ATtiny24__)
vshymanskyy 0:58b20b438383 46 #define BLYNK_INFO_CPU "ATtiny24"
vshymanskyy 0:58b20b438383 47 #elif defined(__AVR_ATtiny44__)
vshymanskyy 0:58b20b438383 48 #define BLYNK_INFO_CPU "ATtiny44"
vshymanskyy 0:58b20b438383 49 #elif defined(__AVR_ATtiny84__)
vshymanskyy 0:58b20b438383 50 #define BLYNK_INFO_CPU "ATtiny84"
vshymanskyy 0:58b20b438383 51 #elif defined(__AVR_ATtiny2313__)
vshymanskyy 0:58b20b438383 52 #define BLYNK_INFO_CPU "ATtiny2313"
vshymanskyy 0:58b20b438383 53 #elif defined(__AVR_ATtiny4313__)
vshymanskyy 0:58b20b438383 54 #define BLYNK_INFO_CPU "ATtiny4313"
vshymanskyy 0:58b20b438383 55 #endif
vshymanskyy 0:58b20b438383 56 #endif
vshymanskyy 0:58b20b438383 57
vshymanskyy 0:58b20b438383 58 #ifndef BLYNK_INFO_DEVICE
vshymanskyy 0:58b20b438383 59
vshymanskyy 0:58b20b438383 60 #if defined(ENERGIA)
Volodymyr Shymanskyy 7:8879692d4e6c 61
Volodymyr Shymanskyy 7:8879692d4e6c 62 #define BLYNK_NO_YIELD
Volodymyr Shymanskyy 3:31e4b850b126 63 #define BLYNK_USE_128_VPINS
vshymanskyy 0:58b20b438383 64
Volodymyr Shymanskyy 7:8879692d4e6c 65 #if defined(ENERGIA_ARCH_MSP430)
Volodymyr Shymanskyy 7:8879692d4e6c 66 #define BLYNK_INFO_DEVICE "LaunchPad"
Volodymyr Shymanskyy 7:8879692d4e6c 67 #define BLYNK_INFO_CPU "MSP430"
Volodymyr Shymanskyy 7:8879692d4e6c 68 #define BLYNK_NO_FLOAT
Volodymyr Shymanskyy 7:8879692d4e6c 69 #elif defined(ENERGIA_ARCH_MSP432)
Volodymyr Shymanskyy 7:8879692d4e6c 70 #define BLYNK_INFO_DEVICE "LaunchPad"
Volodymyr Shymanskyy 7:8879692d4e6c 71 #define BLYNK_INFO_CPU "MSP432"
Volodymyr Shymanskyy 7:8879692d4e6c 72 #elif defined(ENERGIA_ARCH_TIVAC)
Volodymyr Shymanskyy 7:8879692d4e6c 73 #define BLYNK_INFO_DEVICE "LaunchPad"
Volodymyr Shymanskyy 7:8879692d4e6c 74
Volodymyr Shymanskyy 7:8879692d4e6c 75 #elif defined(ENERGIA_ARCH_CC3200)
Volodymyr Shymanskyy 7:8879692d4e6c 76 #define BLYNK_INFO_CONNECTION "CC3200"
Volodymyr Shymanskyy 7:8879692d4e6c 77 #define BLYNK_SEND_CHUNK 64
Volodymyr Shymanskyy 7:8879692d4e6c 78
Volodymyr Shymanskyy 7:8879692d4e6c 79 #if defined(ENERGIA_CC3200-LAUNCHXL)
Volodymyr Shymanskyy 7:8879692d4e6c 80 #define BLYNK_INFO_DEVICE "CC32000-LanuchXL"
Volodymyr Shymanskyy 7:8879692d4e6c 81 #elif defined(ENERGIA_RedBearLab_CC3200)
Volodymyr Shymanskyy 7:8879692d4e6c 82 #define BLYNK_INFO_DEVICE "RBL CC3200"
Volodymyr Shymanskyy 7:8879692d4e6c 83 #elif defined(ENERGIA_RedBearLab_WiFiMini)
Volodymyr Shymanskyy 7:8879692d4e6c 84 #define BLYNK_INFO_DEVICE "RBL WiFi Mini"
Volodymyr Shymanskyy 7:8879692d4e6c 85 #elif defined(ENERGIA_RedBearLab_WiFiMicro)
Volodymyr Shymanskyy 7:8879692d4e6c 86 #define BLYNK_INFO_DEVICE "RBL WiFi Micro"
Volodymyr Shymanskyy 7:8879692d4e6c 87 #endif
Volodymyr Shymanskyy 7:8879692d4e6c 88 #endif
Volodymyr Shymanskyy 7:8879692d4e6c 89
Volodymyr Shymanskyy 7:8879692d4e6c 90 #if !defined(BLYNK_INFO_DEVICE)
Volodymyr Shymanskyy 7:8879692d4e6c 91 #define BLYNK_INFO_DEVICE "Energia"
vshymanskyy 0:58b20b438383 92 #endif
vshymanskyy 0:58b20b438383 93
vshymanskyy 0:58b20b438383 94 #elif defined(LINUX)
vshymanskyy 0:58b20b438383 95
vshymanskyy 0:58b20b438383 96 #define BLYNK_INFO_DEVICE "Linux"
Volodymyr Shymanskyy 3:31e4b850b126 97 #define BLYNK_USE_128_VPINS
vshymanskyy 0:58b20b438383 98
vshymanskyy 0:58b20b438383 99 #elif defined(SPARK) || defined(PARTICLE)
vshymanskyy 0:58b20b438383 100
Volodymyr Shymanskyy 3:31e4b850b126 101 #define BLYNK_USE_128_VPINS
Volodymyr Shymanskyy 3:31e4b850b126 102
vshymanskyy 0:58b20b438383 103 #if PLATFORM_ID==0
vshymanskyy 0:58b20b438383 104 #define BLYNK_INFO_DEVICE "Particle Core"
vshymanskyy 0:58b20b438383 105 #elif PLATFORM_ID==6
vshymanskyy 0:58b20b438383 106 #define BLYNK_INFO_DEVICE "Particle Photon"
vshymanskyy 0:58b20b438383 107 #elif PLATFORM_ID==8
vshymanskyy 0:58b20b438383 108 #define BLYNK_INFO_DEVICE "Particle P1"
vshymanskyy 0:58b20b438383 109 #elif PLATFORM_ID==9
vshymanskyy 0:58b20b438383 110 #define BLYNK_INFO_DEVICE "Particle Ethernet"
vshymanskyy 0:58b20b438383 111 #elif PLATFORM_ID==10
vshymanskyy 0:58b20b438383 112 #define BLYNK_INFO_DEVICE "Particle Electron"
vshymanskyy 0:58b20b438383 113 #elif PLATFORM_ID==82
vshymanskyy 0:58b20b438383 114 #define BLYNK_INFO_DEVICE "Digistump Oak"
vshymanskyy 0:58b20b438383 115 #elif PLATFORM_ID==88
vshymanskyy 0:58b20b438383 116 #define BLYNK_INFO_DEVICE "RedBear Duo"
vshymanskyy 0:58b20b438383 117 #elif PLATFORM_ID==103
vshymanskyy 0:58b20b438383 118 #define BLYNK_INFO_DEVICE "Bluz"
vshymanskyy 0:58b20b438383 119 #else
vshymanskyy 0:58b20b438383 120 #warning "Cannot detect board type"
vshymanskyy 0:58b20b438383 121 #define BLYNK_INFO_DEVICE "Particle"
vshymanskyy 0:58b20b438383 122 #endif
vshymanskyy 0:58b20b438383 123
vshymanskyy 0:58b20b438383 124 #elif defined(MBED_LIBRARY_VERSION)
vshymanskyy 0:58b20b438383 125
vshymanskyy 0:58b20b438383 126 #define BLYNK_INFO_DEVICE "MBED"
Volodymyr Shymanskyy 3:31e4b850b126 127 #define BLYNK_USE_128_VPINS
vshymanskyy 4:fa1450a7dd08 128 #define noInterrupts() __disable_irq()
vshymanskyy 4:fa1450a7dd08 129 #define interrupts() __enable_irq()
vshymanskyy 0:58b20b438383 130
vshymanskyy 0:58b20b438383 131 #elif defined(ARDUINO) && defined(MPIDE)
vshymanskyy 0:58b20b438383 132 #define BLYNK_NO_YIELD
vshymanskyy 0:58b20b438383 133
vshymanskyy 0:58b20b438383 134 #if defined(_BOARD_UNO_)
vshymanskyy 0:58b20b438383 135 #define BLYNK_INFO_DEVICE "chipKIT Uno32"
vshymanskyy 0:58b20b438383 136 #else
vshymanskyy 0:58b20b438383 137 #define BLYNK_INFO_DEVICE "chipKIT"
vshymanskyy 0:58b20b438383 138 #endif
vshymanskyy 0:58b20b438383 139
Volodymyr Shymanskyy 3:31e4b850b126 140 #elif defined(ARDUINO) && defined(TEENSYDUINO)
Volodymyr Shymanskyy 3:31e4b850b126 141
Volodymyr Shymanskyy 3:31e4b850b126 142 #if defined(__MK20DX256__)
Volodymyr Shymanskyy 3:31e4b850b126 143 #define BLYNK_INFO_DEVICE "Teensy 3.2/3.1"
Volodymyr Shymanskyy 3:31e4b850b126 144 #define BLYNK_USE_128_VPINS
Volodymyr Shymanskyy 3:31e4b850b126 145 #elif defined(__MK20DX128__)
Volodymyr Shymanskyy 3:31e4b850b126 146 #define BLYNK_INFO_DEVICE "Teensy 3.0"
Volodymyr Shymanskyy 3:31e4b850b126 147 #define BLYNK_USE_128_VPINS
Volodymyr Shymanskyy 3:31e4b850b126 148 #elif defined(__MKL26Z64__)
Volodymyr Shymanskyy 3:31e4b850b126 149 #define BLYNK_INFO_DEVICE "Teensy LC"
Volodymyr Shymanskyy 3:31e4b850b126 150 #elif defined(ARDUINO_ARCH_AVR)
Volodymyr Shymanskyy 3:31e4b850b126 151 #define BLYNK_INFO_DEVICE "Teensy 2.0"
Volodymyr Shymanskyy 3:31e4b850b126 152 #else
Volodymyr Shymanskyy 3:31e4b850b126 153 #define BLYNK_INFO_DEVICE "Teensy"
Volodymyr Shymanskyy 3:31e4b850b126 154 #endif
Volodymyr Shymanskyy 3:31e4b850b126 155
vshymanskyy 0:58b20b438383 156 #elif defined(ARDUINO)
vshymanskyy 0:58b20b438383 157
Volodymyr Shymanskyy 7:8879692d4e6c 158 #if defined(ESP8266) || defined(ESP32)
Volodymyr Shymanskyy 3:31e4b850b126 159 #define BLYNK_USE_128_VPINS
Volodymyr Shymanskyy 3:31e4b850b126 160 #endif
Volodymyr Shymanskyy 3:31e4b850b126 161
vshymanskyy 0:58b20b438383 162 /* Arduino AVR */
vshymanskyy 0:58b20b438383 163 #if defined(ARDUINO_AVR_NANO)
vshymanskyy 0:58b20b438383 164 #define BLYNK_INFO_DEVICE "Arduino Nano"
vshymanskyy 0:58b20b438383 165 #elif defined(ARDUINO_AVR_UNO) || defined(ARDUINO_AVR_DUEMILANOVE)
vshymanskyy 0:58b20b438383 166 #define BLYNK_INFO_DEVICE "Arduino Uno"
vshymanskyy 0:58b20b438383 167 #elif defined(ARDUINO_AVR_YUN)
vshymanskyy 0:58b20b438383 168 #define BLYNK_INFO_DEVICE "Arduino Yun"
vshymanskyy 0:58b20b438383 169 #elif defined(ARDUINO_AVR_MINI)
vshymanskyy 0:58b20b438383 170 #define BLYNK_INFO_DEVICE "Arduino Mini"
vshymanskyy 0:58b20b438383 171 #elif defined(ARDUINO_AVR_ETHERNET)
vshymanskyy 0:58b20b438383 172 #define BLYNK_INFO_DEVICE "Arduino Ethernet"
vshymanskyy 0:58b20b438383 173 #elif defined(ARDUINO_AVR_FIO)
vshymanskyy 0:58b20b438383 174 #define BLYNK_INFO_DEVICE "Arduino Fio"
vshymanskyy 0:58b20b438383 175 #elif defined(ARDUINO_AVR_BT)
vshymanskyy 0:58b20b438383 176 #define BLYNK_INFO_DEVICE "Arduino BT"
vshymanskyy 0:58b20b438383 177 #elif defined(ARDUINO_AVR_PRO)
vshymanskyy 0:58b20b438383 178 #define BLYNK_INFO_DEVICE "Arduino Pro"
vshymanskyy 0:58b20b438383 179 #elif defined(ARDUINO_AVR_NG)
vshymanskyy 0:58b20b438383 180 #define BLYNK_INFO_DEVICE "Arduino NG"
vshymanskyy 0:58b20b438383 181 #elif defined(ARDUINO_AVR_GEMMA)
vshymanskyy 0:58b20b438383 182 #define BLYNK_INFO_DEVICE "Arduino Gemma"
vshymanskyy 0:58b20b438383 183 #elif defined(ARDUINO_AVR_MEGA) || defined(ARDUINO_AVR_MEGA2560)
vshymanskyy 0:58b20b438383 184 #define BLYNK_INFO_DEVICE "Arduino Mega"
Volodymyr Shymanskyy 3:31e4b850b126 185 #define BLYNK_USE_128_VPINS
vshymanskyy 0:58b20b438383 186 #elif defined(ARDUINO_AVR_ADK)
vshymanskyy 0:58b20b438383 187 #define BLYNK_INFO_DEVICE "Arduino Mega ADK"
Volodymyr Shymanskyy 3:31e4b850b126 188 #define BLYNK_USE_128_VPINS
vshymanskyy 0:58b20b438383 189 #elif defined(ARDUINO_AVR_LEONARDO)
vshymanskyy 0:58b20b438383 190 #define BLYNK_INFO_DEVICE "Arduino Leonardo"
vshymanskyy 0:58b20b438383 191 #elif defined(ARDUINO_AVR_MICRO)
vshymanskyy 0:58b20b438383 192 #define BLYNK_INFO_DEVICE "Arduino Micro"
vshymanskyy 0:58b20b438383 193 #elif defined(ARDUINO_AVR_ESPLORA)
vshymanskyy 0:58b20b438383 194 #define BLYNK_INFO_DEVICE "Arduino Esplora"
vshymanskyy 0:58b20b438383 195 #elif defined(ARDUINO_AVR_LILYPAD)
vshymanskyy 0:58b20b438383 196 #define BLYNK_INFO_DEVICE "Lilypad"
vshymanskyy 0:58b20b438383 197 #elif defined(ARDUINO_AVR_LILYPAD_USB)
vshymanskyy 0:58b20b438383 198 #define BLYNK_INFO_DEVICE "Lilypad USB"
vshymanskyy 0:58b20b438383 199 #elif defined(ARDUINO_AVR_ROBOT_MOTOR)
vshymanskyy 0:58b20b438383 200 #define BLYNK_INFO_DEVICE "Robot Motor"
vshymanskyy 0:58b20b438383 201 #elif defined(ARDUINO_AVR_ROBOT_CONTROL)
vshymanskyy 0:58b20b438383 202 #define BLYNK_INFO_DEVICE "Robot Control"
vshymanskyy 0:58b20b438383 203
vshymanskyy 0:58b20b438383 204 /* Arduino SAM/SAMD */
vshymanskyy 0:58b20b438383 205 #elif defined(ARDUINO_SAM_DUE)
vshymanskyy 0:58b20b438383 206 #define BLYNK_INFO_DEVICE "Arduino Due"
Volodymyr Shymanskyy 3:31e4b850b126 207 #define BLYNK_USE_128_VPINS
vshymanskyy 0:58b20b438383 208 #elif defined(ARDUINO_SAMD_ZERO)
vshymanskyy 0:58b20b438383 209 #define BLYNK_INFO_DEVICE "Arduino Zero"
Volodymyr Shymanskyy 3:31e4b850b126 210 #define BLYNK_USE_128_VPINS
vshymanskyy 0:58b20b438383 211 #elif defined(ARDUINO_SAMD_MKR1000)
vshymanskyy 0:58b20b438383 212 #define BLYNK_INFO_DEVICE "Arduino MKR1000"
Volodymyr Shymanskyy 3:31e4b850b126 213 #define BLYNK_USE_128_VPINS
vshymanskyy 0:58b20b438383 214
vshymanskyy 0:58b20b438383 215 /* Intel */
vshymanskyy 0:58b20b438383 216 #elif defined(ARDUINO_GALILEO)
vshymanskyy 0:58b20b438383 217 #define BLYNK_INFO_DEVICE "Galileo"
Volodymyr Shymanskyy 3:31e4b850b126 218 #define BLYNK_USE_128_VPINS
vshymanskyy 0:58b20b438383 219 #elif defined(ARDUINO_GALILEOGEN2)
vshymanskyy 0:58b20b438383 220 #define BLYNK_INFO_DEVICE "Galileo Gen2"
Volodymyr Shymanskyy 3:31e4b850b126 221 #define BLYNK_USE_128_VPINS
vshymanskyy 0:58b20b438383 222 #elif defined(ARDUINO_EDISON)
vshymanskyy 0:58b20b438383 223 #define BLYNK_INFO_DEVICE "Edison"
Volodymyr Shymanskyy 3:31e4b850b126 224 #define BLYNK_USE_128_VPINS
Volodymyr Shymanskyy 3:31e4b850b126 225 #elif defined(ARDUINO_ARCH_ARC32)
vshymanskyy 0:58b20b438383 226 #define BLYNK_INFO_DEVICE "Arduino 101"
Volodymyr Shymanskyy 3:31e4b850b126 227 #define BLYNK_USE_128_VPINS
vshymanskyy 0:58b20b438383 228
vshymanskyy 0:58b20b438383 229 /* Konekt */
vshymanskyy 0:58b20b438383 230 #elif defined(ARDUINO_DASH)
vshymanskyy 0:58b20b438383 231 #define BLYNK_INFO_DEVICE "Dash"
vshymanskyy 0:58b20b438383 232 #elif defined(ARDUINO_DASHPRO)
vshymanskyy 0:58b20b438383 233 #define BLYNK_INFO_DEVICE "Dash Pro"
vshymanskyy 0:58b20b438383 234
vshymanskyy 0:58b20b438383 235 /* Red Bear Lab */
vshymanskyy 0:58b20b438383 236 #elif defined(ARDUINO_RedBear_Duo)
vshymanskyy 0:58b20b438383 237 #define BLYNK_INFO_DEVICE "RedBear Duo"
Volodymyr Shymanskyy 3:31e4b850b126 238 #define BLYNK_USE_128_VPINS
vshymanskyy 0:58b20b438383 239 #elif defined(ARDUINO_BLEND)
vshymanskyy 0:58b20b438383 240 #define BLYNK_INFO_DEVICE "Blend"
vshymanskyy 0:58b20b438383 241 #elif defined(ARDUINO_BLEND_MICRO_8MHZ) || defined(ARDUINO_BLEND_MICRO_16MHZ)
vshymanskyy 0:58b20b438383 242 #define BLYNK_INFO_DEVICE "Blend Micro"
vshymanskyy 0:58b20b438383 243 #elif defined(ARDUINO_RBL_nRF51822)
vshymanskyy 0:58b20b438383 244 #define BLYNK_INFO_DEVICE "BLE Nano"
vshymanskyy 0:58b20b438383 245
vshymanskyy 0:58b20b438383 246 /* ESP8266 */
vshymanskyy 0:58b20b438383 247 #elif defined(ARDUINO_ESP8266_ESP01)
vshymanskyy 0:58b20b438383 248 #define BLYNK_INFO_DEVICE "ESP8266"
vshymanskyy 0:58b20b438383 249 #elif defined(ARDUINO_ESP8266_ESP12)
vshymanskyy 0:58b20b438383 250 #define BLYNK_INFO_DEVICE "ESP-12"
vshymanskyy 0:58b20b438383 251 #elif defined(ARDUINO_ESP8266_NODEMCU)
vshymanskyy 0:58b20b438383 252 #define BLYNK_INFO_DEVICE "NodeMCU"
vshymanskyy 0:58b20b438383 253 #elif defined(ARDUINO_ESP8266_THING)
vshymanskyy 0:58b20b438383 254 #define BLYNK_INFO_DEVICE "Esp Thing"
vshymanskyy 0:58b20b438383 255 #elif defined(ARDUINO_ESP8266_THING_DEV)
vshymanskyy 0:58b20b438383 256 #define BLYNK_INFO_DEVICE "Esp Thing Dev"
vshymanskyy 0:58b20b438383 257
Volodymyr Shymanskyy 7:8879692d4e6c 258 /* ESP32 */
Volodymyr Shymanskyy 7:8879692d4e6c 259 #elif defined(ARDUINO_ESP32_DEV)
Volodymyr Shymanskyy 7:8879692d4e6c 260 #define BLYNK_INFO_DEVICE "ESP32"
Volodymyr Shymanskyy 7:8879692d4e6c 261
vshymanskyy 0:58b20b438383 262 /* Digistump */
vshymanskyy 0:58b20b438383 263 #elif defined(ARDUINO_ESP8266_OAK)
vshymanskyy 0:58b20b438383 264 #define BLYNK_INFO_DEVICE "Oak"
Volodymyr Shymanskyy 3:31e4b850b126 265 #define BLYNK_USE_128_VPINS
vshymanskyy 0:58b20b438383 266 #elif defined(ARDUINO_AVR_DIGISPARK)
vshymanskyy 0:58b20b438383 267 #define BLYNK_INFO_DEVICE "Digispark"
Volodymyr Shymanskyy 3:31e4b850b126 268 #define BLYNK_NO_YIELD
vshymanskyy 0:58b20b438383 269 #elif defined(ARDUINO_AVR_DIGISPARKPRO)
vshymanskyy 0:58b20b438383 270 #define BLYNK_INFO_DEVICE "Digispark Pro"
Volodymyr Shymanskyy 3:31e4b850b126 271 #define BLYNK_NO_YIELD
vshymanskyy 0:58b20b438383 272
vshymanskyy 0:58b20b438383 273 /* Microduino */
vshymanskyy 0:58b20b438383 274 #elif defined(ARDUINO_AVR_USB)
vshymanskyy 0:58b20b438383 275 #define BLYNK_INFO_DEVICE "CoreUSB"
vshymanskyy 0:58b20b438383 276 #elif defined(ARDUINO_AVR_PLUS)
vshymanskyy 0:58b20b438383 277 #define BLYNK_INFO_DEVICE "Core+"
vshymanskyy 0:58b20b438383 278 #elif defined(ARDUINO_AVR_RF)
vshymanskyy 0:58b20b438383 279 #define BLYNK_INFO_DEVICE "CoreRF"
vshymanskyy 0:58b20b438383 280
vshymanskyy 0:58b20b438383 281 /* Wildfire */
vshymanskyy 0:58b20b438383 282 #elif defined(ARDUINO_WILDFIRE_V2)
vshymanskyy 0:58b20b438383 283 #define BLYNK_INFO_DEVICE "Wildfire V2"
Volodymyr Shymanskyy 3:31e4b850b126 284 #define BLYNK_USE_128_VPINS
vshymanskyy 0:58b20b438383 285 #elif defined(ARDUINO_WILDFIRE_V3)
vshymanskyy 0:58b20b438383 286 #define BLYNK_INFO_DEVICE "Wildfire V3"
Volodymyr Shymanskyy 3:31e4b850b126 287 #define BLYNK_USE_128_VPINS
vshymanskyy 0:58b20b438383 288 #elif defined(ARDUINO_WILDFIRE_V4)
vshymanskyy 0:58b20b438383 289 #define BLYNK_INFO_DEVICE "Wildfire V4"
Volodymyr Shymanskyy 3:31e4b850b126 290 #define BLYNK_USE_128_VPINS
vshymanskyy 0:58b20b438383 291
vshymanskyy 0:58b20b438383 292 /* Simblee */
Volodymyr Shymanskyy 3:31e4b850b126 293 #elif defined(__Simblee__)
vshymanskyy 0:58b20b438383 294 #define BLYNK_INFO_DEVICE "Simblee"
Volodymyr Shymanskyy 3:31e4b850b126 295 #define BLYNK_USE_128_VPINS
vshymanskyy 0:58b20b438383 296
vshymanskyy 0:58b20b438383 297 #else
vshymanskyy 0:58b20b438383 298 #warning "Cannot detect board type"
vshymanskyy 0:58b20b438383 299 #define BLYNK_INFO_DEVICE "Arduino"
vshymanskyy 0:58b20b438383 300 #endif
vshymanskyy 0:58b20b438383 301
Volodymyr Shymanskyy 7:8879692d4e6c 302 #endif
Volodymyr Shymanskyy 7:8879692d4e6c 303
Volodymyr Shymanskyy 7:8879692d4e6c 304 #ifdef BLYNK_DEBUG
Volodymyr Shymanskyy 7:8879692d4e6c 305 #pragma message ("BLYNK_INFO_DEVICE=" BLYNK_INFO_DEVICE)
Volodymyr Shymanskyy 7:8879692d4e6c 306 #pragma message ("BLYNK_INFO_CPU=" BLYNK_INFO_CPU)
Volodymyr Shymanskyy 7:8879692d4e6c 307 #endif
Volodymyr Shymanskyy 7:8879692d4e6c 308
vshymanskyy 0:58b20b438383 309 #endif
vshymanskyy 0:58b20b438383 310
vshymanskyy 0:58b20b438383 311 #endif