Toggle an Event
SailerMan
Posts: 337
I can't show my code because I not at home, but what I'm basically trying to do is attach 8 leds pin 0-7 and shift them back and forth like the old knight rider car.
I'm using PASM and so far I can get the lights to shift left or right but have not managed to get them to bounce back and forth.
I'm a beginner and am trying small coding examples to learn.. so if anyone has done this or can give me an example I would really appreciate it.
Thanks,
Eric
I'm using PASM and so far I can get the lights to shift left or right but have not managed to get them to bounce back and forth.
I'm a beginner and am trying small coding examples to learn.. so if anyone has done this or can give me an example I would really appreciate it.
Thanks,
Eric
Comments
otherwise, I don't see the problem, as you just set the led, repeat 7 times: delay and shift right, repeat 7 times: delay and shift left, repeat.
Just a suggestion, you can use spin for something so simple.
Even a basic stamp 1 would be able to update fast enough.
http://forums.parallax.com/showthread.php?p=803680
It's in SPIN, but it should give you an idea how to do it.
·http://forums.parallax.com/showthread.php?p=647408
4th post down.
But this is the best by Ray Tracy:
·http://obex.parallax.com/objects/240/
Jim