54
CY3270 PSoC® FirstTouch™ Kit Guide, Document No. 001-15945 Rev. *D
Code Examples
Figure 5-38. Light Sense Output
5.3
MultiFunction Expansion Card Proximity Sensor
This code example demonstrates the capacitive sensing and proximity detection capability of
Cypress's PSoC technology. Proximity detection requires that you use the supplied blue proximity
antenna.
Insert the bare end of the wire in the PRX1 connector located in the middle of the board. As you
move your finger near and far from the proximity detection antenna, the red and green LEDs turn on
and off. At close proximity, the green LED turns ON.
The code example contains the following User Modules
■
CSD
: The CSD module is used to scan the CapSense based proximity sensor and determine the
proximity of a object to the antenna.
■
LED
: LED is used to display the output based on the data from CapSense.
■
EzI2Cs
: The EzI2Cs module configures the PSoC on Multifunction board as I2C slave. The Slave
data is available for acquisition using a Bridge Board that is configured as I2C Master.