MatrixDisplay2025/src/beep.h
2025-08-07 11:06:15 +02:00

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