Stop using the LCD and reassign pins mid-program

I currently have a LCD set up with my Arduino using the LiquidCrystal library.

My project is meant to be very configurable, and one such configuration is whether to have the Arduino control 3 devices, or 2 devices + an LCD. If the user decides to switch from 2 devices + an LCD to 3 devices, how can I best disable the LCD and reassign its pins? Obviously, a hardware change would occur at the same time, likely through the use of a multi-pole switch.

If there is no good way to do this, then would resetting the Arduino using watchdog be best (the option will have been stored in the EEPROM)?

Thanks

I'd use an I2C LCD and not worry about it.

Cam_2002:
If the user decides to switch from 2 devices + an LCD to 3 devices, how can I best disable the LCD and reassign its pins?

Why might that even be necessary? :roll_eyes:

In any case, hot-swapping" requires very careful design. :astonished: