Skip to content

SoftTimer6Rotary example #12

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
pasicemir opened this issue May 27, 2016 · 2 comments
Closed

SoftTimer6Rotary example #12

pasicemir opened this issue May 27, 2016 · 2 comments

Comments

@pasicemir
Copy link

Would it be possible to publish SoftTimer6Rotary example with changes that makes compilations possible in latest Arduino version. I tried including function declarations "void callBack(Task* me);" but I could not make it compile. Compiler comes with error message:
exit status 1
invalid conversion from 'void ()(Task)' to 'void ()(short int, Rotary)' [-fpermissive]

@prampec
Copy link
Owner

prampec commented May 27, 2016

I'm sorry to hear that this bug is still not fixed in the current version of Arduino.
Until it is not fixed, you need to declare all functions before referencing them.
E.g. in this case you put this before creating Rotary instance "r":

void onRotate(short direction, Rotary* rotary);
void onRotPushPress();
void onRotPushRelease(unsigned long pressTime);

See issue #6 , also please add comment to this issue with your Arduino version.

@prampec prampec closed this as completed May 27, 2016
@pasicemir
Copy link
Author

Thank you very much, for such a fast response.

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

2 participants