This guide reviews the steps required to build and run a Blinky application on the FRDM-K64F without using DigitalOut class and timers by manipulating the hardware mapped IO registers directly.
Please install Mbed CLI.
From the command-line, import the example:
git clone https://github.com/ARMmbed/mbed-os-examples-docs_only.git
cd mbed-os-examples-docs_only/Direct-Register-Blinky
mbed config root .
mbed deploy
mbed compile -m k64f -t gcc_arm
- Connect your Mbed device to the computer over USB.
- Copy the binary file to the Mbed device.
- Observe LED blinking.
MIRRORED FROM MASTER EXAMPLE SNIPPETS REPOSITORY: mbed-os-examples-docs_only. ANY CHANGES MADE DIRECTLY TO THIS REPOSITORY WILL BE AUTOMATICALLY OVERWRITTEN.