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
23f0b09605
add tinyusb header across libraries
2021-06-02 13:26:54 +07:00
hathach
839336a1a2
add include Adafruit_TinyUSB.h to example sketches for Serial
...
also include Adafruit_TinyUSB.h in often used libraries
2021-05-07 12:32:26 +07:00
hathach
d189871fa9
fix ci build due to RotaryEncoder include
2020-09-14 23:31:55 +07: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
6d10632e93
fix pin mapping in example for feather nrf52840
2018-12-21 10:49:07 +07:00
hathach
5580249807
add while for serial connection to all examples for nrf52840 native usb
2018-10-30 00:48:45 +07:00
hathach
4640481d02
update Copyright year to 2018
2018-07-27 16:20:36 +07:00
hathach
97fef23df6
clean up
2018-01-08 13:21:57 +07:00
hathach
351cd82c14
enhance software encoder
2017-09-27 19:35:47 +07:00
hathach
8ad448ebe6
update hw encoder
2017-09-27 18:19:21 +07:00
hathach
e33fe9374c
clean up
2017-09-18 11:49:04 +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
9b71709c13
defer callback for hw encoder to ada callback
2017-09-15 17:36:42 +07:00
hathach
8a175aa815
update docs
2017-09-15 00:09:57 +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
97114cb54d
clean up
2017-09-14 22:37:33 +07:00
hathach
a51c4c7de6
more rename
2017-09-14 22:37:16 +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
09e3dc3712
more clean up
2017-09-14 01:23:39 +07:00
hathach
23dca4bc75
add callback support
2017-09-14 01:09:03 +07:00
hathach
337b683e9f
rename
2017-09-14 00:58:07 +07:00
hathach
9a1581e07b
rename
2017-09-14 00:57:49 +07:00
hathach
1530258aef
rename Qei to RotaryEncoder
2017-09-14 00:52:28 +07:00
hathach
7eb49b5476
rename to HwRotaryEncoder
2017-09-14 00:51:53 +07:00
hathach
10e72573a5
update Encoder to singleton pattern
2017-09-13 23:16:13 +07:00
hathach
9177cb48db
update rotary encoder
2017-09-13 21:38:58 +07:00
hathach
a63f53f75d
clean up
2017-09-13 21:21:03 +07:00
hathach
97ecc06347
update encoder
2017-09-13 19:05:25 +07:00
hathach
f13e3f6113
more clean up
2017-09-13 18:07:46 +07:00
hathach
1656ea6da0
complete rename
2017-09-13 18:03:01 +07:00
hathach
36f410a9e9
more rename
2017-09-13 17:57:11 +07:00