22 #define PCA9532_I2C_ADDR (0x60)
24 #define PCA9532_INPUT0 0x00
25 #define PCA9532_INPUT1 0x01
26 #define PCA9532_PSC0 0x02
27 #define PCA9532_PWM0 0x03
28 #define PCA9532_PSC1 0x04
29 #define PCA9532_PWM1 0x05
30 #define PCA9532_LS0 0x06
31 #define PCA9532_LS1 0x07
32 #define PCA9532_LS2 0x08
33 #define PCA9532_LS3 0x09
35 #define PCA9532_AUTO_INC 0x10
48 #define KEY_MASK 0x000F
61 #define PCA9532_NOT_USED 0xC0
79 #define LED_MASK 0xFF00
81 void pca9532_init (
void);
82 uint16_t pca9532_getLedState (uint32_t shadow);
83 void pca9532_setLeds (uint16_t ledOnMask, uint16_t ledOffMask);
84 void pca9532_setBlink0Period(uint8_t period);
85 void pca9532_setBlink0Duty(uint8_t duty);
86 void pca9532_setBlink0Leds(uint16_t ledMask);
87 void pca9532_setBlink1Period(uint8_t period);
88 void pca9532_setBlink1Duty(uint8_t duty);
89 void pca9532_setBlink1Leds(uint16_t ledMask);