void setup( void ) { P1DIR = 0b11111111; P1OUT = 1; } void loop( void ) { P1OUT *= 2; if( P1OUT == 0 ) P1OUT = 1; delay( 100 ); }