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:
Diff: main.cpp
- Revision:
- 3:9592cb4b5ba0
- Parent:
- 0:91dc088313ac
- Child:
- 5:c88aa2de6f61
diff -r 5421ef308e42 -r 9592cb4b5ba0 main.cpp
--- 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
}
}
IQS622
IQS622-EVAL-1