Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: IQS621DisplayTerminal IQS62x mbed
Diff: main.cpp
- Revision:
- 13:12c6c0af1536
- Parent:
- 12:158b7c3dc8dc
diff -r 158b7c3dc8dc -r 12c6c0af1536 main.cpp
--- a/main.cpp Sun May 14 19:50:26 2017 +0000
+++ b/main.cpp Sun May 14 20:49:15 2017 +0000
@@ -41,7 +41,7 @@
int main() {
terminal.helloMessage(false); // say hello but don't wait for a keypress
iqs62x.configure(); // configure the IC
- char * color = iqs62x.getTable(color_any_register_that_changed_in_the_previous_20_reads) ;
+ char * color = iqs62x.getTable( color_any_register_that_was_written_but_then_changed ); // color registers that differ from their initialized value
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
IQS621
IQS621-EVAL-1