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.h
- Revision:
- 16:b77c819f6c6a
- Parent:
- 14:2514595e2753
- Child:
- 17:2d46eabb129e
diff -r 6a2f52b5ac46 -r b77c819f6c6a IQS62x.h
--- a/IQS62x.h Sat May 13 16:08:38 2017 +0000
+++ b/IQS62x.h Sun May 14 19:21:42 2017 +0000
@@ -46,7 +46,17 @@
void writeRegister(int address, int data); // write a byte to a register
void configure(); // write configuration registers of the IQS62x
- void readAll(); // read all registers from the IQS62x
void readIqsRegisters(int start, int count); // starting at "start" read count registers
void waitForIqsReady(); // wait for IQS62x ready signal
-};
\ No newline at end of file
+ char * getTable( int ); // fetch one of the tables containing changes in register values
+ // an enumerated type we use in main to select one of the tables of changes
+};
+
+// used with getTable()
+enum changeType {
+ color_nothing=0, // no change table selected
+ color_any_register_that_ever_changed=1, // a table to flag any register that ever changed
+ color_any_register_that_changed_in_the_previous_20_reads=2, // a table to flag any register that changed in the last 20 reads
+ color_any_register_that_was_written_or_initialized=3, // a table to flag any register we wrote to or initialized
+ color_any_register_that_was_written_but_then_changed=4 // a table to flag any register we wrote to but then its value changed
+};
IQS624
IQS620A
IQS620A-EVAL-1
IQS621
IQS621-EVAL-1
IQS622
IQS622-EVAL-1
IQS624-EVAL-1