MatrixDisplay2025/src/beep.h

16 lines
210 B
C

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