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 <BlynkGOv5.h> | |
IMAGE_DECLARE(img_bitcoin_btc_s); | |
IMAGE_DECLARE(img_bnb_bnb_s); | |
IMAGE_DECLARE(img_cardano_ada_s); | |
IMAGE_DECLARE(img_dogecoin_doge_s); | |
IMAGE_DECLARE(img_ethereum_eth_s); | |
IMAGE_DECLARE(img_solana_sol_s); | |
IMAGE_DECLARE(img_tether_usdt_s); | |
IMAGE_DECLARE(img_tron_trx_s); |
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 <BlynkGOv5.h> | |
#define DATA_SAMPLING_HZ 4 // จำนวนรับข้อมูล กี่ครั้งต่อวินาที (Hz) | |
#define CHART_CELL_WIDTH 5 // ขนาดกว้าง px ของ ช่องเล็กๆของเส้นกระดาษกราฟ | |
#define CHART_CELL_HOR_BOX_NUM 120 // จำนวนช่อง ในแนวนอนทั้งหมด (แทน 120 วินาที) | |
#define CHART_CELL_VER_BOX_NUM 80 // จำนวนช่อง ในแนวตั้งทั้งหมด | |
#define CHART_Y_MIN -200 | |
#define CHART_Y_MAX 200 |
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
/* | |
* ตัวอย่าง Open-Meteo API: | |
* https://api.open-meteo.com/v1/forecast?latitude=13.7563&longitude=100.5018¤t=temperature_2m,relative_humidity_2m,apparent_temperature,rain,cloud_cover,surface_pressure,wind_speed_10m,wind_direction_10m&hourly=temperature_2m,relative_humidity_2m,apparent_temperature,rain,wind_speed_10m,wind_direction_10m&timezone=Asia%2FBangkok&forecast_days=1 | |
* | |
* หมายเหตุ: | |
* 1. ปรับแต่ง API ได้ที่: https://open-meteo.com/en/docs | |
* เพื่อเพิ่มข้อมูลพยากรณ์อากาศที่ต้องการ | |
* | |
* 2. เปลี่ยน: | |
* latitude=13.7563&longitude=100.5018 |
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
/** เล่นเสียง mp3 จาก sd หรือจากบน web ใช้ได้ทั้ง BeeNeXT5.0, BeeNeXT7.0 */ | |
#include <BlynkGOv3.h> | |
#include <Audio.h> // ลงไลบรารี่ ESP32-audioI2S จากไลบรารี่เมเนเจอร์เพิ่ม | |
#define I2S_DOUT 17 | |
#define I2S_BCLK 0 | |
#define I2S_LRC 18 | |
extern GWiFiManager wifi_manager; |
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 <BlynkGOv3.h> | |
GPage page_cb; | |
GCheckBox cb[85]; | |
GContainer cont_btn; | |
GButton btn[4]; | |
String btn_str[4] = {"เปิดหมด", "ปิดหมด", "OFF", "เพลง"}; | |
GContainer cont_btn2; |
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 <BlynkGOv3.h> | |
// ตัวแบต | |
GBar bar_batt; | |
void setup() | |
{ | |
Serial.begin(9600); Serial.println(); | |
BlynkGO.begin(); |
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
/*************************************************** | |
* | |
* BlynkGO's WiFi WPA2 Connection | |
* | |
***************************************************/ | |
#include <WiFi.h> | |
#if ESP_IDF_VERSION_MAJOR == 4 | |
#include "esp_wpa2.h" |
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 <BlynkGOv3.h> | |
#include <queue> | |
IMG_DECLARE(img_cocktail_mixer2); | |
GImage cocktail(img_cocktail_mixer2); | |
GContainer cont_btn(cocktail); | |
GRect btn[5]; | |
GLabel lb_btn[5]; |
NewerOlder