#ifndef BEEP_H #define BEEP_H #include #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