Hallo Bertl100,

Lampe.(i) = 1 geht leider auch nicht.
PWM wird in dem Fall per Software generiert.

Auch so geht es nicht:
Code:
Lampe(1) Alias Portb.0
Lampe(2) Alias Portc.0
...
Lampe(22) Alias Portb.1

...
For i = 1 to 22
Lampe(i) = 1
next
Gruß
Matze