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

External interrupts on a Pin doesn't report the line number in callback #4062

Closed
rhubarbdog opened this issue Aug 18, 2018 · 2 comments
Closed

Comments

@rhubarbdog
Copy link
Contributor

I'm following the documentation at http://docs.micropython.org/en/v1.9.3/pyboard/library/pyb.ExtInt.html
It states that the callback registered by pyb.ExtInt has one parameter line number. I wrote a little proof of concept program wondering if the line number reported would be that of the pyb.ExtInt command or somewhere later in a while loop that the program waits for input.

@robert-hh
Copy link
Contributor

Are you expecting the python source line number? As far as I understand, the documentation talks about the port line number which causes the interrupt.

@rhubarbdog
Copy link
Contributor Author

my bad, yes i was expecting a source code line number, but now i've read the docs again it is the port line

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

No branches or pull requests

3 participants