CY3270 PSoC® FirstTouch™ Kit Guide, Document No. 001-15945 Rev. *D
57
Code Examples
Figure 5-40. Proximity Antenna Output
5.4
Multifunction Expansion Card Temperature Sensor
This code example demonstrates the temperature sensing, thermistor reading, and calibrating
capabilities of the PSoC device. Depending upon the temperature range within which a particular
temperature reading is recorded, different colored LEDs (red, green, and blue) are turned ON or
OFF.
The code example contains following User Modules:
■
ADC10
: These modules convert analog input to digital form.The ADC module is used to obtain
the digital values for the temperature.
■
LED
: LED is used to display the output based on the data from ADC.
■
EzI2Cs
: The EzI2Cs module configures PSoC on the MultiFunction board as I2C slave. The
Slave data is available for acquisition using a bridge board that is configured as I2C Master.
■
Counter8
: This user module is used to control the buzzer output.