diff --git a/main.c b/main.c index 7214538..d8d6b53 100644 --- a/main.c +++ b/main.c @@ -23,6 +23,7 @@ #include "kraftsensor.h" #include "taenzer.h" #include "abzug.h" +#include "spule.h" Client mqtt_client; @@ -199,6 +200,7 @@ int main() do_notaus(); do_abzug(); do_taenzer(); + do_spule(); #if PLC_MQTT_ENABLED ioHelperSetBit(outStates, LED_BUS_OK, 1); diff --git a/spule.c b/spule.c new file mode 100644 index 0000000..5de7743 --- /dev/null +++ b/spule.c @@ -0,0 +1,30 @@ +#include +#include "avrIOhelper/io-helper.h" + +void timer5_init() +{ + TCCR5A |= (1<