int star = 1; int x = 0; void setup() { P1DIR = 0b11111111; } void loop() { P1OUT = star << x; x %= 8; delay(100); }