forked from electro/esp-irblaster
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.
35 lines
640 B
35 lines
640 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;
|
|
uint16_t power;
|
|
};
|
|
|
|
extern struct actuators_status gAct;
|
|
|
|
void act_init();
|
|
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);
|
|
void act_statusled_set(bool on);
|
|
|
|
int16_t act_temp1();
|
|
int16_t act_temp2();
|
|
|
|
#endif //FANCTL_ACTUATORS_H
|
|
|