control pump
This commit is contained in:
@@ -81,9 +81,14 @@ void ioHelperEdgeDetector(void);
|
||||
#define LED_KALTWASSER_DRAN_GR 23
|
||||
#define LED_KALTWASSER_DRAN_RT 22
|
||||
|
||||
#define LED_PUMPE_AN 11
|
||||
|
||||
#define OUT_PUMPE_STARTSTOP BitPB5
|
||||
#define OUT_PUMPE_PWM BitPB6
|
||||
|
||||
#define OUT_VENTIL_PUMPE BitPA0
|
||||
#define OUT_VENTIL_ABLASS BitPA1
|
||||
|
||||
//Inputs
|
||||
//Verknüpfen von Pin | Bit mit Bitposition (0...n) inStates[0...n/8].
|
||||
#define BitPinF0 0 //A0
|
||||
@@ -116,4 +121,7 @@ void ioHelperEdgeDetector(void);
|
||||
|
||||
#define IN_KLATWASSER_DRAN 9
|
||||
|
||||
#define BTN_BECKEN_FUELLEN 11
|
||||
#define BTN_BECKEN_LEEREN 12
|
||||
|
||||
#endif
|
||||
|
||||
2
main.c
2
main.c
@@ -18,6 +18,7 @@
|
||||
#include "temperature.h"
|
||||
#include "modbus-master.h"
|
||||
#include "gefran_gtf.h"
|
||||
#include "pumpe.h"
|
||||
|
||||
#include "util/delay.h"
|
||||
|
||||
@@ -207,6 +208,7 @@ int main()
|
||||
send_value(&mqtt_client, "/Filamentanlage/02_Wasserbecken/uptime", millis()/1000);
|
||||
}
|
||||
|
||||
do_pumpe();
|
||||
do_notaus();
|
||||
|
||||
#if PLC_MQTT_ENABLED
|
||||
|
||||
Reference in New Issue
Block a user