14 Commits
Author SHA1 Message Date
Rick McCaskill 1c3ee016e1 Fix _irq_handler
I'm working on a project that has 3 rotary encoders. When I used this libary, I couldn't get the 3 switches to properly increment / decrement the steps when I called readAbs().
Looking back at the code, I see there was a change in 351cd82 which seemed to have caused the issue.

If I look previous to 351cd82, the _irq_handler was using digitalRead. I think switching to bitRead caused a mix up between the physical pin number vs. the port pin? I'm not entirely sure.
I reimplemented the pre 351cd82 code and used the new ada_callback. Seems to be working great now!
2023-09-21 12:03:26 -03:00
hathach 577b2039b2 refactor ada_callback, detect isr using cortex ICSR
remove ada_callback_FromISR()
2019-06-07 10:23:38 +07:00
hathach e13922c58b enhance ada_callback, add malloc len for cleaner usage 2019-02-14 12:50:17 +07:00
hathach 4640481d02 update Copyright year to 2018 2018-07-27 16:20:36 +07:00
hathach 351cd82c14 enhance software encoder 2017-09-27 19:35:47 +07:00
hathach 6786b468a4 close #77 2017-09-15 18:19:06 +07:00
hathach 73ba032939 clean up 2017-09-15 17:58:40 +07:00
hathach b2e49f2fc9 Adacallback support fromISR call
- change Prioprity for loop() to LOW
- defer interrupt for both hw and sw encoder to ada callback
2017-09-15 17:56:24 +07:00
hathach 3db9b9150a add SW encoder callback support and example 2017-09-14 23:54:08 +07:00
hathach 5d03ea59d0 reduce max sw encoder from 8 to 4 2017-09-14 23:48:44 +07:00
hathach 2e61dab738 tested software encoder 2017-09-14 23:09:05 +07:00
hathach 2d2114cb45 update sw encoder 2017-09-14 22:36:22 +07:00
hathach 507f60e63f adding Software Encoder 2017-09-14 01:49:35 +07:00
hathach 23dca4bc75 add callback support 2017-09-14 01:09:03 +07:00