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

Handle the input (and other things) in ISRs #3

Open
azihassan opened this issue Nov 4, 2016 · 0 comments
Open

Handle the input (and other things) in ISRs #3

azihassan opened this issue Nov 4, 2016 · 0 comments

Comments

@azihassan
Copy link
Owner

The input-handling code is rather short. For some reason my spidey sense tells me I should make it interrupt-driven instead of polling the pins in the main loop. Ideally I would like to place most of the main loop's code in interrupts and let the MCU rest in-between. tick() only needs to be called every second. The only remaining problem is the rendering itself. The render() function is called every 8 milliseconds but I have to call it five times in a row in order for the multiplexing illusion to work, not sure if it's suitable for an interrupt.

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

1 participant