CY3270 PSoC® FirstTouch™ Kit Guide, Document No. 001-15945 Rev. *D
53
Code Examples
5.2.2
Firmware Architecture
5.2.2.1
Flowchart
5.2.2.2
Verify Output
1. When light is present, the LED is switched ON
2. When light is not present, LED is switched OFF
Start
If ADC_Data >ZERO
Enable Global Interrupts
Turn ON Blue
LED
Initialize ADC, LED, EzI2Cs
Modules
Yes
Get ADC Data from Light
Sensor
No
Turn OFF Blue
LED