Figure 4-58. User Button on BLE Pioneer Kit with PSoC 4 BLE Module
10.Check if the LED behavior changes for each alert notification on the BLE Dongle according to the
following table:
Alert Level
No Alert
Mild Alert
High Alert
Note: To revert the CySmart functionality to the dongle, program the dongle hex file, as described in
Updating BLE Dongle for CySmart Central Emulation Tool on page
4.5
BLE Dongle and LED Control
4.5.1
Project Description
This firmware supports the CySmart debug tool (see
acting as the BLE host emulator. This is the default firmware that comes in the BLE Dongle shipped
with the kit.
This project additionally demonstrates LED brightness control via a custom BLE profile, which works
with the CapSense slider example explained in
The device will scan for the Peripheral acting as a CapSense Slider and LED device, and connect to
it automatically. This is achieved by filtering the advertisement packets for the CapSense Slider
service data. Then, it will enable slider notifications and process the received notifications.
Whenever CapSense detects activity, it will notify the finger location to the BLE Dongle; it will update
the LED brightness using PWM.
The custom GATT client LED control will be stopped if the CySmart Central Emulation Tool acquires
the dongle. The dongle will enter the CySmart emulator mode, in which it will process all BLE
commands as triggered by the user via the tool. The project uses custom command/event protocol
to exchange data between the CySmart Central Emulation Tool and the BLE device via a USB-CDC
CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *C
LED State
LED Off
LED Blinking
LED On
35.
CySmart Mobile Application on page
CapSense Slider and LED on page
Example Projects
112) by
45.
77
Need help?
Do you have a question about the CY8CKIT-042-BLE and is the answer not in the manual?