zephyr/samples/boards/bbc_microbit/sound
Kumar Gala a1b77fd589 zephyr: replace zephyr integer types with C99 types
git grep -l 'u\(8\|16\|32\|64\)_t' | \
		xargs sed -i "s/u\(8\|16\|32\|64\)_t/uint\1_t/g"
	git grep -l 's\(8\|16\|32\|64\)_t' | \
		xargs sed -i "s/s\(8\|16\|32\|64\)_t/int\1_t/g"

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-06-08 08:23:57 -05:00
..
src zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
CMakeLists.txt samples: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
README.rst samples: bbc_microbit: cleanups 2020-05-13 19:51:01 +02:00
prj.conf
sample.yaml

README.rst

.. _microbit_sound:

BBC micro:bit sound
###################

Overview
********

This sample demonstrates how to use a piezo buzzer connected
to port P0 on the edge connector of the BBC micro:bit board.

Requirements
************

A separate piezo buzzer connected to the board. One example is the MI:Power
board that has a piezo buzzer in addition to a coin-cell battery. Resellers of
this board can be fairly easily found using online search.

Building and running
********************

The sample can be built as follows:

.. zephyr-app-commands::
   :zephyr-app: samples/boards/bbc_microbit/sound
   :board: bbc_microbit
   :goals: build flash
   :compact:

Sample Output
=============

This sample outputs sounds through a connected piezo buzzer based on
button presses of the two main buttons. For each press the current
output frequency will be printed on the 5x5 LED display.