Skip to content

Instantly share code, notes, and snippets.

View Lindany's full-sized avatar
🏠
Working from home

Lindani Ricardo Mabaso Lindany

🏠
Working from home
View GitHub Profile
#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:
@Lindany
Lindany / ESP_Blynk_RGB_LED_demo.ino
Created July 8, 2021 17:24 — forked from achton/ESP_Blynk_RGB_LED_demo.ino
This is a quick example of a NodeMCU ESP8266 connected to a WS2812 RGB LED. It uses the Blynk.cc Android app and the corresponding Blynk Iibrary to allow the LED to be controlled via a smartphone. It also uses the FastLED library to interface with the WS2812 RGB LED. See the demo video here: https://www.youtube.com/watch?v=Bb_ayiVslMg&start=0&au…
#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