Hi, I am trying to control the intensity of an LED through pbp. Here is what I wanted to achieve, to set the intensity of the light to be 50% constant for 10 sec and then 25% constant for another 10 sec. Here is what I was trying to do, but not sure if this is correct pbp style of programming.... any help will be greatly appreciated. thank you. Not sure if the below code will work for my description.
===============================================sta rt of program==================================

include "modedefs.bas"
LED1 VAR PORTB.4
LED2 VAR PORTB.5
LED3 VAR PORTB.6
TRISB = %00000000

start:

Loop:

For i = 0 to 10
LED1 = 1111 'full intensity

Pause 1000

LED2 = 0111 'Half intensity

Pause 1000

LED3 = 0011 'quarter intensity

PAUSE 1000

Next i
Goto Loop