I'm using a NodeMCU as shown below, to switch 4 relays using Micropython.
For that purpose I need 8 GPIOs (4 for relay and 4 for switch buttons).
For the first pair (UP/DOWN) I use pins D1, D2 - for output, and pins D3, D4 for buttons inputs.
The code seems to work OK, and quite simple. When I assigning 4 more GPIOs for the exact same purpose - I get an error , that I think concerned using other pins :D5, D6, D7, D8 - I'm guessing D7, and D8 are the ones causing the trouble ):
1) When using D7, D8 as an input - D8 is pulled low ( i guess in hardware) and not allow to use it as a switch.
2) When I'm using it as an output - I can rshell
back in, and I have to erase flash of esp8266.
My question is - is there a way I can use ANY additional 2 digital pins for that purpose?