Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
vshymanskyy committed Jun 14, 2023
1 parent 0ab3962 commit 75d3d3b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 16 deletions.
6 changes: 4 additions & 2 deletions ESP32 Blinking LED/Firmware/Arduino/Blynk_ESP32_LED.ino
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
#define BLYNK_TEMPLATE_NAME "Device"
#define BLYNK_AUTH_TOKEN "YourAuthToken"

#define WIFI_SSID "YourNetworkName" // Your WiFi network name
#define WIFI_PASS "YourPassword" // Your WiFi password. Set the password to "" for open networks.
// Your WiFi credentials.
// Set password to "" for open networks.
#define WIFI_SSID "YourNetworkName"
#define WIFI_PASS "YourPassword"

#define BLYNK_PRINT Serial // Comment this out to disable serial monitor prints

Expand Down
6 changes: 4 additions & 2 deletions ESP32 CAM/Firmware/Arduino/CameraWebServer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
#define BLYNK_TEMPLATE_NAME "Device"
#define BLYNK_AUTH_TOKEN "YourAuthToken"

#define WIFI_SSID "YourNetworkName" // Your WiFi network name
#define WIFI_PASS "YourPassword" // Your WiFi password. Set the password to "" for open networks.
// Your WiFi credentials.
// Set password to "" for open networks.
#define WIFI_SSID "YourNetworkName"
#define WIFI_PASS "YourPassword"

#define BLYNK_PRINT Serial // Comment this out to disable serial monitor prints

Expand Down
14 changes: 8 additions & 6 deletions ESP32 Weather Station/Firmware/Arduino/ESP32_Weather_Station.ino
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,21 @@
#define BLYNK_TEMPLATE_NAME "Device"
#define BLYNK_AUTH_TOKEN "YourAuthToken"

#define WIFI_SSID "YourNetworkName" // Your WiFi network name
#define WIFI_PASS "YourPassword" // Your WiFi password. Set the password to "" for open networks.
// Your WiFi credentials.
// Set password to "" for open networks.
#define WIFI_SSID "YourNetworkName"
#define WIFI_PASS "YourPassword"

#define BLYNK_PRINT Serial // Comment this out to disable serial monitor prints

// Adding the required libraries
#include <Arduino.h>
#include <Wire.h>
#include <SPI.h>
#include <Adafruit_Sensor.h> //You need to add it by searching "Adafruit unified sensor" in libraries and inslall it
#include <Adafruit_BMP280.h> //You need to add it by searching "Adafruit BMP280" in libraries and inslall it
#include <BlynkSimpleEsp32.h> //You need to add it by searching "Blynk" in libraries and inslall it
#include <DHT.h> //You need to add it by searching "DHT sensor library" in libraries and inslall it
#include <Adafruit_Sensor.h> //You need to add it by searching "Adafruit unified sensor" in libraries and install it
#include <Adafruit_BMP280.h> //You need to add it by searching "Adafruit BMP280" in libraries and install it
#include <BlynkSimpleEsp32.h> //You need to add it by searching "Blynk" in libraries and install it
#include <DHT.h> //You need to add it by searching "DHT sensor library" in libraries and install it

// DHT sensor settings and configuration
#define DHT_BLYNK_VPIN_TEMPERATURE V0 //Virtual pin on Blynk side
Expand Down
14 changes: 8 additions & 6 deletions ESP32 Weather Station/Firmware/PlatformIO/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,21 @@
#define BLYNK_TEMPLATE_NAME "Device"
#define BLYNK_AUTH_TOKEN "YourAuthToken"

#define WIFI_SSID "YourNetworkName" // Your WiFi network name
#define WIFI_PASS "YourPassword" // Your WiFi password. Set the password to "" for open networks.
// Your WiFi credentials.
// Set password to "" for open networks.
#define WIFI_SSID "YourNetworkName"
#define WIFI_PASS "YourPassword"

#define BLYNK_PRINT Serial // Comment this out to disable serial monitor prints

// Adding the required libraries
#include <Arduino.h>
#include <Wire.h>
#include <SPI.h>
#include <Adafruit_Sensor.h> //You need to add it by searching "Adafruit unified sensor" in libraries and inslall it
#include <Adafruit_BMP280.h> //You need to add it by searching "Adafruit BMP280" in libraries and inslall it
#include <BlynkSimpleEsp32.h> //You need to add it by searching "Blynk" in libraries and inslall it
#include <DHT.h> //You need to add it by searching "DHT sensor library" in libraries and inslall it
#include <Adafruit_Sensor.h> //You need to add it by searching "Adafruit unified sensor" in libraries and install it
#include <Adafruit_BMP280.h> //You need to add it by searching "Adafruit BMP280" in libraries and install it
#include <BlynkSimpleEsp32.h> //You need to add it by searching "Blynk" in libraries and install it
#include <DHT.h> //You need to add it by searching "DHT sensor library" in libraries and install it

// DHT sensor settings and configuration
#define DHT_BLYNK_VPIN_TEMPERATURE V0 //Virtual pin on Blynk side
Expand Down

0 comments on commit 75d3d3b

Please sign in to comment.