MiraOS example applications¶
The SDK comes with a number of minimal example applications, which demonstrate how to use network functions, onboard peripherals, and click interface boards with the least possible amount of code.
Each application consists of at least 4 files:
- a main C source code file,
- a makefile,
- a linker file, and
- a startup code file.
Each application is briefly documented in its main C source code file. Most applications require jumpers and/or click interface boards to be attached on the development board, so make sure to read the documentation for the application!
hello_world application is a minimal program that prints "Hello world!".
Onboard Peripherals Examples¶
gpio_example applications demonstrate usage of the onboard ADC and GPIO peripherals, respectively.
These examples demonstrate network credentials setup and sending and receiving messages.
network_receiver_example applications demonstrate network credentials setup and sending and receiving messages, respectively.
network_example demonstrates network credentials setup and sending and receiving messages, in a single binary to be run on several development boards.
Click Interface Board Examples¶
These examples demonstrate usage of the click interface boards included with the Better World Kit.
ir_distance_example demonstrate usage of the MOTION click and IR distance click, respectively.
relay_example example demonstrates controlling a RELAY click with the onboard button.
spi_example applications demonstrate using the I²C, PWM and SPI interfaces with the Accel click, BUZZ click, and LIN HALL click, respectively.
The click interface boards used in these examples are not included in the Better World Kit.