2PCS Standard Tilt Switch Module For Arduino AVR PIC
1,19 €
Int buttonpin = 3; // define the tilt switch sensor interfaces. pinMode(buttonpin, INPUT) ;// define the output interface tilt switch sensor. if(val == HIGH) // When the tilt sensor detects a signal when the switch, LED flashes.
Jetzt bei Ebay: