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

Username:   Password: 
 RegisterRegister   
 How can i Run Two Leds at the same Time?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
rajuthan




PostPosted: Tue Jun 13, 2006 5:20 pm   Post subject: How can i Run Two Leds at the same Time?

Does anyone Know How I can Run 8 leds at the same time with this Code:


turingproject.jpg
 Description:
 Filesize:  73.11 KB
 Viewed:  891 Time(s)

turingproject.jpg



FINALPROJECT(2).t
 Description:

Download
 Filename:  FINALPROJECT(2).t
 Filesize:  8.33 KB
 Downloaded:  97 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
xHoly-Divinity




PostPosted: Tue Jun 13, 2006 6:02 pm   Post subject: (No subject)

I believe that the code you are looking for is 'parallelput (value)', value being the binary number that corresponds to the correct pin (if u are using a buffer chip). If you want everything on, then you should probably parallelput (255). I didn't really look over ur code, but that would be my guess Razz
iker




PostPosted: Tue Jun 13, 2006 7:38 pm   Post subject: (No subject)

im assuming that your parallelput values are wrong, because with one finish, it turns all led's off
code:

parallelput (0)

and the other one turns the first led on
code:

parallelput (1)

try these as an alternative
code:

%no leds
parallelput (0)
%first led
parallelput (1)
%second led
parallelput (2)
%both 1 and 2
parallelput (3)
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: