Advertisement
MUstar

IoT 아두이노 0526 - Vibrator

May 26th, 2017
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement