- Wed Jan 16, 2019 3:20 am
#80085
buzzy wrote:I am using a 74HC595 to get more pins on my esp8266. With the "normal" pins of the esp8266, I usually use interrupts to be notified of changes to pin status. Is there a way to do this with the extra pins I get of the SPI interface? Thanks!
So as I pointed out earlier ... using the 74HC165 is a better choice for extra inputs ... but never gave an answer about using them with SPI
AND Interrupts together ... I personally feel with the speed available polling the register with every loop or using a software interrupt or even a millis() variable and then comparing the last read with the current read to determine if a button was pressed works best ... eliminating the need for the extra gpio. However, I include it here as a demonstration of using SPI & hardware interrupts together ...
Schematic