This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <ESP8266WiFi.h> | |
| #include <WiFiUdp.h> | |
| void setup() { | |
| int cnt = 0; | |
| // set for STA mode | |
| WiFi.mode(WIFI_STA); | |
| // put your setup code here, to run once: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define BLYNK_PRINT Serial // Comment this out to disable prints and save space | |
| #include <ESP8266WiFi.h> | |
| #include <BlynkSimpleEsp8266.h> | |
| #include "FastLED.h" | |
| #define LED_PIN 4 // GPIO pin for RGB LEDs. | |
| #define NUM_LEDS 1 // Number of LEDs connected. | |
| #define BRIGHTNESS 64 // Default LED brightness. | |
| #define LED_TYPE WS2812 |