recuperator fan control with esp32
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
esp-recuperator/main/actuators.h

36 lines
659 B

//
// Created by MightyPork on 2022/08/20.
//
#ifndef FANCTL_ACTUATORS_H
#define FANCTL_ACTUATORS_H
#include <stdbool.h>
#include <stdint.h>
enum motor_direction {
MOTOR_DIR_IN = 0,
MOTOR_DIR_OUT = 1
};
struct actuators_status {
enum motor_direction dir;
bool blind;
bool led;
bool buzzer;
uint16_t power;
};
extern struct actuators_status gAct;
void act_init();
void act_buzzer_set(bool on);
void act_motor_power_set(uint16_t perc);
void act_motor_direction_set(enum motor_direction dir);
void act_blind_set(bool open);
void act_led_set(bool on);
int16_t act_temp_in();
int16_t act_temp_out();
#endif //FANCTL_ACTUATORS_H