Skip to content

Instantly share code, notes, and snippets.

View icq4ever's full-sized avatar
🌏
127.0.0.1

Yi donghoon icq4ever

🌏
127.0.0.1
View GitHub Profile
@icq4ever
icq4ever / TTGOModbusDemo.ino
Last active October 18, 2022 16:33 — forked from bungernut/TTGOModbusDemo.ino
Modbus ESP32 TTGO LCD Demo
/*
The device I'm using is https://myduino.com/product/tgo-007/
Before compiling make a WPA_secrets.h file with the following two lines
const char* SECRET_SSID = "your ssid";
const char* SECRET_WIFI_PASS = "your WPA pass";
Libraries:
modbus: https://github.com/eModbus/eModbus (and it's dependencies)
display: https://github.com/Xinyuan-LilyGO/TTGO-T-Display

Node.js 로 db다루기, application 만들기

MySQL

Mysql 접속 : mysql -uroot -p

db만들기 : create database something;

const int numReadings = 10;
int readings[numReadings]; // the readings from the analog input
int readIndex = 0; // the index of the current reading
int total = 0; // the running total
int average = 0; // the average
int inputPin = A0;
int distance;