Getting Started with EZ-BT WICED Modules
Document Number: 002-23400 Rev. **
109
Appendix D.
Code Examples
The WICED Studio SDK comes with a set of sample application
projects that demonstrate a variety of Bluetooth BR/EDR, BLE and
peripheral functionality. These projects are available in the Project
Explorer inside the IDE, as
Example projects can speed up your design process by starting you off
with a reference design, instead of a blank page. Code examples
include
comments
describing
their
functionality
and
basic
demonstration instructions near the top of the main
.c
source file for
each project.
Each example also has a dedicated make target available to provide
an easy way to build and download onto an EZ-BT Module. These
make targets should be renamed before use in order to provide
compatibility with the CYBT-343026-EVAL board. Simply change the
“CYW920706WCDEVAL”
portion
of
the
target
name
to
“CYBT_343026_EVAL” instead. For example:
Before:
demo.hello_sensor-
CYW920706WCDEVAL
download
After:
demo.hello_sensor-
CYBT_343026_EVAL
download
Some examples assume peripheral devices that are not present or are
routed differently on the CYBT-343026-EVAL board compared to
CYW920706WCDEVAL evaluation board. The table below defines all
built-in peripherals and their routed pin connections.
Table 23. CYBT-343026-EVAL Pin Assignments
Pin
Function
Macro
P24
Button (active HIGH)
WICED_P00
P14
LED (active LOW)
WICED_P28
P2
PUART RXD
WICED_P04
P0
PUART TXD
WICED_P31
P1
PUART RTS
WICED_P30
P3
PUART CTS
WICED_P03
These pins are defined in the custom platform files (refer
for CYBT-343026-EVAL), accessible via compiler macros to improve
code portability. However, some projects may also use pin numbers
directly. As you explore the examples that come with the SDK, be sure
to double-check any instances of GPIO pin usage if you encounter
compiler errors or missing peripheral functionality.
Figure 73. Code Examples in WICED Studio