Just FYI, I'm making some progress on the timer/event stuff. I did a test in the metro with a software debounce (schedule the interrupt re-enable 5ms later) but I still had to double the vsspulses/mile and the o-scope is still broken. I do have an ISR though and will probably disable timer0 and make my own millis(), delay(), etc() because I don't want to compete with timer0 for the CPUs attention.
Cut and paste code is nice, but I have to fight with arduino sometimes. If the arduino IDE takes over the timer2 ISR I will have to say it isn't worth it and drop into AVR and figure it out from there.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
|