zephyr/samples/boards/bbc_microbit/sound
Martí Bolívar d42ef5e5da samples: bbc_microbit: cleanups
Clean up the board specific samples:

- Do not hard-code the i2c0 device label in the line follower sample.
- Miscellaneous docs cleanups.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2020-05-13 19:51:01 +02:00
..
src timeouts: Port BBC micro:bit to the new timeout API 2020-05-07 11:01:55 +02:00
CMakeLists.txt
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.