GeoffAndreychuk
New member
Hello everyone, I am trying to figure out how I can reattach the interrupt for Paul Stoffregen's encoder.h library, hopefully this request can be brought to his attention somehow since more than likely he will know since he wrote the library etc.
Background on the project. I am trying to add a second interrupt onto a pin in my sketch so that I am able to use the second interrupt to wake up my Arduino after being asleep when I turn the encoder that I am already using in my project to make various selections from user input. Ultimately I would like to NOT have to add an additional connection/button/switch etc so that I am able to get everything up and running again from sleep mode.
Currently the program I have does run (100% properly before I tried to add the sleep mode to it), however with the way it is currently written, I can attach the second interrupt to the pin, put everything to sleep, get it to wake up from sleep, etc. but then I detach the interrupts that are assigned to pin2 for the encoder, the second pin in use with the encoder is pin3, I end up now getting the encoder inputs going through the items backwards (counterclockwise when turning the encoder clockwise),
Hence why I want to try and figure out how I can add the interrupt back from the encoder.h library.
Thanks
Geoff
Background on the project. I am trying to add a second interrupt onto a pin in my sketch so that I am able to use the second interrupt to wake up my Arduino after being asleep when I turn the encoder that I am already using in my project to make various selections from user input. Ultimately I would like to NOT have to add an additional connection/button/switch etc so that I am able to get everything up and running again from sleep mode.
Currently the program I have does run (100% properly before I tried to add the sleep mode to it), however with the way it is currently written, I can attach the second interrupt to the pin, put everything to sleep, get it to wake up from sleep, etc. but then I detach the interrupts that are assigned to pin2 for the encoder, the second pin in use with the encoder is pin3, I end up now getting the encoder inputs going through the items backwards (counterclockwise when turning the encoder clockwise),
Hence why I want to try and figure out how I can add the interrupt back from the encoder.h library.
Thanks
Geoff