KY037: High Sensitive Microphone Module Posted by: admin , April 25, 2014 int Led=13; int Shock=3 int val; void setup() { pinMode(Led,OUTPUT); pinMode(Shock,INPUT);// } void loop() { val=digitalRead(Shock); if(val==HIGH)/ { digitalWrite(Led,LOW); } else { digitalWrite(Led,HIGH); } } Share! Tweet admin About the author Leave a Reply Cancel replyYou must be logged in to post a comment.
Leave a Reply
You must be logged in to post a comment.