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.
Diff: IQS620DisplayTerminal/IQS620DisplayTerminal.h
- Revision:
- 0:f1f07b4c5580
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/IQS620DisplayTerminal/IQS620DisplayTerminal.h Thu May 04 22:19:59 2017 +0000
@@ -0,0 +1,32 @@
+// A class library to display Azoteq IQS620 registers on a terminal
+
+// More info on IQS620 sensor IC: http://bit.ly/IQS620-info
+
+// IQS620 1-minute youtube video: N.A.
+
+#include "mbed.h"
+
+#define DISPLAY_BAUD_RATE 115200 /* baud rate of serial terminal */
+
+
+#if defined(TARGET_TEENSY3_1) || defined (TARGET_TEENSY3_2) || IQS_USE_USBSERIAL
+#warning if USBSerial.h can't be found import this library: developer.mbed.org/users/mbed_official/code/USBDevice
+// USBSerial.h comes from the library http://developer.mbed.org/users/mbed_official/code/USBDevice which MUST be imported for Teensy
+#include "USBSerial.h"
+// USBSerial.h comes from the library http://developer.mbed.org/users/mbed_official/code/USBDevice which MUST be imported for Teensy
+#endif
+
+#if defined(TARGET_TEENSY3_1) || defined (TARGET_TEENSY3_2) || IQS_USE_USBSERIAL
+class IQS620Display : public USBSerial { // use our own USB serial port (requires USB driver to be installed, see Teensy Website)
+ public: void baud(int baudRate);
+#else
+class IQS620Display : public Serial { // use ARM mbed virtual serial port
+#endif
+
+ public:
+ int frameCounter;
+ IQS620Display(); // constructor
+ void helloMessage(bool); // show startup message
+ void showStatus(int,int); // show headings and I2C Error Count
+ void showRegisters(char *); // show IQS62x registers
+};
\ No newline at end of file

IQS620A
IQS620A-EVAL-1