Giter Site home page Giter Site logo

crabpixelclock's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

crabpixelclock's Issues

Compile Failed

你好,我在编译的时候报如下错误,可以指导下怎么解决吗?
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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.