Computer Science Canada LED's IN SEQUENCE : ASAP PLEASE |
Author: | cii009 [ Tue Jan 20, 2004 7:01 pm ] |
Post subject: | LED's IN SEQUENCE : ASAP PLEASE |
is there anything rong with this program? ***i m trying to light LED's in Sequence so that it is like a car being driven. Um, I have 4 LEDS. **When the lights are lit, the car moves in that direction** parallelput (1 ) ---->Forward parallelput (2 ) ---->backward parallelput (4 ) ---->Left side parallelput (8 ) ---->Rightside now what i have to do is make it so that the car is going or making a rectangle. So this is the program I created: loop parallelput (1) delay (12) parallelput (5) delay (5) parallelput (1) delay (12) parallelput (5) delay (5) parallelput (1) delay (12) parallelput (5) delay (5) parallelput (1) delay (12) end loop is there anything wrong with it? Please help me ASAP! |
Author: | Dan [ Tue Jan 20, 2004 8:37 pm ] |
Post subject: | |
sory but it is kind of hard to test wiht out aucaly being there with your crickit for the LEDs. |
Author: | McKenzie [ Tue Jan 20, 2004 10:40 pm ] |
Post subject: | |
If the lights actually flicker, try increasing the delay. 12 milliseconds is not much (I'd try 1000, more for a real car) |