Ulta Low Power I2C Multi-Sensor: Capacitive Touch, Magnetic Field & Inductive Proximity.

Dependencies:   IQS620DisplayTerminal IQS62x mbed

Fork of IQS620_HelloWorld by Azq Dev

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:

Components / IQS620A
Ultra low power sensor for magnetic field, capacitive touch and inductive proximity. Empowers next-generation user interfaces.

Low Cost Evaluation Board For Azoteq IQS620A ultra low power sensor for magnetic field, capacitance, inductive proximity and temperature. Empowers next-generation user interfaces.


/media/uploads/AzqDev/iqs620-mbed-lpc1768-azoteq-touch-magnetic-inductive-temperature-sensor.gif
IQS620 Eval Kit board Connected to mbed LPC1768 board.

IQS620_Init/IQS620_Init.h

Committer:
AzqDev
Date:
2017-08-21
Revision:
19:b532417017e2
Parent:
6:250df5794541

File content as of revision 19:b532417017e2:

/*
* This file contains all the necessary settings for the IQS620 and this file can
* be changed from the GUI or edited here
* File:   IQS620_init.h
* Author: Azoteq
*/

#ifndef IQS620_INIT_H
#define IQS620_INIT_H

/* Change the Prox Sensor Settings 0 */
/* Memory Map Position 0x40 - 0x4F */
#define PXS_SETTINGS0_0                     0x01
#define PXS_SETTINGS0_1                     0x02
#define PXS_SETTINGS0_2                     0x03
#define PXS_SETTINGS0_3                     0x57
#define PXS_SETTINGS0_4                     0x57
#define PXS_SETTINGS0_5                     0x1F
#define PXS_SETTINGS0_6                     0x58
#define PXS_SETTINGS0_7                     0xD0
#define PXS_SETTINGS0_8                     0x10
#define PXS_SETTINGS0_9                     0x06
#define PXS_SETTINGS0_10                        0x06
#define PXS_SETTINGS0_11                        0x06

/* Change the Prox Sensor Settings 1 */
/* Memory Map Position 0x50 - 0x59 */
#define PXS_SETTINGS1_0                     0x00
#define PXS_SETTINGS1_1                     0x01
#define PXS_SETTINGS1_2                     0xD1
#define PXS_SETTINGS1_3                     0xA0
#define PXS_SETTINGS1_4                     0xAA
#define PXS_SETTINGS1_5                     0x42
#define PXS_SETTINGS1_6                     0x03
#define PXS_SETTINGS1_7                     0x0C

/* Change the Prox UI Settings */
/* Memory Map Position 0x60 - 0x68 */
#define PXS_UI_SETTINGS_0                   0x14
#define PXS_UI_SETTINGS_1                   0x28
#define PXS_UI_SETTINGS_2                   0x14
#define PXS_UI_SETTINGS_3                   0x28
#define PXS_UI_SETTINGS_4                   0x14
#define PXS_UI_SETTINGS_5                   0x28
#define PXS_UI_SETTINGS_6                   0x28

/* Change the SAR UI Settings */
/* Memory Map Position 0x70 - 0x75 */
#define SAR_UI_SETTINGS_0                   0x14
#define SAR_UI_SETTINGS_1                   0x28
#define SAR_UI_SETTINGS_2                   0x05
#define SAR_UI_SETTINGS_3                   0x14
#define SAR_UI_SETTINGS_4                   0x28
#define SAR_UI_SETTINGS_5                   0x28

/* Change the Metal Detect UI Settings */
/* Memory Map Position 0x80 - 0x83 */
#define METAL_DETECT_UI_SETTINGS_0              0xA2
#define METAL_DETECT_UI_SETTINGS_1              0x0A
#define METAL_DETECT_UI_SETTINGS_2              0x14
#define METAL_DETECT_UI_SETTINGS_3              0x28

/* Change the HALL Sensor Settings */
/* Memory Map Position 0x90 - 0x93 */
#define HALL_SENSOR_SETTINGS_0              0x03
#define HALL_SENSOR_SETTINGS_1              0x50
#define HALL_SENSOR_SETTINGS_2              0x30
#define HALL_SENSOR_SETTINGS_3              0x48

/* Change the HALL Switch UI Settings */
/* Memory Map Position 0xA0 - 0xA2 */
#define HALL_UI_SETTINGS_0                  0x00
#define HALL_UI_SETTINGS_1                  0x19
#define HALL_UI_SETTINGS_2                  0x19

/* Change the Temperature UI Settings */
/* Memory Map Position 0xC0 - 0xC3 */
#define TEMP_UI_SETTINGS_0                  0x00
#define TEMP_UI_SETTINGS_1                  0x08
#define TEMP_UI_SETTINGS_2                  0x79
#define TEMP_UI_SETTINGS_3                  0xFF

/* Change the Device & PMU Settings */
/* Memory Map Position 0xD0 - 0xD7 */
#define SYSTEM_SETTINGS                     0x08
#define ACTIVE_CHS                          0x3F
#define PMU_SETTINGS                        0x03
#define REPORT_RATES_TIMINGS_0              0x10
#define REPORT_RATES_TIMINGS_1              0x64
#define REPORT_RATES_TIMINGS_2              0x0A
#define REPORT_RATES_TIMINGS_3              0x14
#define GLOBAL_EVENT_MASK                   0x00
#define PWM_DUTY_CYCLE                  0x00

#endif  /* IQS620_INIT_H */