A question from someone who does not knwo much about electronics…
I supplied each switch of my MidiBox LC with its own LED. Unfortunately, there are not enough DOut pins available to control them by MIOS.
For those, that otherwise would be always off, I would like to have the LED on when the button is pressed. Am I right that this is simple to realise, if I just replace the resistors on the DIn board by 220 (like in DOut) and put the LED between ground and the DIn connection? Or do I oversee something?
For those, that otherwise would be always off, I would like to  have the LED on when the button is pressed. Am I right that this is simple to realise, if I just replace the resistors on the DIn board by 220 (like in DOut) and put the LED between ground and the DIn connection?
NO! The resistors on the DIN are so-called Pull Ups, they´re needed to keep the inputs on a logic High by supplying a “symbolic” connection to +5V as long as the button is not pressed (10k is a very high resistance, so no real current will flow). If you replace the 10k resistors by 220, the DIN probably won´t detect the on/off state of the buttons anymore and it could also be that the inputs will be damaged (not sure).
Best solution would be to have switches with dual function. So you could leave the DIN alone and put the second “switch” between a separate line (+5)-(220)-(switch)-(ground).
Thanks for the immediate reply. Although I do not understand you completely…
If I am right:
The input pins of the shift registers have high impedance. That means, there will flow nearly no current through the IC. It only measures the potential difference. This will be 5 V if the switch is not closed - independent of the resistor value.
A pull-up resistor is only needed to prevent a shortcut between Vss and Vdd if the switch is closed. As an alternative to use a resistor with high impedance I could also employ an LED with a suitable 220 resistor, can’t I?
I’m no electronics genius either, but you could always add a little electronic switch with a transistor and some resistors that switches on, on 0 volt level. These transistor types are called PNP.
I’m no electronics genius either, but you could always add a little electronic switch with a transistor and some resistors that switches on, on 0 volt level. These transistor types are called PNP.