A code for making a Wireless LED using Arduino & Blynk
C/C++
How to download Libraries, follow the tutorials in the coding
// Make sure to Download Blynk & Adruino// Make sure you have internet in your WiFi/Hotspot// You must to download the Library first#include<ESP8266WiFi.h> // Download this Library at Tools > Board manager > Download esp8266#include<BlynkSimpleEsp8266.h> // Download this Library at Sketch > Include Library > Manage Libraries > Download Blynk#define BLYNK_PRINT Serialcharauth[]="YourToken";// This is your Token (Get it on your Blynk Apps)charssid[]="Example";// This is your WiFi name (No space area Ex: Naufal 123)charpswd[]="Example123";// This is your Password WiFivoidsetup(){Serial.begin(9600);Blynk.begin(auth,ssid,pswd);}voidloop(){Blynk.run();}// Verify it and then Upload it// Done
Comments
Please log in or sign up to comment.