The set of Blinky tutorials show you how to create, build, and run a
“Hello World” application that blinks a LED on the various target boards
that Mynewt supports. The tutorials use the same Blinky application from
the Creating Your First Mynewt Project tutorial.
Learn how to use packages from a default application repository of
Mynewt to build your first Hello World application (Blinky) on a
target board. Once built using the newt tool, this application will
blink a LED light on the target board.
Tutorials are available for the following boards:
- Blinky, your “Hello World!”, on Arduino Zero
- Blinky, your “Hello World!”, on Arduino Primo
- Blinky, your “Hello World!”, on Olimex
- Blinky, your “Hello World!”, on a nRF52 Development Kit
- Blinky, your “Hello World!”, on RedBear Nano 2
- Blinky, your “Hello World!”, on STM32F4-Discovery
We also have a tutorial that shows you how to add Enabling The Console and Shell for Blinky.
Ensure that you meet the following prerequisites before
continuing with one of the tutorials.
- Have Internet connectivity to fetch remote Mynewt components.
- Have a computer to build a Mynewt application and connect to the
board over USB.
- Have a Micro-USB cable to connect the board and the computer.
- Install the newt tool and toolchains (See Setup & Get Started).
- Read the Mynewt OS Concepts section.
- Create a project space (directory structure) and populate it with the
core code repository (apache-mynewt-core) or know how to as explained
in Creating Your First Mynewt Project.
These are the general steps to create, load and run the Blinky application on your board:
- Create a project.
- Define the bootloader and Blinky application targets for the board.
- Build the bootloader target.
- Build the Blinky application target and create an application image.
- Connect to the board.
- Load the bootloader onto the board.
- Load the Blinky application image onto the board.
- See the LED on your board blink.
After you try the Blinky application on your boards, checkout out other
tutorials to enable additional functionality such as remote
comms on the current board. If you have BLE
(Bluetooth Low Energy) chip (e.g. nRF52) on your board, you can try
turning it into an iBeacon or Eddystone
If you see anything missing or want to send us feedback, please sign up
for appropriate mailing lists on our Community