Kannste das nicht mit einer IF schleife machen?
Also das du eigentlich 5 IF schleifen machst z.B. so:

If Dip1 = 1 then LED = 1 else LED = 0
If Dip2 = 1 then LED = 1 else LED = 0
If Dip3 = 1 then LED = 1 else LED = 0
If Dip3 = 1 then LED = 1 else LED = 0
If Dip1 and Dip2 and Dip3 and Dip4 = 1 then LED = 1 else LED = 0

Also die LED legst du dann an 5V und schaltest per Controller dann gegen Ground.
Würde sowas nicht gehen? Wieso verändert sich den da die Helligkeit?