Just to be different ...
And because she said "less than 8 Lines of Code" ...
Code:TRISB = 0 Main: x = (x + 1) // 8 PORTB.0(x) = !(LoopLED(x) < LoopCON(x)) LoopLED(x) = (LoopLED(x) + 1) // (LoopCON(x) << 1) if x=7 THEN PAUSE 10 GOTO Main
Just to be different ...
And because she said "less than 8 Lines of Code" ...
Code:TRISB = 0 Main: x = (x + 1) // 8 PORTB.0(x) = !(LoopLED(x) < LoopCON(x)) LoopLED(x) = (LoopLED(x) + 1) // (LoopCON(x) << 1) if x=7 THEN PAUSE 10 GOTO Main
DT
Bookmarks