基质喷涂
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.
 
 
 
 

34 lines
792 B

//
// Created by iflyt on 2025/3/1.
//
#ifndef VALVECONTROLLER_H
#define VALVECONTROLLER_H
#include "stm32f4xx_hal.h"
// 定义阀门控制相关的宏
#define CLEANING_VALVE_PORT GPIOE // 清洗阀
#define CLEANING_VALVE_PIN GPIO_PIN_1
#define NOZZLE_VALVE_PORT GPIOE // 喷嘴阀
#define NOZZLE_VALVE_PIN GPIO_PIN_2
#define DEHUMIDIFICATION_VALVE_PORT GPIOE // 除湿阀
#define DEHUMIDIFICATION_VALVE_PIN GPIO_PIN_3
/**
* 气阀控制 [ 清洗阀 喷嘴阀 除湿阀 ]
*/
class AirValve {
public:
AirValve();
static void initGPIO();
static void openCleaning();
static void closeCleaning();
static void openNozzle();
static void closeNozzle();
static void openDehumidification();
static void closeDehumidification();
};
#endif //VALVECONTROLLER_H