Advertisement
Guest User

Untitled

a guest
May 21st, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. int vibratore = 6;
  2.  
  3. void setup() {
  4.   // put your setup code here, to run once:
  5.   pinMode(vibratore, OUTPUT);
  6. }
  7.  
  8. void loop() {
  9.   // put your main code here, to run repeatedly:
  10.   digitalWrite(vibratore, HIGH);
  11.   digitalWrite(4, LOW);
  12.  
  13.   //analogWrite(vibratore, 0);
  14.   delay(3000);
  15.  
  16.   digitalWrite(4, HIGH);
  17.     digitalWrite(vibratore, LOW);
  18.  
  19.   delay(10000);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement