找的网上的例子,运行时候第一句就卡了,这句应该是设定接口的引脚。为啥?
TM1638 module1(8, 7, 9);
错误信息:
……
C:\Users\zhifeiyupeipei\Documents\Arduino\libraries\TM1638/TM1638.h:72:5: note: TM1638::TM1638()
TM1638();
^
C:\Users\zhifeiyupeipei\Documents\Arduino\libraries\TM1638/TM1638.h:72:5: note: candidate expects 0 arguments, 3 provided
C:\Users\zhifeiyupeipei\Documents\Arduino\libraries\TM1638/TM1638.h:67:7: note: TM1638::TM1638(const TM1638&)
class TM1638
^
C:\Users\zhifeiyupeipei\Documents\Arduino\libraries\TM1638/TM1638.h:67:7: note: candidate expects 1 argument, 3 provided
iracingsli_voor2:4: error: no matching function for call to 'TM1638::TM1638(int, int, int)'
iracingsli_voor2.ino:4:23: note: candidates are:
In file included from iracingsli_voor2.ino:1:0:
C:\Users\zhifeiyupeipei\Documents\Arduino\libraries\TM1638/TM1638.h:72:5: note: TM1638::TM1638()
TM1638();
^
C:\Users\zhifeiyupeipei\Documents\Arduino\libraries\TM1638/TM1638.h:72:5: note: candidate expects 0 arguments, 3 provided
C:\Users\zhifeiyupeipei\Documents\Arduino\libraries\TM1638/TM1638.h:67:7: note: TM1638::TM1638(const TM1638&)
class TM1638
^
C:\Users\zhifeiyupeipei\Documents\Arduino\libraries\TM1638/TM1638.h:67:7: note: candidate expects 1 argument, 3 provided
iracingsli_voor2.ino: In function 'void loop()':
iracingsli_voor2:46: error: 'class TM1638' has no member named 'clearDisplay'
iracingsli_voor2:47: error: 'class TM1638' has no member named 'clearDisplay'
iracingsli_voor2:51: error: 'class TM1638' has no member named 'setDisplayToString'
iracingsli_voor2:54: error: 'class TM1638' has no member named 'setDisplayToString'
iracingsli_voor2:57: error: 'class TM1638' has no member named 'setDisplayToString'
iracingsli_voor2:70: error: 'class TM1638' has no member named 'setDisplayToString'
iracingsli_voor2:72: error: 'class TM1638' has no member named 'setDisplayToString'
iracingsli_voor2:74: error: 'class TM1638' has no member named 'setDisplayToString'
iracingsli_voor2:77: error: 'class TM1638' has no member named 'clearDisplayDigit'
iracingsli_voor2:78: error: 'class TM1638' has no member named 'setDisplayToString'
iracingsli_voor2:81: error: 'class TM1638' has no member named 'setDisplayToDecNumber'
iracingsli_voor2:85: error: 'class TM1638' has no member named 'setDisplayToString'
iracingsli_voor2:91: error: 'class TM1638' has no member named 'clearDisplay'
iracingsli_voor2:99: error: no matching function for call to 'TM1638::setLEDs(int)'
iracingsli_voor2.ino:99:47: note: candidate is:
In file included from iracingsli_voor2.ino:1:0:
C:\Users\zhifeiyupeipei\Documents\Arduino\libraries\TM1638/TM1638.h:123:10: note: void TM1638::setLEDs(uint8_t, uint8_t)
void setLEDs(uint8_t green, uint8_t red);
^
C:\Users\zhifeiyupeipei\Documents\Arduino\libraries\TM1638/TM1638.h:123:10: note: candidate expects 2 arguments, 1 provided
iracingsli_voor2:102: error: no matching function for call to 'TM1638::setLEDs(word&)'
iracingsli_voor2.ino:102:52: note: candidate is:
In file included from iracingsli_voor2.ino:1:0:
C:\Users\zhifeiyupeipei\Documents\Arduino\libraries\TM1638/TM1638.h:123:10: note: void TM1638::setLEDs(uint8_t, uint8_t)
void setLEDs(uint8_t green, uint8_t red);
^
C:\Users\zhifeiyupeipei\Documents\Arduino\libraries\TM1638/TM1638.h:123:10: note: candidate expects 2 arguments, 1 provided
iracingsli_voor2:108: error: no matching function for call to 'TM1638::setLEDs(word&)'
iracingsli_voor2.ino:108:44: note: candidate is:
In file included from iracingsli_voor2.ino:1:0:
C:\Users\zhifeiyupeipei\Documents\Arduino\libraries\TM1638/TM1638.h:123:10: note: void TM1638::setLEDs(uint8_t, uint8_t)
void setLEDs(uint8_t green, uint8_t red);
^
C:\Users\zhifeiyupeipei\Documents\Arduino\libraries\TM1638/TM1638.h:123:10: note: candidate expects 2 arguments, 1 provided
iracingsli_voor2:113: error: no matching function for call to 'TM1638::setLEDs(int)'
iracingsli_voor2.ino:113:43: note: candidate is:
In file included from iracingsli_voor2.ino:1:0:
C:\Users\zhifeiyupeipei\Documents\Arduino\libraries\TM1638/TM1638.h:123:10: note: void TM1638::setLEDs(uint8_t, uint8_t)
void setLEDs(uint8_t green, uint8_t red);
^
C:\Users\zhifeiyupeipei\Documents\Arduino\libraries\TM1638/TM1638.h:123:10: note: candidate expects 2 arguments, 1 provided
iracingsli_voor2:116: error: no matching function for call to 'TM1638::setLEDs(unsigned int)'
iracingsli_voor2.ino:116:43: note: candidate is:
In file included from iracingsli_voor2.ino:1:0:
C:\Users\zhifeiyupeipei\Documents\Arduino\libraries\TM1638/TM1638.h:123:10: note: void TM1638::setLEDs(uint8_t, uint8_t)
void setLEDs(uint8_t green, uint8_t red);
^
C:\Users\zhifeiyupeipei\Documents\Arduino\libraries\TM1638/TM1638.h:123:10: note: candidate expects 2 arguments, 1 provided
Multiple libraries were found for "TM1638.h"
Used: C:\Users\zhifeiyupeipei\Documents\Arduino\libraries\TM1638
Not used: D:\Program Files (x86)\mBlock\Arduino\libraries\TM1638
no matching function for call to 'TM1638::TM1638(int, int, int)'