Ultra Low Power (5uA) I2C Sensor With Ambient Light Sensing (ALS) + Capacitive Proximity/Touch + Hall Effect Sensor + Inductive Proximity (Metal Detect)
Dependencies: IQS621DisplayTerminal IQS62x mbed
Hello World! From Azoteq's IQS621 Ultra Low Power Multi-Sensor
This is a demo program for the Azoteq IQS621 ultra low power multi function sensor.
Diff: main.cpp
- Revision:
- 6:f64e7e8d5283
- Parent:
- 3:8cce0e52f708
- Child:
- 7:5161c542cdda
diff -r 275f494cbbe8 -r f64e7e8d5283 main.cpp
--- a/main.cpp Fri May 12 05:12:03 2017 +0000
+++ b/main.cpp Fri May 12 17:26:45 2017 +0000
@@ -43,7 +43,7 @@
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
}
IQS621
IQS621-EVAL-1