CY8CKIT-040 PSoC
®
4000 Pioneer Kit Guide, Doc. # 001-91316 Rev. *F
101
Code Examples
5.5.3
Verify Output
Build and program the code example onto the device. The default color for the RGB LEDs is blue.
Therefore, when you move over the proximity sensor before touching the Trackpad, the RGB LED
turns blue. Follow these steps to verify the code.
1. Touch the color palette on the Trackpad, as shown in
. The color touched will be dis-
played in the RGB LEDs.
Note:
Because the LED is bigger (compared to pixels in displays and paper), the individual color/
LED may be visible at some points. An extra diffuser such as a thin paper can be placed on top of
the RGB LED, to see proper color mixing. In addition, the LEDs can exhibit different maximum
brightness levels depending on the maximum current that can flow through them and the maxi-
mum luminosity they can generate (brightness = current × luminosity-to-current-ratio). For
instance, red can be brighter than blue for a given series resistance, because of higher luminosity
to current ratio and lower voltage drop across them, which results in higher current. For such
cases, the brighter color's intensity can be limited to ensure proper mixing. An example for the
same is also presented in the example project by limiting the intensity of the red LED to ~85 per-
cent.
Note that when the brightness slider is set to minimum/zero brightness, touches on the color area
are not displayed on the LED.
Figure 5-55. Color Palette Output in Active Scanning Mode
2. Move through the slider area provided at the right corner of the Trackpad to adjust the brightness
level of the color. Observe the color varying from Off to full brightness from one end to other.
Note:
When moving from the color selection area to the slider area, remove your finger from the
Trackpad and place it back on the slider for it to work normally. This is implemented to prevent
accidental touches to the slider area when selecting color near the slider area.
3. Move away from the Trackpad and observe the color shown in the LED gradually ramp down
after 2-3 seconds and go off after approximately 5 seconds.
Содержание 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...