-
-
Notifications
You must be signed in to change notification settings - Fork 35
Only seeing rising-edge interrupts. #82
Comments
Some additional testing: If I change
So it seems like the board is capable of detecting the falling-edge interrupts, its' just not doing so when the interrupt mode is CHANGE. |
One additional wrinkle - I see that there's a closed issue describing this same problem that has a merged MR: #68 I believe I'm using the latest |
Final update - I turned up the verbosity when building and saw that I was probably still using the installed version instead of the source version of Unfortunately trying to build results in the error Can someone confirm that the instructions in the README.md are for linux systems only? Are they intended to work on Windows, too? I suspect I'm not on the happy development path here and that's why I'm encountering problems. |
Alright, it was a real challenge to get this working on a Windows system - I will post the steps I followed in case they are helpful to someone else:
Then, for some reason I also had to edit C:\Users\Username\Documents\Arduino\hardware\arduino\mbed\platform.txt and change
to
Once you've made all of those change, make sure to restart your IDE. You should now (hopefully) be able to build with the source version of ArduinoCore-nRF528x-mbedos |
Hi @pbaughman ,
Restart the IDE and you are done; this way there's no chance to lose your modification in case of update. |
Hello! I've got some code that I'm porting to the Arduino Nano BLE. I'm having some difficulty because I think I'm only seeing rising edges in my interrupt handler instead of rising and falling edges. The following code minimally reproduces the issue:
There's a rotary encoder attached to the pin under test. When I run this code on
Arduino Duemilanove
, I see the following output for every "tick" of the encoder:Continuing to turn the encoder, I see what one would expect:
I have an identical hardware setup but with an
Arduino Nano Every
chip that produces the same output.When I test with the
Arduino Nano 33 BLE
chip I'm not seeing falling-edge interrupts. The output from the above test program is only:Multiple ticks of the encoder yields
As you can see, it appears my interrupt is only firing on 0->1 transitions but not 1->0 transitions.
If I change TEST_PIN to 2 (the other leg of the encoder) I observe the same thing.
Am I missing something fundamental here, or is
attachInterrupt(x, x, CHANGE)
not working as expected on the BLE nano?Thank you!
The text was updated successfully, but these errors were encountered: