Button Module

From LinkSprite Playgound
Revision as of 04:36, 17 April 2014 by Qian.zhang (talk | contribs)
Jump to: navigation, search

Introduction

This button module hosts momentary push button switch - 12mm Square. It can serve as input for Arduino experiment.

Linker button.jpg

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>

Button link.jpg

How to buy

Here to buy Button Module on store