light.h 360 B

12345678910111213141516171819202122232425
  1. #ifndef __LIGHT_H__
  2. #define __LIGHT_H__
  3. // 暖光 pwm脚
  4. #define GPIO_WARM P24
  5. // 冷光 pwm脚
  6. #define GPIO_COLD P25
  7. // 风扇 pwm
  8. #define GPIO_FAN P23
  9. // btn +
  10. #define GPIO_BTN_PLUS P26
  11. // btn -
  12. #define GPIO_BTN_MINUS P27
  13. // adc 电源监测脚
  14. #define GPIO_POWER P28
  15. extern int light_init(void);
  16. extern int light_set(uint8_t ch, uint8_t val);
  17. #endif