// // This program lights one LED at a time, from left to right, in a series // of 8 LEDs connected to P1.0 through P1.7. // int star = 1; int x = 0; void setup() { P1DIR = B11111111; } void loop() { P1OUT = star << x; x %= 8; delay(100); }