Check your connections. Look on page 139 of the Basic Stamp Syntax and Reference Manual for schematics and some examples of code for buttons or whiskers.
Really simple code could be:
DO
IF IN5 = 1 THEN
HIGH 6
ELSE
LOW 6
ENDIF
LOOP
This would mirror the input state of pin #5 to pin #6. Typically, you'd have an LED with a 1K resistor in series with it between pin #6 (anode) and ground (cathode). You could use either schematic on page 139.
Comments
Really simple code could be: This would mirror the input state of pin #5 to pin #6. Typically, you'd have an LED with a 1K resistor in series with it between pin #6 (anode) and ground (cathode). You could use either schematic on page 139.