Question on behaf of a friend..
Oldbitcollector (Jeff)
Posts: 8,091
I'm not a BASIC STAMP guy, but I've been asked the following question..
Hi Jeff,
I'm trying to make a program for my B Stamp that when you push a button
it turns a light on but what I got,
the button don't seem to do nothing. The lights just flutter.
Hi Jeff,
I'm trying to make a program for my B Stamp that when you push a button
it turns a light on but what I got,
LEDs VAR OUTA LEDsD VAR DIRA DTm CON 100 Led: LEDsD = %1111 Run: INPUT 15 IF (IN15=*) THEN LEDs = %1111 PAUSE DTm LEDs = %0000 GOTO Run,
the button don't seem to do nothing. The lights just flutter.
Comments
with
the LED will be On as long as the button is held down.
PE - This, assuming the pushbutton connects the Input to +5
OK, the OUT1 is confusing!
Confusing? It's not confusing - it's wrong! :zombie:
Wire the switch in acc. with the "Active-High" example given for BUTTON (in PBASIC Help) and place the LED circuit between P0 and Vss.
Fair enough?
@P.J. - LOL! You're the best!