Using the same switch for two devices of different signal voltage levels
Assuming you have common grounds you can use diodes like this.







simulate this circuit &ndash; Schematic created using CircuitLab