User Manual Part 1

CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 51
Example Projects
4.2.3 Flow Chart
Figure 4-11 shows the flow chart of the code implemented.
Figure 4-11. CapSense Slider and LED Project Flow Chart
Start
Advertisement
CapSense Slider
Swipped?
Received RGB
LED Data?
NO
BLE Connection
Still Present?
NO
Send finger position
over CapSense
custom service
YES
Extract Data and
change color/
brightness on LED.
Keep LED ON for
set time
YES
Connected to BLE
Central device before
timeout?
YES
NO
Notifications
Enabled?
YES
NO
System in Deep Sleep and
waiting for User button press
NO
Advertisement
Time-out?
NO
YES
Put system to low power
mode and wait for interrupt
from BLE Link Layer
YES
System initialized.
Wait for interrupt from User
Button to Wakeup
Process BLE
Events