zczcyc0201 / crabpixelclock Goto Github PK
View Code? Open in Web Editor NEW蟹蟹你像素时钟
蟹蟹你像素时钟
你好,我在编译的时候报如下错误,可以指导下怎么解决吗?
In file included from sketch\FuncDHT11.cpp:1:0:
FuncDHT11.h:9:17: error: 'D1' was not declared in this scope
DHT dht=DHT(D1, DHT11);
^
In file included from sketch\DisplayManager.h:3:0,
from sketch\DisplayManager.cpp:1:
FuncDHT11.h:9:17: error: 'D1' was not declared in this scope
DHT dht=DHT(D1, DHT11);
^
In file included from sketch\DisplayManager.h:3:0,
from D:\CrabPixelClock\CrabPixelClock.ino:1:
FuncDHT11.h:9:17: error: 'D1' was not declared in this scope
DHT dht=DHT(D1, DHT11);
^
exit status 1
CrabPixelClock:15:24: error: 'D2' was not declared in this scope
#define PIN_RTC_CE_RST D2 //DS1302 PIN
^
D:\CrabPixelClock\CrabPixelClock.ino:33:12: note: in expansion of macro 'PIN_RTC_CE_RST'
DS1302 rtc(PIN_RTC_CE_RST, PIN_RTC_DAT_IO, PIN_RTC_CLK);
^
CrabPixelClock:16:24: error: 'D3' was not declared in this scope
#define PIN_RTC_DAT_IO D3 //DS1302 PIN
^
D:\CrabPixelClock\CrabPixelClock.ino:33:28: note: in expansion of macro 'PIN_RTC_DAT_IO'
DS1302 rtc(PIN_RTC_CE_RST, PIN_RTC_DAT_IO, PIN_RTC_CLK);
^
CrabPixelClock:17:21: error: 'D4' was not declared in this scope
#define PIN_RTC_CLK D4 //DS1302 PIN
^
D:\CrabPixelClock\CrabPixelClock.ino:33:44: note: in expansion of macro 'PIN_RTC_CLK'
DS1302 rtc(PIN_RTC_CE_RST, PIN_RTC_DAT_IO, PIN_RTC_CLK);
^
CrabPixelClock:14:17: error: 'D5' was not declared in this scope
#define PIN_LED D5 //定义LED数据使用的PIN
^
D:\CrabPixelClock\CrabPixelClock.ino:44:65: note: in expansion of macro 'PIN_LED'
FuncNeoPixelMatrix funcMatrix = FuncNeoPixelMatrix(32, 8, 1, 1, PIN_LED,
^
CrabPixelClock:18:20: error: 'D8' was not declared in this scope
#define BUTTON_PIN D8 //按钮的gpio接口
^
D:\CrabPixelClock\CrabPixelClock.ino:60:30: note: in expansion of macro 'BUTTON_PIN'
OneButton oneBtn = OneButton(BUTTON_PIN, true, true);
^
'D1' was not declared in this scope
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.