gungoryalcin68
Published © GPL3+

NodeMCU ESP8266 + Blynk App + Joystick

NodeMCU ESP8266 + Blynk App + Joystick

BeginnerProtip17
NodeMCU ESP8266 + Blynk App + Joystick

Things used in this project

Hardware components

NodeMCU ESP8266 Breakout Board
NodeMCU ESP8266 Breakout Board
×1

Software apps and online services

Blynk
Blynk

Schematics

esp_layout_UOp1Owh5mn.png

Code

Untitled file

Arduino
/*
 * gungor 01/01/2019
*/
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

// You should get Auth Token in the Blynk App.
char auth[] = "YourToken"; //YourToken
// Your WiFi credentials.
char ssid[] = "YourNetworkName"; //YourNetworkName
char pass[] = "YourPassword"; //YourPassword

BLYNK_WRITE(V1) {
  int x = param[0].asInt();
  int y = param[1].asInt();

  // Do something with x and y
  Serial.print("X = ");
  Serial.print(x);
  Serial.print("; Y = ");
  Serial.println(y);
}

void setup() {
  Serial.begin(115200);
  Blynk.begin(auth, ssid, pass);
}

void loop() {
  Blynk.run();

}

Github

Credits

gungoryalcin68
24 projects • 8 followers
Contact

Comments

Please log in or sign up to comment.