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
| const char *index_html = R"rawliteral( | |
| <!DOCTYPE html> | |
| <html lang="th"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>ระบบเรียกคิว</title> | |
| <style> | |
| * { | |
| margin: 0; |
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 <Arduino.h> | |
| #include <WiFi.h> | |
| #include <ESP32-HUB75-MatrixPanel-I2S-DMA.h> | |
| #include <ESPAsyncWebServer.h> | |
| #include "index.h" | |
| #define PANEL_RES_X 64 // Number of pixels wide of each INDIVIDUAL panel module. | |
| #define PANEL_RES_Y 32 // Number of pixels tall of each INDIVIDUAL panel module. | |
| #define PANEL_CHAIN 1 // Total number of panels chained one to another |
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 <Wire.h> | |
| #include <Adafruit_GFX.h> | |
| #include "Adafruit_LEDBackpack.h" | |
| Adafruit_7segment matrix = Adafruit_7segment(); | |
| float temperature = 25.5; | |
| void setup() { | |
| matrix.begin(0x70); |
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 <Wire.h> | |
| #include <Adafruit_GFX.h> | |
| #include "Adafruit_LEDBackpack.h" | |
| Adafruit_7segment matrix = Adafruit_7segment(); | |
| int hours = 12; | |
| int minutes = 0; | |
| int seconds = 0; |
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 <Wire.h> | |
| #include <Adafruit_GFX.h> | |
| #include "Adafruit_LEDBackpack.h" | |
| // สร้างออบเจ็กต์จอ 7-Segment | |
| Adafruit_7segment matrix = Adafruit_7segment(); | |
| void setup() { | |
| Serial.begin(9600); | |
| Serial.println("7-Segment Test"); |
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 <Arduino.h> | |
| #include <WiFi.h> | |
| #include <WiFiMulti.h> | |
| #include <Wire.h> | |
| #include <time.h> | |
| #include <ArtronShop_RX8130CE.h> | |
| #include <ESP32-HUB75-MatrixPanel-I2S-DMA.h> | |
| #define PANEL_RES_X 64 // Number of pixels wide of each INDIVIDUAL panel module. | |
| #define PANEL_RES_Y 32 // Number of pixels tall of each INDIVIDUAL panel module. |
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 <Arduino.h> | |
| #include <WiFi.h> | |
| #include <WiFiMulti.h> | |
| #include "time.h" | |
| #include <Wire.h> | |
| #include <ESP32-HUB75-MatrixPanel-I2S-DMA.h> | |
| #define PANEL_RES_X 64 // Number of pixels wide of each INDIVIDUAL panel module. | |
| #define PANEL_RES_Y 32 // Number of pixels tall of each INDIVIDUAL panel module. | |
| #define PANEL_CHAIN 1 // Total number of panels chained one to another |
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
| /* | |
| * Adafruit MCP2515 FeatherWing CAN Sender Example | |
| */ | |
| #include <Adafruit_MCP2515.h> | |
| #define CS_PIN 10 | |
| #define CAN_BAUDRATE (250000) | |
| Adafruit_MCP2515 mcp(CS_PIN); |
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> | |
| #define RS485_RX_PIN (27) | |
| #define RS485_TX_PIN (26) | |
| ModbusMaster sensor; | |
| void setup() { | |
| Serial.begin(115200); |
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 <Arduino.h> | |
| #include <WiFi.h> | |
| #include <TinkerC6.h> | |
| #include <ModbusMaster.h> | |
| #include <PubSubClient.h> | |
| #include "esp_pm.h" | |
| #include "esp_wifi.h" | |
| #include "driver/uart.h" | |
| #include "soc/uart_struct.h" |
NewerOlder