I am experimenting with creating a replacement for the 8048-based keyboard for an old 8-bit Z80 computer over a parallel port, where the value is read when a strobe pin goes from high to low.
I have connected the appropriate pins to the GPIO ports on a Raspberry Pico and written a small MicroPython program that sets the 8 bit value pins and double-toggles the strobe to go high->low->high. This works very well.
My problem now, is that the raspberry powers up with the GPIO ports low, so the strobe is immediately considered to be fired and the computer is sent an ASCII zero character before my MicroPython code have a chance to initialize the pin to high.
I would like to change the powerup configuration of at least one GPIO port to be output and high so I can avoid this extra character. My initial investigations indicate this should go in the firmware as the Pico itself appears to have a fixed behavior, but I am unsure if I know the right search terms to use. I am experienced with software but inexperienced with electronics (but learning). It will just be me using this for now.
How should I approach this?