renix1

Fase inicial Arduino

May 15th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.20 KB | None | 0 0
  1. #define pinBuzz 8
  2. void setup () {
  3.   pinMode(pinBuzz, OUTPUT);
  4.  
  5.  
  6.  
  7. }
  8.  
  9. void loop () {
  10.    for (int freq = 0; freq < 20000; freq+=50) {
  11.       //tone(pinBuzz, freq);
  12.       noTone(pinBuzz);
  13.    }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment