OuterPanel_LED.h 442 B

1234567891011121314151617181920
  1. #ifndef _OUTERPANELLED_H
  2. #define _OUTERPANELLED_H
  3. #include "sys.h"
  4. #include "PCA9548.h"
  5. #define LED_ADDR 0x78
  6. #define LED_SWITCH (1<<4)
  7. #define LED_COUNT 18
  8. #define LED_COUNT_MAX 36
  9. #define LED_PWM_REG 1
  10. #define LED_REFRESH_REG 0x25
  11. #define LED_CTRL_REG 0x26
  12. #define LED_DEFAULT_VALUE 0xBF
  13. void LED_Config(u8* datas,u8 len);
  14. extern void LED_Send_CMD(u8 reg,u8 datas);
  15. extern void LED_ALL(u8 enable);
  16. extern void LED_Init(void);
  17. #endif