Ulta Low Power I2C Multi-Sensor: Capacitive Touch, Magnetic Field & Inductive Proximity.
Dependencies: IQS620DisplayTerminal IQS62x mbed
Fork of IQS620_HelloWorld by
Hello World! From Azoteq's IQS620 Ultra Low Power Multi-Sensor
This is an mbed hardware demo program for the Azoteq IQS620 ultra low power multisensor.
More details on the IQS620 (and verified mbed boards) on these component pages:
IQS620 Eval Kit board Connected to mbed LPC1768 board.
Revision 10:3f86cd2277cc, committed 2017-05-14
- Comitter:
- AzqDev
- Date:
- Sun May 14 19:48:03 2017 +0000
- Parent:
- 9:b289fdc8ce32
- Child:
- 11:ec335b94291b
- Commit message:
- Simplified main
Changed in this revision
--- a/IQS620DisplayTerminal.lib Sat May 13 16:16:43 2017 +0000 +++ b/IQS620DisplayTerminal.lib Sun May 14 19:48:03 2017 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/teams/Azoteq/code/IQS620DisplayTerminal/#da8082c7476a +https://developer.mbed.org/teams/Azoteq/code/IQS620DisplayTerminal/#1e48e6e5e996
--- a/IQS62x.lib Sat May 13 16:16:43 2017 +0000 +++ b/IQS62x.lib Sun May 14 19:48:03 2017 +0000 @@ -1,1 +1,1 @@ -https://mbed.org/teams/Azoteq/code/IQS62x/#6a2f52b5ac46 +https://mbed.org/teams/Azoteq/code/IQS62x/#b77c819f6c6a
--- a/main.cpp Sat May 13 16:16:43 2017 +0000
+++ b/main.cpp Sun May 14 19:48:03 2017 +0000
@@ -42,19 +42,11 @@
int main() {
terminal.helloMessage(false); // say hello but don't wait for a keypress
iqs62x.configure(); // configure the IC
- while(1) { // main loop to continuously dump all registers
+ char * color = iqs62x.getTable(color_any_register_that_was_written_but_then_changed );
+ while(1) {
iqs62x.readIqsRegisters(0,NUMBER_OF_REGISTERS); // read all the registers
-
terminal.showStatus(iqs62x.I2Cspeed,iqs62x.I2CErrorCount); // show heading and number of I2C errors
-
- char * highlightTable; // a highlight table contains 1 byte per register - if the byte != 0 the register will be highlighted during display
- highlightTable = 0; // use a NULL table to make all registers print plain with no highlighting
- highlightTable = iqs62x.writeChanges; // table that highlights all registers that were written/configured but now contain a different value
- highlightTable = iqs62x.readChangesEver; // table that highlights all registers that ever changed since the previous read
- highlightTable = iqs62x.readChanges; // table that highlights all registers that changed since the previous read
- highlightTable = iqs62x.writeFlag; // table that highlights all registers that were written/initialized - can be used to verify configure()
-
- terminal.showRegisters(iqs62x.registers, highlightTable); // display the registers and highlight the ones marked in the highlight table
- }
+ terminal.showRegisters(iqs62x.registers, color, false); // display registers, color the registers that changed
+ }
}
// end of IQS620_HelloWorld.cpp
\ No newline at end of file

IQS620A
IQS620A-EVAL-1