Skip to content

Compile errors in MultipleButtons.ino #21

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

Closed
vazquezjm opened this issue Aug 18, 2019 · 5 comments
Closed

Compile errors in MultipleButtons.ino #21

vazquezjm opened this issue Aug 18, 2019 · 5 comments
Labels
bug Something isn't working

Comments

@vazquezjm
Copy link

HI @evert-arias !

I'm getting the following error when compiling the example MultipleButtons.ino

\Arduino\libraries\EasyButton\src\EasyButton.cpp: In member function 'void EasyButton::enableInterrupt(EasyButton::callback_t)':

\Arduino\libraries\EasyButton\src\EasyButton.cpp:174:63: error: cannot convert 'EasyButton::callback_t {aka std::function<void()>}' to 'void (*)()' for argument '2' to 'void attachInterrupt(uint8_t, void (*)(), int)'

  attachInterrupt(digitalPinToInterrupt(_pin), callback, CHANGE);

                                                               ^
exit status 1
Error compiling for board LOLIN(WEMOS) D1 R2 & mini.

This happens both in Arduino IDE v1.8.9 and PlatformIO (VSC)

@elC0mpa
Copy link
Collaborator

elC0mpa commented Aug 18, 2019

@vazquezjm thanks for inform us about this issue. We are working on it, it will be fixed in the Next release, wich will be ready soon

@evert-arias evert-arias added the bug Something isn't working label Aug 18, 2019
@evert-arias
Copy link
Owner

Hi @vazquezjm
This issue has been fixed fed0ad8 and a new release it's now available to download.
https://github.com/evert-arias/EasyButton/releases/tag/v1.1.1

We appreciate you feedback

@vazquezjm
Copy link
Author

Wow, that was super fast!

Quick note: I added the following line to my project platformio.ini in order to start using 1.1.1 as described here

lib_deps = [email protected]

Although it looks like it is trying to download 1.1.1, I get this message:

image

Is that a PlatformIO issue?

@evert-arias
Copy link
Owner

@vazquezjm
PlatformIO takes a few hours even a day to update its libraries registry.
I suggest you wait a couple of hours until the new version is available on PlatformIO.
https://platformio.org/lib/show/5741/EasyButton

@evert-arias
Copy link
Owner

This issue has been solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants