Ultra Low Power (5uA) I2C Multi-Function Sensor with Light Sensor + Active (Reflective) IR + Touch + Hall Effect Sensor
Dependencies: IQS622DisplayTerminal IQS62x mbed
Hello World! From Azoteq's IQS622 Ultra Low Power Multi-Sensor
This is a demo program for the Azoteq IQS622 ultra low power multi function sensor.
More details on the IQS622 component pages here:
IQS622_Init/IQS622_Init.h@5:c88aa2de6f61, 2017-05-13 (annotated)
- Committer:
- AzqDev
- Date:
- Sat May 13 02:49:40 2017 +0000
- Revision:
- 5:c88aa2de6f61
- Parent:
- 4:2c5ea9dc0662
- Child:
- 14:7d68f0175c0e
Added colorTable variable
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AzqDev | 4:2c5ea9dc0662 | 1 | /* |
AzqDev | 5:c88aa2de6f61 | 2 | * This file contains all the necessary settings for the IQS622 and this file can |
AzqDev | 4:2c5ea9dc0662 | 3 | * be changed from the GUI or edited here |
AzqDev | 5:c88aa2de6f61 | 4 | * File: IQS621_init.h |
AzqDev | 4:2c5ea9dc0662 | 5 | * Author: Azoteq |
AzqDev | 4:2c5ea9dc0662 | 6 | */ |
AzqDev | 4:2c5ea9dc0662 | 7 | |
AzqDev | 5:c88aa2de6f61 | 8 | #ifndef IQS622_INIT_H |
AzqDev | 5:c88aa2de6f61 | 9 | #define IQS622_INIT_H |
AzqDev | 4:2c5ea9dc0662 | 10 | |
AzqDev | 4:2c5ea9dc0662 | 11 | /* Change the Prox Sensor Settings */ |
AzqDev | 5:c88aa2de6f61 | 12 | /* Memory Map Position 0x40 - 0x4D */ |
AzqDev | 4:2c5ea9dc0662 | 13 | #define PXS_SETTINGS_0 0x01 |
AzqDev | 4:2c5ea9dc0662 | 14 | #define PXS_SETTINGS_1 0x02 |
AzqDev | 5:c88aa2de6f61 | 15 | #define PXS_SETTINGS_2 0x57 |
AzqDev | 5:c88aa2de6f61 | 16 | #define PXS_SETTINGS_3 0x57 |
AzqDev | 5:c88aa2de6f61 | 17 | #define PXS_SETTINGS_4 0x18 |
AzqDev | 5:c88aa2de6f61 | 18 | #define PXS_SETTINGS_5 0xD0 |
AzqDev | 5:c88aa2de6f61 | 19 | #define PXS_SETTINGS_6 0x06 |
AzqDev | 5:c88aa2de6f61 | 20 | #define PXS_SETTINGS_7 0x06 |
AzqDev | 5:c88aa2de6f61 | 21 | #define PXS_SETTINGS_8 0x00 |
AzqDev | 5:c88aa2de6f61 | 22 | #define PXS_SETTINGS_9 0x01 |
AzqDev | 5:c88aa2de6f61 | 23 | #define PXS_SETTINGS_10 0x22 |
AzqDev | 5:c88aa2de6f61 | 24 | #define PXS_SETTINGS_11 0xB1 |
AzqDev | 5:c88aa2de6f61 | 25 | #define PXS_SETTINGS_12 0x81 |
AzqDev | 5:c88aa2de6f61 | 26 | #define PXS_SETTINGS_13 0x03 |
AzqDev | 4:2c5ea9dc0662 | 27 | |
AzqDev | 4:2c5ea9dc0662 | 28 | /* Change the Prox UI Settings */ |
AzqDev | 4:2c5ea9dc0662 | 29 | /* Memory Map Position 0x50 - 0x54 */ |
AzqDev | 4:2c5ea9dc0662 | 30 | #define PXS_UI_SETTINGS_0 0x14 |
AzqDev | 4:2c5ea9dc0662 | 31 | #define PXS_UI_SETTINGS_1 0x20 |
AzqDev | 4:2c5ea9dc0662 | 32 | #define PXS_UI_SETTINGS_2 0x14 |
AzqDev | 5:c88aa2de6f61 | 33 | #define PXS_UI_SETTINGS_3 0x25 |
AzqDev | 4:2c5ea9dc0662 | 34 | #define PXS_UI_SETTINGS_4 0x28 |
AzqDev | 4:2c5ea9dc0662 | 35 | |
AzqDev | 5:c88aa2de6f61 | 36 | /* Change the SAR UI Settings */ |
AzqDev | 5:c88aa2de6f61 | 37 | /* Memory Map Position 0x60 - 0x65 */ |
AzqDev | 5:c88aa2de6f61 | 38 | #define SAR_UI_SETTINGS_0 0x14 |
AzqDev | 5:c88aa2de6f61 | 39 | #define SAR_UI_SETTINGS_1 0x25 |
AzqDev | 5:c88aa2de6f61 | 40 | #define SAR_UI_SETTINGS_2 0x05 |
AzqDev | 5:c88aa2de6f61 | 41 | #define SAR_UI_SETTINGS_3 0x14 |
AzqDev | 5:c88aa2de6f61 | 42 | #define SAR_UI_SETTINGS_4 0x20 |
AzqDev | 5:c88aa2de6f61 | 43 | #define SAR_UI_SETTINGS_5 0x28 |
AzqDev | 5:c88aa2de6f61 | 44 | |
AzqDev | 5:c88aa2de6f61 | 45 | /* Change the Light Sensor Settings */ |
AzqDev | 5:c88aa2de6f61 | 46 | /* Memory Map Position 0x70 - 0x75 */ |
AzqDev | 5:c88aa2de6f61 | 47 | #define LIGHT_SENSOR_SETTINGS_0 0x14 |
AzqDev | 5:c88aa2de6f61 | 48 | #define LIGHT_SENSOR_SETTINGS_1 0x81 |
AzqDev | 5:c88aa2de6f61 | 49 | #define LIGHT_SENSOR_SETTINGS_2 0x07 |
AzqDev | 5:c88aa2de6f61 | 50 | #define LIGHT_SENSOR_SETTINGS_3 0x81 |
AzqDev | 5:c88aa2de6f61 | 51 | #define LIGHT_SENSOR_SETTINGS_4 0x01 |
AzqDev | 5:c88aa2de6f61 | 52 | #define LIGHT_SENSOR_SETTINGS_5 0x01 |
AzqDev | 5:c88aa2de6f61 | 53 | |
AzqDev | 5:c88aa2de6f61 | 54 | /* Change the Active IR UI Settings */ |
AzqDev | 5:c88aa2de6f61 | 55 | /* Memory Map Position 0x90 - 0x92 */ |
AzqDev | 5:c88aa2de6f61 | 56 | #define IR_UI_SETTINGS_0 0x11 |
AzqDev | 5:c88aa2de6f61 | 57 | #define IR_UI_SETTINGS_1 0x19 |
AzqDev | 5:c88aa2de6f61 | 58 | #define IR_UI_SETTINGS_2 0x19 |
AzqDev | 5:c88aa2de6f61 | 59 | #define IR_UI_SETTINGS_3 0x01 |
AzqDev | 5:c88aa2de6f61 | 60 | |
AzqDev | 4:2c5ea9dc0662 | 61 | /* Change the HALL Sensor Settings */ |
AzqDev | 5:c88aa2de6f61 | 62 | /* Memory Map Position 0xA0 - 0xA3 */ |
AzqDev | 5:c88aa2de6f61 | 63 | #define HALL_SENSOR_SETTINGS_0 0x03 |
AzqDev | 5:c88aa2de6f61 | 64 | #define HALL_SENSOR_SETTINGS_1 0x50 |
AzqDev | 5:c88aa2de6f61 | 65 | #define HALL_SENSOR_SETTINGS_2 0x20 |
AzqDev | 5:c88aa2de6f61 | 66 | #define HALL_SENSOR_SETTINGS_3 0x4A |
AzqDev | 5:c88aa2de6f61 | 67 | |
AzqDev | 5:c88aa2de6f61 | 68 | /* Change the HALL Switch UI Settings */ |
AzqDev | 5:c88aa2de6f61 | 69 | /* Memory Map Position 0xB0 - 0xB2 */ |
AzqDev | 5:c88aa2de6f61 | 70 | #define HALL_UI_SETTINGS_0 0x11 |
AzqDev | 5:c88aa2de6f61 | 71 | #define HALL_UI_SETTINGS_1 0x19 |
AzqDev | 5:c88aa2de6f61 | 72 | #define HALL_UI_SETTINGS_2 0x19 |
AzqDev | 4:2c5ea9dc0662 | 73 | |
AzqDev | 4:2c5ea9dc0662 | 74 | /* Change the Device & PMU Settings */ |
AzqDev | 4:2c5ea9dc0662 | 75 | /* Memory Map Position 0xD0 - 0xD7 */ |
AzqDev | 4:2c5ea9dc0662 | 76 | #define SYSTEM_SETTINGS 0x08 |
AzqDev | 5:c88aa2de6f61 | 77 | #define ACTIVE_CHS 0x7F |
AzqDev | 4:2c5ea9dc0662 | 78 | #define PMU_SETTINGS 0x03 |
AzqDev | 4:2c5ea9dc0662 | 79 | #define REPORT_RATES_TIMINGS_0 0x10 |
AzqDev | 4:2c5ea9dc0662 | 80 | #define REPORT_RATES_TIMINGS_1 0x64 |
AzqDev | 4:2c5ea9dc0662 | 81 | #define REPORT_RATES_TIMINGS_2 0x0A |
AzqDev | 4:2c5ea9dc0662 | 82 | #define REPORT_RATES_TIMINGS_3 0x14 |
AzqDev | 5:c88aa2de6f61 | 83 | #define GLOBAL_EVENT_MASK 0x00 |
AzqDev | 4:2c5ea9dc0662 | 84 | |
AzqDev | 5:c88aa2de6f61 | 85 | #endif /* IQS622_INIT_H */ |