Ultra Low Power (5uA) I2C Sensor With Ambient Light Sensing (ALS) + Capacitive Proximity/Touch + Hall Effect Sensor + Inductive Proximity (Metal Detect)

Dependencies:   IQS621DisplayTerminal IQS62x mbed

Hello World! From Azoteq's IQS621 Ultra Low Power Multi-Sensor

This is a demo program for the Azoteq IQS621 ultra low power multi function sensor.

Components / IQS621
Azoteq IQS621 ultra low power sensor for ambient light, magnetic field, capacitance and inductive proximity. Empowers next-generation user interfaces.


Low Cost Evaluation Board For Azoteq IQS621ultra low power I2C sensor for ambient light, magnetic field, capacitance, inductive proximity and temperature.

Committer:
AzqDev
Date:
Fri May 12 17:26:45 2017 +0000
Revision:
6:f64e7e8d5283
Child:
14:4da43ebf6117
IQS621_Init.h processing

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AzqDev 6:f64e7e8d5283 1 /*
AzqDev 6:f64e7e8d5283 2 * This file contains all the necessary settings for the IQS621 and this file can
AzqDev 6:f64e7e8d5283 3 * be changed from the GUI or edited here
AzqDev 6:f64e7e8d5283 4 * File: IQS621_init.h
AzqDev 6:f64e7e8d5283 5 * Author: Azoteq
AzqDev 6:f64e7e8d5283 6 */
AzqDev 6:f64e7e8d5283 7
AzqDev 6:f64e7e8d5283 8 #ifndef IQS621_INIT_H
AzqDev 6:f64e7e8d5283 9 #define IQS621_INIT_H
AzqDev 6:f64e7e8d5283 10
AzqDev 6:f64e7e8d5283 11 /* Change the Prox Sensor Settings */
AzqDev 6:f64e7e8d5283 12 /* Memory Map Position 0x40 - 0x4D */
AzqDev 6:f64e7e8d5283 13 #define PXS_SETTINGS_0 0x01
AzqDev 6:f64e7e8d5283 14 #define PXS_SETTINGS_1 0x01
AzqDev 6:f64e7e8d5283 15 #define PXS_SETTINGS_2 0x57
AzqDev 6:f64e7e8d5283 16 #define PXS_SETTINGS_3 0x57
AzqDev 6:f64e7e8d5283 17 #define PXS_SETTINGS_4 0x18
AzqDev 6:f64e7e8d5283 18 #define PXS_SETTINGS_5 0xD0
AzqDev 6:f64e7e8d5283 19 #define PXS_SETTINGS_6 0x06
AzqDev 6:f64e7e8d5283 20 #define PXS_SETTINGS_7 0x06
AzqDev 6:f64e7e8d5283 21 #define PXS_SETTINGS_8 0x00
AzqDev 6:f64e7e8d5283 22 #define PXS_SETTINGS_9 0x01
AzqDev 6:f64e7e8d5283 23 #define PXS_SETTINGS_10 0xA1
AzqDev 6:f64e7e8d5283 24 #define PXS_SETTINGS_11 0x65
AzqDev 6:f64e7e8d5283 25 #define PXS_SETTINGS_12 0x44
AzqDev 6:f64e7e8d5283 26 #define PXS_SETTINGS_13 0x0C
AzqDev 6:f64e7e8d5283 27
AzqDev 6:f64e7e8d5283 28 /* Change the Prox UI Settings */
AzqDev 6:f64e7e8d5283 29 /* Memory Map Position 0x50 - 0x54 */
AzqDev 6:f64e7e8d5283 30 #define PXS_UI_SETTINGS_0 0x14
AzqDev 6:f64e7e8d5283 31 #define PXS_UI_SETTINGS_1 0x20
AzqDev 6:f64e7e8d5283 32 #define PXS_UI_SETTINGS_2 0x14
AzqDev 6:f64e7e8d5283 33 #define PXS_UI_SETTINGS_3 0x20
AzqDev 6:f64e7e8d5283 34 #define PXS_UI_SETTINGS_4 0x28
AzqDev 6:f64e7e8d5283 35
AzqDev 6:f64e7e8d5283 36 /* Change the Metal Detect UI Settings */
AzqDev 6:f64e7e8d5283 37 /* Memory Map Position 0x60 - 0x63 */
AzqDev 6:f64e7e8d5283 38 #define METAL_UI_SETTINGS_0 0x00
AzqDev 6:f64e7e8d5283 39 #define METAL_UI_SETTINGS_1 0x01
AzqDev 6:f64e7e8d5283 40 #define METAL_UI_SETTINGS_2 0x14
AzqDev 6:f64e7e8d5283 41 #define METAL_UI_SETTINGS_3 0x20
AzqDev 6:f64e7e8d5283 42
AzqDev 6:f64e7e8d5283 43 /* Change the Light Sensor Settings */
AzqDev 6:f64e7e8d5283 44 /* Memory Map Position 0x70 - 0x73 */
AzqDev 6:f64e7e8d5283 45 #define LIGHT_SENSOR_SETTINGS_0 0x14
AzqDev 6:f64e7e8d5283 46 #define LIGHT_SENSOR_SETTINGS_1 0x80
AzqDev 6:f64e7e8d5283 47 #define LIGHT_SENSOR_SETTINGS_2 0x07
AzqDev 6:f64e7e8d5283 48 #define LIGHT_SENSOR_SETTINGS_3 0x00
AzqDev 6:f64e7e8d5283 49
AzqDev 6:f64e7e8d5283 50 /* Change the ALS UI Settings */
AzqDev 6:f64e7e8d5283 51 /* Memory Map Position 0x80 - 0x83 */
AzqDev 6:f64e7e8d5283 52 #define ALS_UI_SETTINGS_0 0x0A
AzqDev 6:f64e7e8d5283 53 #define ALS_UI_SETTINGS_1 0x0A
AzqDev 6:f64e7e8d5283 54 #define ALS_UI_SETTINGS_2 0x27
AzqDev 6:f64e7e8d5283 55 #define ALS_UI_SETTINGS_3 0x04
AzqDev 6:f64e7e8d5283 56
AzqDev 6:f64e7e8d5283 57 /* Change the HALL Sensor Settings */
AzqDev 6:f64e7e8d5283 58 /* Memory Map Position 0x90 - 0x93 */
AzqDev 6:f64e7e8d5283 59 #define HALL_SENSOR_SETTINGS_0 0x03
AzqDev 6:f64e7e8d5283 60 #define HALL_SENSOR_SETTINGS_1 0x50
AzqDev 6:f64e7e8d5283 61 #define HALL_SENSOR_SETTINGS_2 0xB0
AzqDev 6:f64e7e8d5283 62 #define HALL_SENSOR_SETTINGS_3 0x0A
AzqDev 6:f64e7e8d5283 63
AzqDev 6:f64e7e8d5283 64 /* Change the HALL Switch UI Settings */
AzqDev 6:f64e7e8d5283 65 /* Memory Map Position 0xA0 - 0xA2 */
AzqDev 6:f64e7e8d5283 66 #define HALL_UI_SETTINGS_0 0x11
AzqDev 6:f64e7e8d5283 67 #define HALL_UI_SETTINGS_1 0x19
AzqDev 6:f64e7e8d5283 68 #define HALL_UI_SETTINGS_2 0x19
AzqDev 6:f64e7e8d5283 69
AzqDev 6:f64e7e8d5283 70 /* Change the Temperature UI Settings */
AzqDev 6:f64e7e8d5283 71 /* Memory Map Position 0xC0 - 0xC3 */
AzqDev 6:f64e7e8d5283 72 #define TEMP_UI_SETTINGS_0 0x00
AzqDev 6:f64e7e8d5283 73 #define TEMP_UI_SETTINGS_1 0x08
AzqDev 6:f64e7e8d5283 74 #define TEMP_UI_SETTINGS_2 0x79
AzqDev 6:f64e7e8d5283 75 #define TEMP_UI_SETTINGS_3 0xFF
AzqDev 6:f64e7e8d5283 76
AzqDev 6:f64e7e8d5283 77 /* Change the Device & PMU Settings */
AzqDev 6:f64e7e8d5283 78 /* Memory Map Position 0xD0 - 0xD7 */
AzqDev 6:f64e7e8d5283 79 #define SYSTEM_SETTINGS 0x08
AzqDev 6:f64e7e8d5283 80 #define ACTIVE_CHS 0x7F
AzqDev 6:f64e7e8d5283 81 #define PMU_SETTINGS 0x03
AzqDev 6:f64e7e8d5283 82 #define REPORT_RATES_TIMINGS_0 0x10
AzqDev 6:f64e7e8d5283 83 #define REPORT_RATES_TIMINGS_1 0x64
AzqDev 6:f64e7e8d5283 84 #define REPORT_RATES_TIMINGS_2 0x0A
AzqDev 6:f64e7e8d5283 85 #define REPORT_RATES_TIMINGS_3 0x14
AzqDev 6:f64e7e8d5283 86 #define GLOBAL_EVENT_MASK 0x00
AzqDev 6:f64e7e8d5283 87
AzqDev 6:f64e7e8d5283 88 #endif /* IQS621_INIT_H */