I have attached a sketch that im having trouble when compiling for the D1 Mini i get the error:
Arduino: 1.6.9 (Windows 10), Board: "WeMos D1 R2 & mini, 160 MHz, 921600, 4M (3M SPIFFS)"
BasicOTAFastLEDHumidMQTT:38: error: 'CRGB' does not name a type
CRGB leds[NUM_LEDS]; // Define the array of leds
^
BasicOTAFastLEDHumidMQTT:60: error: 'MQTT' does not name a type
void callback(const MQTT::Publish& pub)
^
BasicOTAFastLEDHumidMQTT:60: error: expected unqualified-id before '&' token
void callback(const MQTT::Publish& pub)
^
BasicOTAFastLEDHumidMQTT:60: error: expected ')' before '&' token
BasicOTAFastLEDHumidMQTT:60: error: expected initializer before 'pub'
void callback(const MQTT::Publish& pub)
^
BasicOTAFastLEDHumidMQTT:60: error: 'MQTT' does not name a type
void callback(const MQTT::Publish& pub)
^
BasicOTAFastLEDHumidMQTT:60: error: expected unqualified-id before '&' token
void callback(const MQTT::Publish& pub)
^
BasicOTAFastLEDHumidMQTT:60: error: expected ')' before '&' token
BasicOTAFastLEDHumidMQTT:60: error: expected initializer before 'pub'
void callback(const MQTT::Publish& pub)
^
exit status 1
'CRGB' does not name a type
BasicOTAFastLEDHumidMQTT.ino (6.25 KB)