Advertisement
goncharn20

Untitled

Jun 24th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. const int piezo=8;
  2. const int ledPin= 13;
  3.  
  4. void setup() {
  5. // put your setup code here, to run once:
  6. pinMode (piezo, OUTPUT);
  7. Serial.begin (9600);
  8. }
  9.  
  10. void loop() {
  11. // put your main code here, to run repeatedly:
  12. tone (piezo, 440, 20);
  13. delay (10);
  14. noTone (piezo);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement