18 lines
244 B
C
18 lines
244 B
C
#ifndef BEEP_H
|
|
#define BEEP_H
|
|
|
|
#include <Arduino.h>
|
|
|
|
#define BEEP_PIN 2
|
|
|
|
inline void beepSet(const bool state) {
|
|
digitalWrite(BEEP_PIN, state ? HIGH : LOW);
|
|
}
|
|
|
|
inline void beepSetup() {
|
|
pinMode(BEEP_PIN,OUTPUT);
|
|
beepSet(false);
|
|
}
|
|
|
|
#endif
|