lorawan/sodaq_one_gps_battery_loudness/buzzer.ino
Nico Schottelius 90bf72872b Cleanup repo #1
2016-10-22 22:38:24 +02:00

20 lines
266 B
C++

#include <Arduino.h>
void setupBuzzer()
{
pinMode(BUZZER_PIN, OUTPUT);
}
void buzzerOn() {
digitalWrite(BUZZER_PIN, HIGH);
}
void buzzerOff() {
digitalWrite(BUZZER_PIN, LOW);
}
void buzz(int ms) {
buzzerOn();
delay(ms);
buzzerOff();
}