lorawan/sodaq_one/buzzer.ino
Nico Schottelius 70bd008498 Cleanup
2016-10-24 21:34:02 +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();
}