Closed jdinard closed 7 years ago
What version of the library are you using?
v0.5.8 added the ability to set PWM1, I2S-MCLK, and I2S-DI as edge detectable pins. I didn't hook up the 2 UART pins as they are in use by uboot.
My project depends on having edge detection on the CHIP Pro GPIO's. Would love to see this implemented!
This is already implemented. I left this open as I was expecting @jdinard to respond back with a "hey, you can close this" or a "uh, you missed a pin"
I'm actually using edge detection on my CHIP Pro at the moment inside GadgetOS on EINT24. I implemented the feature because It was missing and I needed it.
You can definitely close this. Its implemented in the latest update. Apologies for the late reply.
I am getting the following error when attempting to use Edge Detection on the GPIO pins of my pro. Any advice? I am using CSID? where ? is the number of the pin I want to use. ValueError: Edge Detection currently available on AP-EINT1, AP-EINT3, and XIO-P0 to XIO-P7 only
Use PWM1, I2S-MCLK, or I2S-DI
So there is no support planned or current for Edge Detection on the actual GPIO pins (CSID0-CSID7)?
There can't be because the chip/chip pro itself doesn't support edge detection on CSID pins
Yes, the CHIP Pro only supports edge detection on PWM1, I2S-MCLK, and I2S-DI. The CSI pins do not as the R8/GR8 do not support interrupts on those pins.
If you want edge detection on the CHIP Pro, you need v0.5.8+, earlier versions do not have the code.
On Sat, Jun 10, 2017, 13:17 jdinard notifications@github.com wrote:
There can't be because the chip/chip pro itself doesn't support edge detection on CSID pins
— You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/xtacocorex/CHIP_IO/issues/69#issuecomment-307581683, or mute the thread https://github.com/notifications/unsubscribe-auth/AQbQfWQ6DuCNFp_1P-okJydPciojrS_gks5sCt2bgaJpZM4NRNST .
The current library doesn't support edge detection for any C.H.I.P. Pro exposed pins. The XIO pins are not found on the PRO, and APEINT1 and 3 are not exposed on the PRO.
From the documentation, it seems like we might be able to get this working on EINT13 (Pin 10) to give the PRO interrupt detection. Its listed as PWM1, and EINT13, but is also documented as an external interrupt pin.
I'm far from a great linux programmer, and I would really appreciate help banging this together.
Edit: This seems to work quite well. All I needed to do was add the checks in stop py_gpio.c to stop the library from rejecting a callback being added to the pin.