light.h 290 B

12345678910111213141516171819202122
  1. #ifndef __LIGHT_H__
  2. #define __LIGHT_H__
  3. // 暖光 pwm脚
  4. #define GPIO_WARM P18
  5. // 冷光 pwm脚
  6. #define GPIO_COLD P20
  7. // 风扇 pwm
  8. #define GPIO_FAN P23
  9. // adc 电源监测脚
  10. #define GPIO_POWER P28
  11. extern int light_init(void);
  12. extern int light_set(uint8_t ch, uint8_t val);
  13. #endif