How to use a push button switch to blink an led
Archiver
Posts: 46,084
Hi,
I have connected my switch and led. I just have problems with the
code.
Thanks
I have connected my switch and led. I just have problems with the
code.
Thanks
Comments
Here's a code directly from a tutorial on the Basic Stamp by the Southern
Illinois University, it's available from the parallax website under
educational downloads.
http://www.parallax.com/html_pages/edu/downloads/downloads.asp
'{$STAMP BS2}
'Prog 4E Tutorial Controlling LED1 with input PB1
OUTPUT 8 'Set P8 to be an output
INPUT 10 'Set P10 to be an input
Main:
OUT8 = IN10 'Set LED1 = PB1
GOTO Main 'Jump back to beginning
jeff
Original Message
From: "christopherazimi" <christopherazimi@y...>
To: <basicstamps@yahoogroups.com>
Sent: Tuesday, December 23, 2003 8:01 PM
Subject: [noparse][[/noparse]basicstamps] How to use a push button switch to blink an led
> Hi,
>
> I have connected my switch and led. I just have problems with the
> code.
>
> Thanks
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/basicstamps/
>
> To unsubscribe from this group, send an email to:
> basicstamps-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
>
>
>