Difference between revisions of "Button Module"
Qian.zhang (talk | contribs) |
Qian.zhang (talk | contribs) |
||
| Line 4: | Line 4: | ||
[[File:Linker button.jpg]] | [[File:Linker button.jpg]] | ||
| − | == | + | == Schematics == |
| + | *[https://s3.amazonaws.com/linksprite/LinkerKit/Linker+button.pdf Schematics] | ||
| + | |||
| + | == Application Ideas == | ||
<syntaxhighlight lang="c"> | <syntaxhighlight lang="c"> | ||
| Line 28: | Line 31: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| − | |||
| − | |||
| − | |||
==How to buy== | ==How to buy== | ||
Here to buy Button Module on [http://store.linksprite.com/button-module-of-linker-kit-for-pcduino-arduino/ store] | Here to buy Button Module on [http://store.linksprite.com/button-module-of-linker-kit-for-pcduino-arduino/ store] | ||
Revision as of 09:04, 8 April 2014
Introduction
This button module hosts momentary push button switch - 12mm Square. It can serve as input for Arduino experiment.
Schematics
Application Ideas
<syntaxhighlight lang="c">
const int ButtonPin=9; void setup() {
pinMode(ButtonPin, INPUT); Serial.begin(9600); // init serial to 9600b/s
}
void loop() {
int sensorValue = digitalRead(ButtonPin);
if(sensorValue==1)
{
Serial.println("High");
}
else
{
Serial.println("Low");
}
}
</syntaxhighlight>
How to buy
Here to buy Button Module on store
