-
Notifications
You must be signed in to change notification settings - Fork 13
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
Max7219, quad encoder, better modularity w.r.t. clock ISRs #4
base: master
Are you sure you want to change the base?
Conversation
The clock ISRs are functions now, also #define CLOCK_NO_ISR suppresses the generation of an ISR. This way, user code can extend the clock ISR as it needs.
Naming convention compliance.
Added a test case for the wait queue.
This was mainly done to make it easier to use arduino-- in other projects. Previously, avr-ports.h was generated depending on the MCU, now, all supported MCU port definitions are available upon checkout, which simplifies the Makefile in projects depending upon arduino-- Also reworked was the logic for the Timer0 prescaler. The Timer0 prescaler can now optionally be set in Makefile.local and the Timer::micros function should work correctly across all possible values.
(and delete-trailing-whitespace)
Add Alps encoding.
Wow, I suck. I should check this is safe to merge - I notice you removed the NullPin class, not sure if that breaks stuff? Also, why the change on the ports header? |
Ghosts from the past. The The ports header was changed to support more than just the ATMega328 - it was moved to I meant to setup a simulator based test chain to verify that the ATTiny platforms behaved as expected, but didn't get around to it. |
Hi Ben,
this adds:
The clock ISR modularity thingy works like this: if you
#define CLOCK_NO_ISR
before including the clock header, you write the ISR yourself, but get to reuse the clock16 ISR.With the quad encoder, I've used it like this:
Oh yeah, we need a quad encoder example in arduino--.