Need help with using a rotary switch for a HID input

Another thing to consider is what comes next. Are you going to make more panels? If so, consider using something with more pins. In projects like this, people seem to end up with multiple megas as their cockpits evolve.