Shop OBEX P1 Docs P2 Docs Learn Events
Basic stamp + LED — Parallax Forums

Basic stamp + LED

AylaAyla Posts: 1
edited 2006-12-18 07:17 in BASIC Stamp
Hello i am making a program in basic stamp to read the temperature.

I would like to lighten up a LED (green) when the LCD is working and when i will read the temperature of the LCD.

Does anyone know what code do i have to use for this LED to lighten up in basic stamp language?

Thx (and sorry for my bad english)

Comments

  • ForrestForrest Posts: 1,341
    edited 2006-12-16 14:35
    Download and read What's a Micontroller - see the first link at the bottom of the page www.parallax.com/detail.asp?product_id=28152
  • Kirk FraserKirk Fraser Posts: 364
    edited 2006-12-18 07:17
    Hi Ayla,

    Does your LED have a built in resistor?· If so, it can be connected directly to a Stamp pin.· If not use something like a 330 ohm resistor in series with the LED.· Plug one end into +5v and the other into -5v and if it doesn't work, reverse it.· Then put the + side to the Stamp pin, say pin 3.· In the Stamp program write:

    HIGH 3

    Run the program and·that's it, based on your question.· It works with any color LED.

    I don't understand what you mean by reading the temperature so if your question remains unanswered, provide more details.

    Kirk Fraser
Sign In or Register to comment.