Difference between revisions of "Button Module"

From LinkSprite Playgound
Jump to: navigation, search
Line 30: Line 30:
 
== Schematics ==
 
== Schematics ==
 
*[https://s3.amazonaws.com/linksprite/LinkerKit/Linker+button.pdf Schematics]
 
*[https://s3.amazonaws.com/linksprite/LinkerKit/Linker+button.pdf Schematics]
 +
 +
==How to buy==
 +
Here to buy Button Module on [http://store.linksprite.com/button-module-of-linker-kit-for-pcduino-arduino/ store]

Revision as of 03:17, 24 February 2014

Linker button.jpg


Sample

<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("Hign");    
 }
 else
 {
   Serial.println("Low");     
   
 }
}

</syntaxhighlight>


Schematics

How to buy

Here to buy Button Module on store