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.
31 lines
570 B
31 lines
570 B
2 years ago
|
//
|
||
|
// Created by MightyPork on 2022/08/20.
|
||
|
//
|
||
|
|
||
|
#ifndef FANCTL_ACTUATORS_H
|
||
|
#define FANCTL_ACTUATORS_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 g_Act;
|
||
|
|
||
|
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);
|
||
|
|
||
|
#endif //FANCTL_ACTUATORS_H
|