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-geiger/main/actuators.h

29 lines
542 B

//
// Created by MightyPork on 2022/08/20.
//
#ifndef FANCTL_ACTUATORS_H
#define FANCTL_ACTUATORS_H
#include <stdbool.h>
#include <stdint.h>
void act_init();
extern uint32_t pwm_freq;
extern uint32_t pwm_duty;
extern uint32_t pwm_on;
extern uint32_t pwm_thres;
extern uint32_t last_adc_mv;
extern uint32_t last_cpm;
extern uint32_t count_total;
extern float last_usv_h;
extern float total_usv;
void act_pwm_set(bool on);
void act_pwm_update_conf();
void act_statusled_set(bool on);
uint32_t act_read_adc();
#endif //FANCTL_ACTUATORS_H