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

rename ISR function, add digitalPinToInterrupt #26

Merged
merged 1 commit into from
Apr 25, 2019

Conversation

Jodaille
Copy link
Contributor

I have a compilation error using ISR as function name, it works begining with lower case.
The error was:
Read_1x_load_cell_interrupt_driven:53:6: error: expected ')' before 'void'
exit status 1
'ISR' was not declared in this scope

I have added the use of digitalPinToInterrupt() (cf: https://www.arduino.cc/reference/en/language/functions/external-interrupts/attachinterrupt/)
attachInterrupt take the number of interrupt, it was the pin number in the example.

@olkal olkal merged commit 6247648 into olkal:master Apr 25, 2019
@olkal
Copy link
Owner

olkal commented Apr 25, 2019

Okay, 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

Successfully merging this pull request may close these issues.

2 participants