# 1 switch-bank, 1 rotary, 5 inputs, 3 devices, no idea how

I have 3 separate LCD's which have 5 push buttons to control the LCD settings and power. All push buttons on the LCD share a common ground. What I would like to do is use 1 switch bank and a 3-position rotary switch to select which LCD to adjust the settings on, however I'm unable to find an elegant solution via google. due to space limitations, I am unwilling to use a giant multi-pole rotary. Is there an IC that will handle this?

• Do your GND lines need to be connected? The obvious choice would be switching the GND lines. – Janka Feb 2 '17 at 16:11
• @Janka The even more obvious choice is to just use a microcontroller for 8 inputs and 15 outputs. Either that or a couple of standard logic gate packages – Doodle Feb 2 '17 at 16:19
• When I can just switch the GND lines, I don't need a µC or such. Only 15 diodes and a three-way switch and that was it. – Janka Feb 2 '17 at 16:21
• Are the LCD control lines digital or analog? A multiplexer for digital, and I think you can do the same with analog switch bank. I don't have any part numbers on hand. – George Herold Feb 2 '17 at 16:22
• All of the control lines are analog as far as I can tell. I was just drawing out the 15-diode-common-ground idea before I came back to check for an answer. I think I might go with that and see if it works. Thanks everyone. – Metal-Muffin Feb 2 '17 at 16:49

  lcd_init(LCD1); //initialize lcd1