Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Project Help Please Using Parallelput !
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
SORA




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
nastynika




PostPosted: 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
Tony




PostPosted: 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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: