Difference between revisions of "Button Module"
Qian.zhang (talk | contribs) (→Schematics) |
Qian.zhang (talk | contribs) (→Features) |
||
| Line 6: | Line 6: | ||
== Features == | == Features == | ||
| − | Dimensions: 26.0×25.0×10. | + | Dimensions: 26.0×25.0×10.9mm |
Net weight: 3.4g | Net weight: 3.4g | ||
| + | |||
| + | == Dimension == | ||
| + | |||
| + | [[File:button dimension.jpg]] | ||
== Schematics == | == Schematics == | ||
Latest revision as of 01:29, 13 June 2014
Introduction
This button module hosts momentary push button switch - 12mm Square. It can serve as input for Arduino experiment.
Features
Dimensions: 26.0×25.0×10.9mm
Net weight: 3.4g
Dimension
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


