- Tue Aug 24, 2021 4:17 am
#228093
I have built a scrolling LED matrix using an ESP-01 module as the brains. A factory reset switch is required so that the WiFi credentials can be reset easily, so what I have done is shared GPIO3 (the RX pin) between the chip select of the MAX7219 module and the reset button. At startup the pin is set as an input with pullup, and if the pin is low a function is called that resets the wifi information. If it is high the pin is set as an output and the program carries on.
I have used a 2.2k resistor to ground, so that when it is pulled low it isn't a dead short if the button is pressed during normal operation.
I have tested this, and it does work without interfering with the MAX7219 display, but is this an acceptable bodge? Is it safe? Is there a chance that this could bite me down the line?