#pragma once #include #include "config.def.h" namespace homekit::relay { inline void init() { pinMode(RELAY_PIN, OUTPUT); } inline bool getState() { return digitalRead(RELAY_PIN) == 1; } inline void setOn() { digitalWrite(RELAY_PIN, HIGH); } inline void setOff() { digitalWrite(RELAY_PIN, LOW); } }