Lab 19. Blinking LEDs
Project 01bsp_gpio_wave
is a standalone project for the AIOT Play (i.e. the Play doesn’t join the network) which toggles all of the GPIO pins in a round-robin fashion, with a 125ms delay. In this lab, you will build and run that project on your AIOT Play, connect an LED to the prototyping area, and see the LED blink.
What is a GPIO?
“GPIO” means “General Purpose Input/Output”, and refers to the pins on the expansion header.
Open the project
In the source code, double-click on the aiot_play_fw.emProject
file
This open SEGGER Embedded workbench (you may need to accept the license agreement).
Make 01bsp_gpio_wave
the active project
The pane on the left title “Project Items” lists the different projects you can build in this workspace. By default, the first project in alphabetical order is active (bold). Right-click on “Project ‘01bsp_gpio_wave’” and select “Set as Active Project” to make is active.
before | after |
---|---|
|
|
Connection
Connect the nRF52840-DK to the AIOT Play
Connect an LED according to the schematics
Put batteries in the AIOT Play
Plug in the nRF52840-DK
Switch the nRF52840-DK on
In Segger, select “Build and Debug” which will compile the project and load the resulting binary on the AIOT Play
The LED blinks vigorously
Congrats! You have build your first circuit and programmed your AIOT Play to control it!!!