' {$STAMP BS2e} ' {$PBASIC 2.5} DO OUTS = %11110 'Drive P0 low and P1-P4 high DIRS = %00011 'Set P0-P1 as Outputs and P2-P4 as Inputs PAUSE 250 'Pause for LED to remain on DIRS = 0 'Set all pins to Input. This will turn off the LED PAUSE 250 'Pause for LED to remain off LOOP