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
void setup() { | |
pinMode(LED_BUILTIN, OUTPUT); | |
} | |
void loop() { | |
analogWrite(LED_BUILTIN, 0); | |
delay(2000); | |
analogWrite(LED_BUILTIN, 64); | |
delay(2000); | |
analogWrite(LED_BUILTIN, 127); |
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
#define RX_PIN (26) // กำหนดขาต่อ RX VC-02-Kit | |
#define TX_PIN (27) // กำหนดขาต่อ TX VC-02-Kit | |
#define LED_PIN (5) // กำหนดขาต่อ LED | |
void setup() { | |
pinMode(LED_PIN, OUTPUT); // กำหนดขา LED เป็น Digital Output | |
digitalWrite(LED_PIN, HIGH); // กำหนดลอจิก LED เป็น HIGH (ปิด LED) | |
Serial.begin(115200); // ใช้งาน Serial Monitor |
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 <ModbusMaster.h> | |
ModbusMaster decibel; | |
void setup() { | |
Serial.begin(115200); | |
// Modbus communication runs at 9600 baud | |
Serial2.begin(9600, SERIAL_8N1, 27, 26); // IOXESP32 Modbus RTU shield |
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 "OThreadCLI.h" | |
void setup() { | |
Serial.begin(115200); | |
neopixelWrite(8, 0, 0, 0); | |
OThreadCLI.begin(false); // No AutoStart - fresh start | |
// Start Console | |
Serial.println("OpenThread CLI started - type 'help' for a list of commands."); |
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 "OThreadCLI.h" | |
#include "OThreadCLI_Util.h" | |
void setup() { | |
Serial.begin(115200); | |
pinMode(9, INPUT_PULLUP); | |
OThreadCLI.begin(false); // No AutoStart - fresh start | |
// Start Console |
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 "OThreadCLI.h" | |
#include "OThreadCLI_Util.h" | |
void setup() { | |
Serial.begin(115200); | |
OThreadCLI.begin(false); // No AutoStart - fresh start | |
// Start Console | |
Serial.println("OpenThread CLI started - type 'help' for a list of commands."); |
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 "OThreadCLI.h" | |
void setup() { | |
Serial.begin(115200); | |
OThreadCLI.begin(false); // No AutoStart - fresh start | |
// Start Console | |
Serial.println("OpenThread CLI started - type 'help' for a list of commands."); | |
OThreadCLI.startConsole(Serial); |
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
; PlatformIO Project Configuration File | |
; | |
; Build options: build flags, source filter | |
; Upload options: custom upload port, speed and extra flags | |
; Library options: dependencies, extra library storages | |
; Advanced options: extra scripting | |
; | |
; Please visit documentation for the other options and examples | |
; https://docs.platformio.org/page/projectconf.html |
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
/* | |
Rui Santos | |
Complete project details at https://RandomNerdTutorials.com/esp32-date-time-ntp-client-server-arduino/ | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files. | |
The above copyright notice and this permission notice shall be included in all | |
copies or substantial portions of the Software. | |
*/ |
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
/* | |
This sketch shows the Ethernet event usage | |
*/ | |
#include <Arduino.h> | |
#include <ATD3.5-S3.h> | |
#include <ETH.h> | |
#include <SPI.h> |