1-channel GPIO from industrial PC over RS232 port
You can arbitrarily control at least the DTR and RTS lines of a RS-232 interface.

Example: https://github.com/xanthium-enterprises/RTS-DTR-Pin-Control-Linux/blob/master/serial_rts_dtr.c