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.
IQS620DisplayTerminal/IQS620DisplayTerminal.h@0:f1f07b4c5580, 2017-05-04 (annotated)
- Committer:
- AzqDev
- Date:
- Thu May 04 22:19:59 2017 +0000
- Revision:
- 0:f1f07b4c5580
IQS620 up and running
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| AzqDev | 0:f1f07b4c5580 | 1 | // A class library to display Azoteq IQS620 registers on a terminal |
| AzqDev | 0:f1f07b4c5580 | 2 | |
| AzqDev | 0:f1f07b4c5580 | 3 | // More info on IQS620 sensor IC: http://bit.ly/IQS620-info |
| AzqDev | 0:f1f07b4c5580 | 4 | |
| AzqDev | 0:f1f07b4c5580 | 5 | // IQS620 1-minute youtube video: N.A. |
| AzqDev | 0:f1f07b4c5580 | 6 | |
| AzqDev | 0:f1f07b4c5580 | 7 | #include "mbed.h" |
| AzqDev | 0:f1f07b4c5580 | 8 | |
| AzqDev | 0:f1f07b4c5580 | 9 | #define DISPLAY_BAUD_RATE 115200 /* baud rate of serial terminal */ |
| AzqDev | 0:f1f07b4c5580 | 10 | |
| AzqDev | 0:f1f07b4c5580 | 11 | |
| AzqDev | 0:f1f07b4c5580 | 12 | #if defined(TARGET_TEENSY3_1) || defined (TARGET_TEENSY3_2) || IQS_USE_USBSERIAL |
| AzqDev | 0:f1f07b4c5580 | 13 | #warning if USBSerial.h can't be found import this library: developer.mbed.org/users/mbed_official/code/USBDevice |
| AzqDev | 0:f1f07b4c5580 | 14 | // USBSerial.h comes from the library http://developer.mbed.org/users/mbed_official/code/USBDevice which MUST be imported for Teensy |
| AzqDev | 0:f1f07b4c5580 | 15 | #include "USBSerial.h" |
| AzqDev | 0:f1f07b4c5580 | 16 | // USBSerial.h comes from the library http://developer.mbed.org/users/mbed_official/code/USBDevice which MUST be imported for Teensy |
| AzqDev | 0:f1f07b4c5580 | 17 | #endif |
| AzqDev | 0:f1f07b4c5580 | 18 | |
| AzqDev | 0:f1f07b4c5580 | 19 | #if defined(TARGET_TEENSY3_1) || defined (TARGET_TEENSY3_2) || IQS_USE_USBSERIAL |
| AzqDev | 0:f1f07b4c5580 | 20 | class IQS620Display : public USBSerial { // use our own USB serial port (requires USB driver to be installed, see Teensy Website) |
| AzqDev | 0:f1f07b4c5580 | 21 | public: void baud(int baudRate); |
| AzqDev | 0:f1f07b4c5580 | 22 | #else |
| AzqDev | 0:f1f07b4c5580 | 23 | class IQS620Display : public Serial { // use ARM mbed virtual serial port |
| AzqDev | 0:f1f07b4c5580 | 24 | #endif |
| AzqDev | 0:f1f07b4c5580 | 25 | |
| AzqDev | 0:f1f07b4c5580 | 26 | public: |
| AzqDev | 0:f1f07b4c5580 | 27 | int frameCounter; |
| AzqDev | 0:f1f07b4c5580 | 28 | IQS620Display(); // constructor |
| AzqDev | 0:f1f07b4c5580 | 29 | void helloMessage(bool); // show startup message |
| AzqDev | 0:f1f07b4c5580 | 30 | void showStatus(int,int); // show headings and I2C Error Count |
| AzqDev | 0:f1f07b4c5580 | 31 | void showRegisters(char *); // show IQS62x registers |
| AzqDev | 0:f1f07b4c5580 | 32 | }; |

IQS620A
IQS620A-EVAL-1