I need to connect LoRa module and esp8266 , with Arduino core, so I need SPI pin (12-13-14) and other 3 pins for DIO0, RESET and NSS, but I need other 4 pins for my project.
I had think to use a port expander i2c to add pin, now my question is: if is possible to manage DIO0,RST and NSS , can I use pin of port expander for this scope?
Considering that GPIO 16 is used for sleep with esp-RST pin, GPIO 0 is pulled up and is DTR pin, GPIO 2 is also pulled up (I read to pullup 0 and 2 for correct internal wakeup of esp, I don't know if is correct, but pullin up this pin, internal wake up work better, for me), so remaining only pin 4 and 5.
I can use this 2 pins for i2c but before wiring all , I decided to ask if someone had have similar configuration.
thanks in advance