CY8CKIT-040 PSoC
®
4000 Pioneer Kit Guide, Doc. # 001-91316 Rev. *F
78
Code Examples
5.4.2.2
Firmware Details
shows the flow chart of code implemented in
main.c
.
Figure 5-31. CapSense Touchpad With I
2
C Tuner Project Flow Chart
5.4.2.3
Hardware Connections
Plug the Trackpad shield board into the Arduino headers of the kit, as shown in
. Other
connections are hardwired on the board.
Open
CY8CKIT_040_CapSense_I2C.cydwr
in the
Workspace Explorer
and select the suitable pin.
Table 5-10. Pin Connection
1
1. Trackpad_X0 (Touchpad0_Col0_TP) to Trackpad_X5 (Touchpad0_Col5_TP) maps to
COL5 to COL0 of the Trackpad so as to make the Trackpad x-axis left aligned.
Pin Name
Port Name
CMOD
P0_4
Trackpad_X0
P0_3
Trackpad_X1
P0_7
Trackpad_X2
P0_6
Trackpad_X3
P0_5
Trackpad_X4
P0_0
Trackpad_X5
P0_1
Trackpad_Y0
P1_4
Trackpad_Y1
P1_5
Trackpad_Y2
P1_6
Trackpad_Y3
P1_0
Trackpad_Y4
P1_7
I2C_SCL
P1_2
I2C_SDA
P1_3
Initialize CapSense and
Enable Tuner
Process CapSense and
Send data over tuner
Start
Содержание CY8CKIT-040 PSoC 4000 Pioneer Kit
Страница 20: ...CY8CKIT 040 PSoC 4000 Pioneer Kit Guide Doc 001 91316 Rev F 20 Kit Operation...
Страница 37: ...CY8CKIT 040 PSoC 4000 Pioneer Kit Guide Doc 001 91316 Rev F 37 Hardware...
Страница 73: ...CY8CKIT 040 PSoC 4000 Pioneer Kit Guide Doc 001 91316 Rev F 73 Code Examples Raw count and Baseline...