#include "DHT11control.h" #include "RTC_Module.h" #include ThreeWire myWire(4,5,2); RtcDS1302 Rtc(myWire); void setup() { // 初始化串口通信 Serial.begin(115200); // 启动DHT传感器 dht.begin(); // 启动ds1302 setupRTC(); } void loop() { //暂时留空备用,函数调用方法已转移至文档 }