Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error compiling the provided example script #6

Closed
juergen-venne opened this issue Sep 7, 2020 · 10 comments
Closed

Error compiling the provided example script #6

juergen-venne opened this issue Sep 7, 2020 · 10 comments

Comments

@juergen-venne
Copy link

I get this error compiling the default script:
What do I have to do to get rid of that message?

Users/jv/Documents/Arduino/libraries/TM1637_Driver/src/TM1637.cpp: In member function 'const Animator& TM1637::refresh() const':
/Users/jv/Documents/Arduino/libraries/TM1637_Driver/src/TM1637.cpp:53:103: error: call of overloaded 'sendToDisplay(uint8_t* const&, const uint8_t&)' is ambiguous
     sendToDisplay<DataCommand_e::AUTOMATIC_ADDRESS_ADDING, AddressCommand_e::C0H>(buffer_, bufferSize_);
                                                                                                       ^
/Users/jv/Documents/Arduino/libraries/TM1637_Driver/src/TM1637.cpp:53:103: note: candidates are:
In file included from /Users/jv/Documents/Arduino/libraries/TM1637_Driver/src/TM1637.cpp:1:0:
/Users/jv/Documents/Arduino/libraries/TM1637_Driver/src/TM1637.h:173:10: note: void TM1637::sendToDisplay(uint8_t*, uint8_t) const [with TM1637::DataCommand_e dataCommand = (TM1637::DataCommand_e)64u; TM1637::AddressCommand_e addressCommand = (TM1637::AddressCommand_e)192u; uint8_t = unsigned char]
     void sendToDisplay(uint8_t* values, uint8_t size) const noexcept
          ^
/Users/jv/Documents/Arduino/libraries/TM1637_Driver/src/TM1637.h:192:10: note: void TM1637::sendToDisplay(Ts ...) const [with TM1637::DataCommand_e dataCommand = (TM1637::DataCommand_e)64u; TM1637::AddressCommand_e addressCommand = (TM1637::AddressCommand_e)192u; Ts = {unsigned char*, unsigned char}]
     void sendToDisplay(Ts ... values) const noexcept
          ^
exit status 1
Fehler beim Kompilieren für das Board NodeMCU 1.0 (ESP-12E Module).
@jcmadrioso
Copy link
Contributor

I'm obtaining that error, too. Since your questiong is from Sep 7, and nobody has answered, I guess this project is abandoned. Desinstalling this library right now.

@AKJ7
Copy link
Owner

AKJ7 commented Dec 29, 2020

Oops forgot. I will look into it. Thanks for the comment.

@AKJ7
Copy link
Owner

AKJ7 commented Dec 29, 2020

@jcmadrioso For which platform are you compiling it?

@jcmadrioso
Copy link
Contributor

ESP8266

@AKJ7
Copy link
Owner

AKJ7 commented Dec 30, 2020

Solved. However the display doesn't work with 3.3V board like the ESP32 and ESP8266. It expects 5V at the DIO and CLK pins. Sending 3.3 simply doesn't turn the pins on. The solution is to interface the 3.3V to 5V.

@AKJ7 AKJ7 closed this as completed Dec 30, 2020
@jcmadrioso
Copy link
Contributor

Thank you.
But, acording to TM1637 datasheet, the chip works with 3.3V - 5V. In fact, I have used it with ESP8266, ESP32 and RaspberryPi, all of them interfacing at 3.3V, and it works.
I don't know why you say that it needs 5V (see the datasheet).
Best regards.

@AKJ7
Copy link
Owner

AKJ7 commented Dec 30, 2020

What? I tested it on my ESP32 and it wasn't working. Can you update the library and test it?

@jcmadrioso
Copy link
Contributor

I can confirm that your library is compiling and working now. I have tested clock.ino example with ESP8266 and it works perfectly, interfacing at 3.3V.
I will try with ESP32.

@jcmadrioso
Copy link
Contributor

Yes, working too with ESP32 (ESP-WROOM-32)
Maybe you have an issue with some capacitors in the tm1637 board. Try with a longer bitdelay.

@AKJ7
Copy link
Owner

AKJ7 commented Dec 31, 2020

Ok. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants