I made it for a ebike project. With this setting. I can't light up 6led and keep getting 3 switch input with only 4 wires. Need 3 microcontroller input/output and a ground. Tested on arduino and working. The 3 upper resistor are internal pull-ups. Only need the 3 50ohm resistor to light up the leds. Edit, still four wire, but 12 led and still 3 input. This design is actually working