User Manual Part 1

CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 66
Example Projects
4.3.3 Flow Chart
Figure 4-38 shows the flow chart of code implemented.
Figure 4-38. CapSense Proximity Project Flow Chart
Start
Advertisement
Proximity value
Changed?
Send the proximity
data to BLE
Central device
BLE connection
still exists?
YES
NO
YES
Connected to BLE
Central device?
NO
Notification
enabled?
YES
NO
System is put in Sleep and
waits for User Button press
NO
Advertisement
Time-out?
NO
System initialized.
Wait for interrupt from User
Button to Wakeup
Put system to low power
mode and wait for interrupt
from BLE Link Layer
YES
YES
Process BLE
events