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
Diff: IQS62x.cpp
- Revision:
- 16:b77c819f6c6a
- Parent:
- 15:6a2f52b5ac46
- Child:
- 17:2d46eabb129e
diff -r 6a2f52b5ac46 -r b77c819f6c6a IQS62x.cpp
--- a/IQS62x.cpp Sat May 13 16:08:38 2017 +0000
+++ b/IQS62x.cpp Sun May 14 19:21:42 2017 +0000
@@ -106,7 +106,19 @@
if(IQSready==0) break;
if (timeout++ > 1000000) goto fatal_error;
}
- return;
+ return;;
fatal_error:
error ("Fatal Error: IQS62x ready pin is not toggling");
+}
+
+// return one of the tables of changes that we maintain
+char * IQS62xIO::getTable( int option )
+{
+ switch ( option ) {
+ case 1 : return readChangesEver; // a table to flag any register that ever changed
+ case 2 : return readChanges; // a table to flag any register that changed in the last 20 reads
+ case 3 : return writeFlag; // a table to flag any register we wrote to or initialized
+ case 4 : return writeChanges; // a table to flag any register we wrote to but then its value changed
+ default: return NULL;;
+ }
}
\ No newline at end of file
IQS624
IQS620A
IQS620A-EVAL-1
IQS621
IQS621-EVAL-1
IQS622
IQS622-EVAL-1
IQS624-EVAL-1