Difference between revisions of "Button Module"
(Created page with "<pre> /* Button Turns on and off a T010111 LED Module connected to O0 (digital pin 11), when pressing a T000180 pushbutton attached to I0 (analog pin 0). created 20...") |
Qian.zhang (talk | contribs) (→Features) |
||
(14 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | + | ==Introduction== | |
+ | This button module hosts momentary push button switch - 12mm Square. It can serve as input for Arduino experiment. | ||
− | + | [[File:Linker button.jpg]] | |
− | |||
− | + | == Features == | |
− | |||
− | + | Dimensions: 26.0×25.0×10.9mm | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | Net weight: 3.4g | |
− | + | == Dimension == | |
− | |||
− | + | [[File:button dimension.jpg]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | // | + | == Schematics == |
− | // | + | *[https://s3.amazonaws.com/linksprite/LinkerKit/Linker+button.pdf Schematics] |
− | |||
− | |||
− | + | == Application Ideas == | |
− | |||
+ | <syntaxhighlight lang="c"> | ||
+ | |||
+ | const int ButtonPin=9; | ||
void setup() { | void setup() { | ||
− | + | pinMode(ButtonPin, INPUT); | |
− | pinMode( | + | 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> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | [[File:Button link.jpg]] | ||
− | + | ==How to buy== | |
+ | Here to buy Button Module on [http://store.linksprite.com/button-module-of-linker-kit-for-pcduino-arduino/ store] |
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