You should also read this about the pins used by Edgent…
You really need to be using an ESP32 if you want that many pins.
Pete.