Use IQS62X sensor and move motor by detected angle

Dependencies:   DRV8830 IQS62x IQSDisplayTerminal UIT_ACM1602NI mbed

Fork of Nucleo_ACM1602_I2C_DC by Thinkbed

Committer:
8mona
Date:
Thu Sep 21 11:27:10 2017 +0000
Revision:
5:2b9614aa1171
Add S curve direction

Who changed what in which revision?

UserRevisionLine numberNew contents of line
8mona 5:2b9614aa1171 1 /*
8mona 5:2b9614aa1171 2 * This file contains all the necessary settings for the IQS624 and this file can
8mona 5:2b9614aa1171 3 * be changed from the GUI or edited here
8mona 5:2b9614aa1171 4 * File: IQS624_init.h
8mona 5:2b9614aa1171 5 * Author: Azoteq
8mona 5:2b9614aa1171 6 */
8mona 5:2b9614aa1171 7
8mona 5:2b9614aa1171 8 #ifndef IQS624_INIT_H
8mona 5:2b9614aa1171 9 #define IQS624_INIT_H
8mona 5:2b9614aa1171 10
8mona 5:2b9614aa1171 11 /* Change the Prox Sensor Settings */
8mona 5:2b9614aa1171 12 /* Memory Map Position 0x40 - 0x49 */
8mona 5:2b9614aa1171 13 #define PXS_SETTINGS_0 0x01
8mona 5:2b9614aa1171 14 #define PXS_SETTINGS_1 0x02
8mona 5:2b9614aa1171 15 #define PXS_SETTINGS_2 0x5A
8mona 5:2b9614aa1171 16 #define PXS_SETTINGS_3 0x18
8mona 5:2b9614aa1171 17 #define PXS_SETTINGS_4 0xD0
8mona 5:2b9614aa1171 18 #define PXS_SETTINGS_5 0x00
8mona 5:2b9614aa1171 19 #define PXS_SETTINGS_6 0xE6
8mona 5:2b9614aa1171 20 #define PXS_SETTINGS_7 0x9A
8mona 5:2b9614aa1171 21 #define PXS_SETTINGS_8 0x81
8mona 5:2b9614aa1171 22 #define PXS_SETTINGS_9 0x05
8mona 5:2b9614aa1171 23
8mona 5:2b9614aa1171 24 /* Change the Prox UI Settings */
8mona 5:2b9614aa1171 25 /* Memory Map Position 0x50 - 0x54 */
8mona 5:2b9614aa1171 26 #define PXS_UI_SETTINGS_0 0x14
8mona 5:2b9614aa1171 27 #define PXS_UI_SETTINGS_1 0x20
8mona 5:2b9614aa1171 28 #define PXS_UI_SETTINGS_2 0x14
8mona 5:2b9614aa1171 29 #define PXS_UI_SETTINGS_3 0x20
8mona 5:2b9614aa1171 30 #define PXS_UI_SETTINGS_4 0x28
8mona 5:2b9614aa1171 31
8mona 5:2b9614aa1171 32 /* Change the HALL Sensor Settings */
8mona 5:2b9614aa1171 33 /* Memory Map Position 0x70 - 0x7A */
8mona 5:2b9614aa1171 34 #define HALL_SETTINGS_0 0x04
8mona 5:2b9614aa1171 35 #define HALL_SETTINGS_1 0x03
8mona 5:2b9614aa1171 36 #define HALL_SETTINGS_2 0x93
8mona 5:2b9614aa1171 37 #define HALL_SETTINGS_3 0x93
8mona 5:2b9614aa1171 38 #define HALL_SETTINGS_4 0xAC
8mona 5:2b9614aa1171 39 #define HALL_SETTINGS_5 0xA1
8mona 5:2b9614aa1171 40 #define HALL_SETTINGS_6 0x0A
8mona 5:2b9614aa1171 41 #define HALL_SETTINGS_7 0x09
8mona 5:2b9614aa1171 42 #define HALL_SETTINGS_8 0x46
8mona 5:2b9614aa1171 43 #define HALL_SETTINGS_9 0x70
8mona 5:2b9614aa1171 44 #define HALL_SETTINGS_10 0xE5
8mona 5:2b9614aa1171 45
8mona 5:2b9614aa1171 46 /* Change the Device & PMU Settings */
8mona 5:2b9614aa1171 47 /* Memory Map Position 0xD0 - 0xD7 */
8mona 5:2b9614aa1171 48 #define SYSTEM_SETTINGS 0x08
8mona 5:2b9614aa1171 49 #define ACTIVE_CHS 0x3F
8mona 5:2b9614aa1171 50 #define PMU_SETTINGS 0x03
8mona 5:2b9614aa1171 51 #define REPORT_RATES_TIMINGS_0 0x10
8mona 5:2b9614aa1171 52 #define REPORT_RATES_TIMINGS_1 0x64
8mona 5:2b9614aa1171 53 #define REPORT_RATES_TIMINGS_2 0x0A
8mona 5:2b9614aa1171 54 #define REPORT_RATES_TIMINGS_3 0x14
8mona 5:2b9614aa1171 55 #define REPORT_RATES_TIMINGS_4 0x07
8mona 5:2b9614aa1171 56
8mona 5:2b9614aa1171 57 #endif /* IQS624_INIT_H */