This file contains 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
function doGet(e) { | |
Logger.log(JSON.stringify(e)); | |
var result = 'Ok'; | |
if ((!e) || e.parameter == 'undefined') { | |
result = 'No Parameters'; | |
} | |
else { | |
var sheet_id = '10rTTvj3XmHhh2mrXOlFySaBB1DWFF-vXgEjziFkG56I'; // Spreadsheet ID | |
var sheet = SpreadsheetApp.openById(sheet_id).getActiveSheet(); | |
var newRow = sheet.getLastRow() + 1; |
This file contains 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
/* | |
Web client | |
This sketch connects to a website (http://www.google.com) | |
using an Arduino WIZnet Ethernet shield. | |
Circuit: | |
* Ethernet shield attached to pins 10, 11, 12, 13 | |
created 18 Dec 2009 |
This file contains 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
/* | |
* โค๊ดตัวอย่างการทดสอบการอ่านค่าเอ๊าต์พุทของเซนเซอร์วัดความชื้นในดิน Soil Stick | |
* และแปลงค่าเป็นส่วนกลับ ปรับให้อยู่ในสเกล0-10 | |
* อ่านค่าแล้วแสดงผลทุกๆ 5 วินาที | |
* ทดสอบกับบอร์ด Arduino Uno | |
* | |
* 16 April 2020 | |
* facebook fan page: เกษตรไทย IoT | |
*/ |
This file contains 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 <ATD1.47-S3.h> | |
#include <Wire.h> | |
#include <Adafruit_AMG88xx.h> | |
//low range of the sensor (this will be blue on the screen) | |
#define MINTEMP 22 | |
//high range of the sensor (this will be red on the screen) | |
#define MAXTEMP 34 |
This file contains 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 <Arduino.h> | |
#include <lvgl.h> | |
#include <ATD3.5-S3.h> | |
#include "gui/ui.h" | |
#include "driver/gpio.h" | |
#include "driver/twai.h" | |
#define CAN_TX_PIN GPIO_NUM_1 | |
#define CAN_RX_PIN GPIO_NUM_2 |
This file contains 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 <SPI.h> | |
#include <mcp2515.h> | |
MCP2515 mcp2515(10); | |
void setup() { | |
Serial.begin(115200); | |
mcp2515.reset(); | |
mcp2515.setBitrate(CAN_125KBPS, MCP_8MHZ); |
This file contains 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 <Arduino.h> | |
#include <lvgl.h> | |
#include <ATD3.5-S3.h> | |
#include "gui/ui.h" | |
#include <WiFi.h> | |
#include <PubSubClient.h> | |
#define MQTT_SERVER "mqtt.netpie.io" | |
#define MQTT_PORT 1883 | |
#define MQTT_CLIENT_ID "58dd3ff2-33e7-4203-8a83-528b65076fd9" |
This file contains 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 <ModbusMaster.h> | |
#define RS485_RX_PIN (15) | |
#define RS485_TX_PIN (17) | |
#define RS485_DIR_PIN (16) | |
ModbusMaster sensor; | |
void preTransmission() { | |
digitalWrite(RS485_DIR_PIN, HIGH); |
This file contains 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 <Arduino.h> | |
#include <lvgl.h> | |
#include <ATD3.5-S3.h> | |
#include "gui/ui.h" | |
#include <PMS.h> | |
PMS pms(Serial2); | |
PMS::DATA data; | |
bool pms_ok = false; |
This file contains 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
/* Dev by IOXhop.com */ | |
#include <WiFi.h> | |
#include <WiFiClient.h> | |
#include <WebServer.h> | |
#include <driver/i2s.h> | |
const char *ssid = ""; | |
const char *password = ""; |