ja hast du richitig verstanden

Led_hell = 160
Compare1a = Led_hell
Do
Getrc5(address , Command)
If Address < 255 Then

If Address = 7 And Command = 6 And Led_hell <= 250 Then Led_hell = Led_hell + 5
If Address = 7 And Command = 12 And Led_hell >= 5 Then Led_hell = Led_hell - 5
Compare1a = Led_hell

End IF
Loop