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

  1. //
  2. // Created by iflyt on 2025/3/1.
  3. //
  4. #ifndef VALVECONTROLLER_H
  5. #define VALVECONTROLLER_H
  6. #include "stm32f4xx_hal.h"
  7. // 定义阀门控制相关的宏
  8. #define CLEANING_VALVE_PORT GPIOE // 清洗阀
  9. #define CLEANING_VALVE_PIN GPIO_PIN_1
  10. #define NOZZLE_VALVE_PORT GPIOE // 喷嘴阀
  11. #define NOZZLE_VALVE_PIN GPIO_PIN_2
  12. #define DEHUMIDIFICATION_VALVE_PORT GPIOE // 除湿阀
  13. #define DEHUMIDIFICATION_VALVE_PIN GPIO_PIN_3
  14. /**
  15. * [ 湿 ]
  16. */
  17. class AirValve {
  18. public:
  19. AirValve();
  20. static void initGPIO();
  21. static void openCleaning();
  22. static void closeCleaning();
  23. static void openNozzle();
  24. static void closeNozzle();
  25. static void openDehumidification();
  26. static void closeDehumidification();
  27. };
  28. #endif //VALVECONTROLLER_H