so hab ich ne 10 Kanal Software-PWM zusammengebastelt:

Code:
Ontimer2:

 Tick = Tick + 1
 Timer2 = 200
 If Tick >= Range Then Tick = 0
 If Tick < V_hell(1) Then
    K1 = Channels.1
 Else
    K1 = 0
 End If
  If Tick < V_hell(2) Then
    K2 = Channels.2
 Else
    K2 = 0
 End If
  If Tick < V_hell(3) Then
    K3 = Channels.3
 Else
    K3 = 0
 End If
  If Tick < V_hell(4) Then
    K4 = Channels.4
 Else
    K4 = 0
 End If
  If Tick < V_hell(5) Then
    K5 = Channels.5
 Else
    K5 = 0
 End If
 If Tick < V_hell(6) Then
    K6 = Channels.6
 Else
    K6 = 0
 End If
  If Tick < V_hell(7) Then
    K7 = Channels.7
 Else
    K7 = 0
 End If
 If Tick < V_hell(8) Then
    K8 = Channels.8
 Else
    K8 = 0
 End If
  If Tick < V_hell(9) Then
    K9 = Channels.9
 Else
    K9 = 0
 End If
  If Tick < V_hell(10) Then
    K10 = Channels.10
 Else
    K10 = 0
 End If
Return