Advertisement
DrAungWinHtut

phone_dial

Jun 29th, 2022
557
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int sensorReading = 0;
  2.  
  3. void setup()
  4. {
  5.   pinMode(9, OUTPUT);
  6. }
  7.  
  8. void loop()
  9. {
  10.  
  11.   for(int tring=1;tring<=2;tring++){
  12.     for(int i=1;i<=10;i++){
  13.       tone(9, 600   , 1000);
  14.       delay(30);  
  15.       tone(9, 1000   , 1000);
  16.       delay(30);  
  17.     }
  18.     delay(2000);
  19.   }  
  20.   delay(10); // Delay a little bit to improve simulation performance
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement