Shop OBEX P1 Docs P2 Docs Learn Events
LEDs row — Parallax Forums

LEDs row

ArchiverArchiver Posts: 46,084
edited 2003-11-12 06:22 in General Discussion
I would like to control a row of leds (i.e. pin 0 to pin 7) sending
data out of my computer (i.e. if I send out 00000010 then the led
conncted to pin 2 is turned on). Anybody could help me?
Regards,
AF

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-11-12 03:57
    --- In basicstamps@yahoogroups.com, "alberto_frigo" <artdavi@h...>
    wrote:
    > I would like to control a row of leds (i.e. pin 0 to pin 7) sending
    > data out of my computer (i.e. if I send out 00000010 then the led
    > conncted to pin 2 is turned on). Anybody could help me?
    > Regards,
    > AF

    are you talking about lighting LED's from a Stamp or your computer ?
  • ArchiverArchiver Posts: 46,084
    edited 2003-11-12 06:22
    --- In basicstamps@yahoogroups.com, "alberto_frigo" <artdavi@h...>
    wrote:
    > I would like to control a row of leds (i.e. pin 0 to pin 7) sending
    > data out of my computer (i.e. if I send out 00000010 then the led
    > conncted to pin 2 is turned on). Anybody could help me?
    > Regards,
    > AF


    I done a something like that. I set pins 0-7 outs for leds and wrote
    a counting program. The output in leds was dinary. say your
    00000010 binary = 2 dec.
    also put debug will send the number value to computer in debug screen.
    you need to set this up in code.
    I dont know what program board you have but i say that its not the
    stamp works. If not go on the parallax web sight and go to downloads
    and down load the stamp works manuel its a ppf file and its free to
    do. There is alot of experments to do in there. I bought the stamp
    works board and it realy helped me learn the stamps.
    look at experment #3 might help you.
    at the end of the program insert line before the next statment
    add DEBUG DEC COUNTER
    this is the code that will send the counter value to the computer in
    dec. value.

    hope that this helps
Sign In or Register to comment.