Project Help Please Using Parallelput !
Author |
Message |
SORA
|
Posted: Fri May 30, 2008 7:51 pm Post subject: Project Help Please Using Parallelput ! |
|
|
Hi Everyone,
I have a project where I have to build traffic lights using leds. To program the Led I'm using the turing program and i have already written the program code up. In order for its sequence i am not to sure if this is correctly as its done, In terms of
timing and the correct coordination of the lights. If anyone can help me please I would extremely appreciate any help and I don't have too much time.
Thanks,
SORA
for i : 0 .. 7
parallelput (2) % North and south Red lights
delay (18000)
parallelput (4) % East and West Green lights
delay (6000)
parallelput(8) % East and West Yellow lights
delay(6000)
parallelput(16) % East and West Red lights
delay(18000)
parallelput(32) % North and South Green lights
delay (6000)
parallelput(64) % North and South Yellow Lights
delay (6000)
end
for
Here above is the program code I have typed up. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
nastynika
![](http://compsci.ca/v3/uploads/user_avatars/18889315794823032f5f4d2.gif)
|
Posted: Mon Jun 02, 2008 8:35 am Post subject: Re: Project Help Please Using Parallelput ! |
|
|
when asking for help you are suppose to post in the help section not submissions as is stated by the rules |
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: Mon Jun 02, 2008 9:18 am Post subject: RE:Project Help Please Using Parallelput ! |
|
|
moved to Turing Help.
Also, I don't understand what you are expecting help with.
Simply plug your LEDs in, and see if the correct sequence plays. Alternatively you would have to mail your LEDs to compsci.ca's headquaters, and we'd try to locate a computer old enough to have a parallel port available, to test it out. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
![](images/spacer.gif) |
|
|