Computer Science Canada

How can i Run Two Leds at the same Time?

Author:  rajuthan [ 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:

Author:  xHoly-Divinity [ Tue Jun 13, 2006 6:02 pm ]
Post 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

Author:  iker [ Tue Jun 13, 2006 7:38 pm ]
Post 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)


: