RF24 icon indicating copy to clipboard operation
RF24 copied to clipboard

Adding GPIO Expander(23017) Support to the library

Open Frenzyritz13 opened this issue 3 years ago • 3 comments

@Frenzyritz13 I just modified my post (found/fixed an error in the logic). Please be sure to use the updated snippet about _ini_pins()

This looks good Brendan! Will test it and get back to you. Also, I am going to be using 2 I2Cs and an Expander based interrupt, I am expecting some issues there as well, will keep this thread updated.

This deserves a separate thread/issue because we are no longer discussing just the ESP32's SPI bus.

Originally posted by @2bndy5 in https://github.com/nRF24/RF24/issues/722#issuecomment-899452928

Frenzyritz13 avatar Aug 16 '21 14:08 Frenzyritz13

For reference, this is the suggested idea here: https://github.com/nRF24/RF24/issues/722#issuecomment-899446116

2bndy5 avatar Aug 16 '21 14:08 2bndy5

Also, I am going to be using 2 I2Cs and an Expander based interrupt, I am expecting some issues there

I should probably mention that using any RF24::write*() call in an ISR callback is prohibited by the RF24 library because it uses millis() to detect timeouts and delayMicroseconds() for every SPI transaction on boards that have a high speed CPU. You can have a look at the interrupt_configure.ino example to see a working hint about using a volatile boolean to get around that.

2bndy5 avatar Aug 16 '21 19:08 2bndy5

@Frenzyritz13 any updates?

2bndy5 avatar Oct 17 '21 10:10 2bndy5

I'm closing this due to lack of activity. The associated PR (#787) will remain open for anyone that is curious, but we have no plans to support this feature.

2bndy5 avatar Jan 17 '23 00:01 2bndy5