Tilt Module

From LinkSprite Playgound
Revision as of 03:07, 24 February 2014 by Alvin (talk | contribs)
Jump to: navigation, search

Linker tilt2.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 Tilt Module on store