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