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