MUstar

IoT 아두이노 0526 - Vibrator

May 26th, 2017
68
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int pin_VIBRATOR = 5;
  2. void setup() {
  3.   pinMode(pin_VIBRATOR, OUTPUT);
  4.  
  5. }
  6.  
  7. void loop() {
  8.   digitalWrite(pin_VIBRATOR,HIGH);
  9.   delay(500);
  10.   digitalWrite(pin_VIBRATOR,LOW);
  11.   delay(500);
  12. }
RAW Paste Data