/*********************************************************** File name: 02_activeBuzzer.ino Description: Arduino uno Continuous beeps control buzzer. Website: www.wildgeekacademy.com E-mail: contactt@wildgeekacademy.com Author: WildGeekCommunity Date: 2019/09/02 ***********************************************************/ int buzzerPin=8; //definition digital 8 pins as pin to control the buzzer void setup() { pinMode(buzzerPin,OUTPUT); //Set digital 8 port mode, the OUTPUT for the output } void loop() { digitalWrite(buzzerPin,HIGH); //Set PIN 8 feet as HIGH = 5 v delay(2000); //Set the delay time,2000ms digitalWrite(buzzerPin,LOW); //Set PIN 8 feet for LOW = 0 v delay(2000); //Set the delay time,2000ms }