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: main.cpp
- Revision:
- 2:ce90bf4d3273
- Parent:
- 1:6a05a08a9e73
- Child:
- 3:481d56f2b398
--- a/main.cpp Thu May 04 22:31:45 2017 +0000 +++ b/main.cpp Fri May 05 18:00:59 2017 +0000 @@ -13,20 +13,20 @@ // Tested on the following MBED hardware - mostly using Azoteq-to-Arduino Adapter Boards // Note: When compiling for new hardware, use "Compile All" to rebuild everything // Note 2: If you get "unkown target type" in USBxxx.h, remove the USB library -// 1. ST Micro Nucleo-L152RE Azoteq Adapter Boards: AZP675E02, AZP690A02, AZP690002 -// 2. ST Micro Nucleo-F401RE Azoteq Adapter Boards: AZP675E02, AZP690A02, AZP690002 -// 3. ST Micro Nucleo-L476RG Azoteq Adapter Boards: AZP675E02, AZP690A02, AZP690002 -// 4. ST Micro Nucleo-L053R8 Azoteq Adapter Boards: AZP675E02, AZP690A02, AZP690002 -// 5. ST Micro Nucleo-F446RE Azoteq Adapter Boards: AZP675E02, AZP690A02, AZP690002 -// 6. ST Micro Disco-F746NG Azoteq Adapter Boards: AZP675E02, AZP690A02, AZP690002 -// 7. Freescale FRDM-KL46Z Azoteq Adapter Boards: AZP675E02, AZP690A02, AZP690002 -// 8. Freescale FRDM-KL25Z Azoteq Adapter Boards: AZP675E02, AZP690A02, AZP690002 +// 1. ST Micro Nucleo-L152RE Azoteq Adapter Boards: AZP675E02, AZP690A02, AZP690A02 +// 2. ST Micro Nucleo-F401RE Azoteq Adapter Boards: AZP675E02, AZP690A02, AZP690A02 +// 3. ST Micro Nucleo-L476RG Azoteq Adapter Boards: AZP675E02, AZP690A02, AZP690A02 +// 4. ST Micro Nucleo-L053R8 Azoteq Adapter Boards: AZP675E02, AZP690A02, AZP690A02 +// 5. ST Micro Nucleo-F446RE Azoteq Adapter Boards: AZP675E02, AZP690A02, AZP690A02 +// 6. ST Micro Disco-F746NG Azoteq Adapter Boards: AZP675E02, AZP690A02, AZP690A02 +// 7. Freescale FRDM-KL46Z Azoteq Adapter Boards: AZP675E02, AZP690A02, AZP690A02 +// 8. Freescale FRDM-KL25Z Azoteq Adapter Boards: AZP675E02, AZP690A02, AZP690A02 // 9. mbed LPC1768 Azoteq adapter AZP690A02 [SDA,SCL,RDY] wired to LPC1768 [p28,p27,p26] // 10. mbed LPC11U24 Azoteq adapter AZP690A02 [SDA,SCL,RDY] wired to LPC11U24 [p28,p27,p26] // These two boards additionally require the USBDevice library: https://developer.mbed.org/users/mbed_official/code/USBDevice/ -// 11. Teensy 3.1 Azoteq adapter AZP690002 [SDA,SCL,RDY] wired to Teensy 3.1 [p18,p19,p2] -// 12. Teensy 3.2 Azoteq adapter AZP690002 [SDA,SCL,RDY] wired to Teensy 3.2 [p18,p19,p2] +// 11. Teensy 3.1 Azoteq adapter AZP690A02 [SDA,SCL,RDY] wired to Teensy 3.1 [p18,p19,p2] +// 12. Teensy 3.2 Azoteq adapter AZP690A02 [SDA,SCL,RDY] wired to Teensy 3.2 [p18,p19,p2] #include "mbed.h" #include "IQS62x.h" @@ -36,7 +36,8 @@ IQS62xIO iqs62x; // class for basic IQS62x block read and write int main() { - terminal.helloMessage(true); // say hello + terminal.helloMessage(false); // say hello but don't wait for a keypress + wait(3); iqs62x.configure(); // configure the IC while(1) { iqs62x.readAll(); // read all the registers