This commit is contained in:
2025-02-08 16:24:54 +08:00
parent 54f8d644d0
commit e4de9a439b
8 changed files with 210 additions and 119 deletions

View File

@ -0,0 +1,33 @@
#ifndef TJC_SHOW_H
#define TJC_SHOW_H
#include <Arduino.h>
#include "BH1750.h"
#include "DS18B20.h"
#include "MCP45HVX1.h"
#include "INA226.h"
#include <WiFi.h>
#include "RunTime.h"
//陶晶池串口屏
#define TJC Serial1
#define TJC_TX_Pin 42
#define TJC_RX_Pin 41
class TJC_Show {
public:
TJC_Show(HardwareSerial& serial, DS18B20& sensor, BH1750& bh1750_a, BH1750& bh1750_b, MCP45HVX1& digiPot, INA226& INA);
void TJC_Show_Init();
void showQR();
void showINFO(unsigned long activeDuration);
private:
HardwareSerial& _serial;
DS18B20& _sensor;
BH1750& _bh1750_a;
BH1750& _bh1750_b;
MCP45HVX1& _digiPot;
INA226& _INA;
};
#endif // TJC_SHOW_H