![](/media/cache/group/i2c_logo.png.50x50_q85.png)
Low-voltage 16-bit I2C-bus GPIO with Agile I/O, interrupt and weak pull-up
Dependencies: mbed
Diff: PCAL9555A.h
- Revision:
- 0:e714fc19ba54
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PCAL9555A.h Wed Feb 04 06:11:10 2015 +0000 @@ -0,0 +1,32 @@ +#define PCAL9555A_ADDR 0x40 +//#define PCAL9555A_ADDR 0x42 +//#define PCAL9555A_ADDR 0x44 +//#define PCAL9555A_ADDR 0x46 +//#define PCAL9555A_ADDR 0x48 +//#define PCAL9555A_ADDR 0x4a +//#define PCAL9555A_ADDR 0x4c +//#define PCAL9555A_ADDR 0x4e + +#define Input_port0 0x00 +#define Input_port1 0x01 +#define Output_port0 0x02 +#define Output_port1 0x03 +#define Polarity_Inversion0 0x04 +#define Polarity_Inversion1 0x05 +#define Configuration0 0x06 +#define Configuration1 0x07 +#define Output_Drive_Strength00 0x40 +#define Output_Drive_Strength01 0x41 +#define Output_Drive_Strength10 0x42 +#define Output_Drive_Strength11 0x43 +#define Input_latch0 0x44 +#define Input_latch1 0x45 +#define PUPD_enable0 0x46 +#define PUPD_enable1 0x47 +#define PUPD_selection0 0x48 +#define PUPD_selection1 0x49 +#define Interrupt_mask0 0x4A +#define Interrupt_mask1 0x4B +#define Interrupt_status0 0x4C +#define Interrupt_status1 0x4D +#define Output_port_configuration 0x4f