Library to read and write Azoteq IQS6xx device registers via I2C.
Dependents: IQS620_HelloWorld IQS622_HelloWorld IQS624_HelloWorld IQS621_HelloWorld ... more
Library: IQS62x
Library to read and write Azoteq IQS6xx device registers via I2C.
Supported Devices
Handy Table of ProxFusion Device Features
ALS = Ambient Light Sensor PIR = Passive Infrared
Diff: IQS62x.h
- Revision:
- 1:2f08ab339e17
- Parent:
- 0:ce75ae1e8fc7
- Child:
- 2:c16cb655d4a4
diff -r ce75ae1e8fc7 -r 2f08ab339e17 IQS62x.h --- a/IQS62x.h Sat Feb 04 07:19:09 2017 +0000 +++ b/IQS62x.h Sat Feb 04 20:12:53 2017 +0000 @@ -4,9 +4,15 @@ // Verify these 3 pin definitions if your hardware is not on the list of tested boards // If your board has an Arduino interface the definitions below will likely work +#if defined (TARGET_LPC1768) || defined (TARGET_LPC11U24) +#define IQS_I2C_CLOCK_PIN p27 /* on LPC1768/LPC11U24 this is marked as p27 */ +#define IQS_I2C_DATA_PIN p28 /* on LPC1768/LPC11U24 this is marked as p28 */ +#define IQS_READY_PIN p26 /* on LPC1768/LPC11U24 this is marked as p26 */ +#else #define IQS_I2C_CLOCK_PIN I2C_SCL /* on NUCLEO boards this is marked as SCL/D15 on CN5 */ #define IQS_I2C_DATA_PIN I2C_SDA /* on NUCLEO boards this is marked as SDA/D14 on CN5 */ #define IQS_READY_PIN D2 /* on NUCLEO boards this is marked as D2 on CN9 */ +#endif #define I2C_ADR (0x44 << 1) /* I2C address of IQS62x */ #define I2CSPEED 100000 /* I2C clock speed */