First Commit
This commit is contained in:
21
buzzer_test/buzzer_test.ino
Normal file
21
buzzer_test/buzzer_test.ino
Normal file
@@ -0,0 +1,21 @@
|
||||
//**** INCLUDES *************************************************************
|
||||
|
||||
//**** CONSTANTS ************************************************************
|
||||
|
||||
//**** PIN ASSIGNMENT OF OUR SHIELD *****************************************
|
||||
|
||||
static const int buzzer = 2;
|
||||
//**** SETUP ****************************************************************
|
||||
void setup() {
|
||||
Serial.begin(9600);
|
||||
|
||||
|
||||
pinMode(buzzer, OUTPUT);
|
||||
|
||||
}
|
||||
|
||||
//**** LOOP *****************************************************************
|
||||
void loop(){
|
||||
tone(buzzer,400, 200);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user