button
Archiver
Posts: 46,084
Does anyone know of where I might be able to find NO push buttons that have a
red and green led inside
[noparse][[/noparse]Non-text portions of this message have been removed]
red and green led inside
[noparse][[/noparse]Non-text portions of this message have been removed]
Comments
Original Message
> Does anyone know of where I might be able to find NO push buttons that
have a red and green led inside
declare the size of workspace as "word" rather than "Byte" ?
Thanks!!
>declare the size of workspace as "word" rather than "Byte" ?
>Thanks!!
The workspace holds the state of the button for debouncing and for
the autorepeat function. You could declare it as a word, but that
would be a waste of RAM space. If you are _not_ using the autorepeat
function, there are usually better ways to code for buttons. Here is
more talk on the inner workings of the BUTTON command:
<http://www.emesystems.com/BS2fsm.htm#BUTTON>
-- Tracy
word, only the lower byte will be used.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: ck1_chu [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=i2J6QIn2jknSOQArUaLw_4S0qc2E1Katw_o9tfbjrjor2u0uPTHhDbUNsMKN4E-7i-G7rtNlpEaL5UEHKu8]ck1_chu@y...[/url
Sent: Thursday, April 29, 2004 4:28 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Button
For the Button command, what's the function of workspace? Can I
declare the size of workspace as "word" rather than "Byte" ? Thanks!!