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
Revision 2:c16cb655d4a4, committed 2017-02-06
- Comitter:
- AzqDev
- Date:
- Mon Feb 06 05:37:22 2017 +0000
- Parent:
- 1:2f08ab339e17
- Child:
- 3:e26d7c502309
- Commit message:
- Required commit message
Changed in this revision
| IQS62x.cpp | Show annotated file Show diff for this revision Revisions of this file |
| IQS62x.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/IQS62x.cpp Sat Feb 04 20:12:53 2017 +0000 +++ b/IQS62x.cpp Mon Feb 06 05:37:22 2017 +0000 @@ -1,4 +1,6 @@ // A class library for Azoteq IQS62x devices +// Copyright 2017 Azoteq. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + #include "IQS62x.h" // constructor
--- a/IQS62x.h Sat Feb 04 20:12:53 2017 +0000 +++ b/IQS62x.h Mon Feb 06 05:37:22 2017 +0000 @@ -2,13 +2,14 @@ #include "mbed.h" // 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 */ +#define IQS_I2C_CLOCK_PIN p27 /* on LPC1768/LPC11U24 this is marked as p10 */ +#define IQS_I2C_DATA_PIN p28 /* on LPC1768/LPC11U24 this is marked as p9 */ +#define IQS_READY_PIN p26 /* on LPC1768/LPC11U24 this is marked as p8 */ + #else +// If your board has an Arduino interface the definitions below will likely work #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 */
IQS624
IQS620A
IQS620A-EVAL-1
IQS621
IQS621-EVAL-1
IQS622
IQS622-EVAL-1
IQS624-EVAL-1