A little bit late for the party , yes.
I am working on a project where I need to use ESP8266 to read 3 touch button , the situation is pretty nasty when I need to use 595 and 165 on only 4 wire . How can I detect when user touch right.
I am using Nodemcu firmware so a loop is a nono . Luckily , I only care when user is touching only , so I use a "OR logic ic" to provide me a simple interrupt.
It means that whenever any button is press , the OR logic will interuppt the ESP with a dedicated pin . Only by then , a loop will occur to count how long user is pressing.
Desperate situation require for desperate measures. Why not a IO expander may you ask . Because the price is limited to 0.25$