Ultra Low Power (5uA) I2C Multi-Function Sensor with Light Sensor + Active (Reflective) IR + Touch + Hall Effect Sensor

Dependencies:   IQS622DisplayTerminal IQS62x mbed

Hello World! From Azoteq's IQS622 Ultra Low Power Multi-Sensor


This is a demo program for the Azoteq IQS622 ultra low power multi function sensor.

More details on the IQS622 component pages here:

Components / IQS622
Azoteq IQS622 ultra low power sensor for ambient light, active (reflective) IR, magnetic field, capacitance and inductive proximity. Empowers next-generation user interfaces.


Low Cost Evaluation Board for Azoteq IQS622 Ultra Low Power (5uA) I2C Multi-Function Sensor with Light Sensor, Active (Reflective) IR, Touch and Hall Effect Sensor

Files at this revision

API Documentation at this revision

Comitter:
AzqDev
Date:
Sat May 13 01:19:30 2017 +0000
Parent:
2:5421ef308e42
Child:
4:2c5ea9dc0662
Commit message:
Color highlighting

Changed in this revision

IQS622DisplayTerminal.lib Show annotated file Show diff for this revision Revisions of this file
IQS62x.lib Show annotated file Show diff for this revision Revisions of this file
deviceType.h Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/IQS622DisplayTerminal.lib	Fri May 12 05:12:43 2017 +0000
+++ b/IQS622DisplayTerminal.lib	Sat May 13 01:19:30 2017 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/Azoteq/code/IQS622DisplayTerminal/#932376194edb
+https://developer.mbed.org/teams/Azoteq/code/IQS622DisplayTerminal/#20266bfaa709
--- a/IQS62x.lib	Fri May 12 05:12:43 2017 +0000
+++ b/IQS62x.lib	Sat May 13 01:19:30 2017 +0000
@@ -1,1 +1,1 @@
-https://mbed.org/teams/Azoteq/code/IQS62x/#7c2666dfbc9a
+https://mbed.org/teams/Azoteq/code/IQS62x/#5a9bbbd6e312
--- a/deviceType.h	Fri May 12 05:12:43 2017 +0000
+++ b/deviceType.h	Sat May 13 01:19:30 2017 +0000
@@ -1,2 +1,5 @@
-// device type
-#define DEVICE_TYPE_IQS622 1
\ No newline at end of file
+// device type - not currently used but available
+#define DEVICE_TYPE_IQS622 1
+
+// used by IQS62x lib when we want to override the simple configure() function
+//#define OVERRIDE_CONFIGURE 1
\ No newline at end of file
--- a/main.cpp	Fri May 12 05:12:43 2017 +0000
+++ b/main.cpp	Sat May 13 01:19:30 2017 +0000
@@ -43,9 +43,9 @@
     wait(3);
     iqs62x.configure(); // configure the IC
     while(1) {
-        iqs62x.readAll(); // read all the registers
+        iqs62x.readIqsRegisters(0,NUMBER_OF_REGISTERS); // read all the registers
         terminal.showStatus(iqs62x.I2Cspeed,iqs62x.I2CErrorCount); // show heading and number of I2C errors
-        terminal.showRegisters(iqs62x.registers); // show IQS62x registers
+        terminal.showRegisters(iqs62x.registers,iqs62x.writeChanges); // show IQS62x registers, color highlight of changes
     }
 }