|
|
|
@ -57,9 +57,10 @@ void IO_LIBRARY_Init(void) {
|
|
|
|
#define STEP_SIZE 5
|
|
|
|
#define STEP_SIZE 5
|
|
|
|
#define TOP_VALUE 40
|
|
|
|
#define TOP_VALUE 40
|
|
|
|
void do_luefter(){
|
|
|
|
void do_luefter(){
|
|
|
|
static uint8_t fan_value = TOP_VALUE*0.8;
|
|
|
|
static uint8_t fan_value = TOP_VALUE*0.5;
|
|
|
|
static uint8_t fan_state = 0;
|
|
|
|
static uint8_t fan_state = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!read_Input(IN_ANLAGE_EIN, LEVEL)){
|
|
|
|
if(!read_Input(IN_ANLAGE_EIN, LEVEL)){
|
|
|
|
fan_state = 0;
|
|
|
|
fan_state = 0;
|
|
|
|
ioHelperSetBit(outStates, LED_LUEFTER, 0);
|
|
|
|
ioHelperSetBit(outStates, LED_LUEFTER, 0);
|
|
|
|
|