CYUSB3KIT-001 EZ-USB FX3 Development Kit Guide, Doc. #: 001-70237 Rev. *C
18
Getting Started
2.6
Example 1: Blinking LED and push button
The
first_app.c
code blinks an LED attached to a GPIO (General-Purpose IO) pin and reads the
state of a GPIO input pin, printing its state on a Windows terminal whenever the state changes. To
see the results of this application, prepare the small circuit shown in
Figure 2-14
. A small perf-board
with a 0.1 inch header is a convenient way to build this circuit as shown in
Figure 2-15
. J34 is at the
top center of the PCB (red highlight).
Figure 2-14. Circuit to test the FX3_First_App code
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from