Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const int piezo=8;
- const int ledPin= 13;
- void setup() {
- // put your setup code here, to run once:
- pinMode (piezo, OUTPUT);
- Serial.begin (9600);
- }
- void loop() {
- // put your main code here, to run repeatedly:
- tone (piezo, 440, 20);
- delay (10);
- noTone (piezo);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement