zephyr/samples/boards/bbc/microbit/pong
Gerard Marull-Paretas 1b0840e910 drivers: pwm: nrf_sw: always default to yes
There's no need to add conditions to CONFIG_PWM_NRF_SW, because it is
already conditioned to DT status. Right now, if any system uses both
normal PWM and "SW PWM", it needs to manually enable the driver
Kconfig.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-10-24 03:47:23 +01:00
..
boards
src
CMakeLists.txt
README.rst
prj.conf drivers: pwm: nrf_sw: always default to yes 2024-10-24 03:47:23 +01:00
sample.yaml

README.rst

.. zephyr:code-sample:: bbc_microbit_pong
   :name: Pong game

   Play pong as single player or over Bluetooth between two micro:bit devices.

Overview
********

Play pong as single player or over Bluetooth between two micro:bit
devices.

The game works by controlling a paddle with the two buttons of the
micro:bit (labeled A and B). Initially the playing mode is selected: use
button A to toggle between single- and multi-player, and press button B
to select the current choice. To start the game, the player with the
ball launches the ball by pressing both buttons.

When multi-player mode has been selected the game will try to look for
and connect to a second micro:bit which has also been set into multi-player
mode.

If the board has a piezo buzzer connected to pin 0, this will be used to
generate beeps whenever the ball hits a wall or the paddle.

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

.. zephyr-app-commands::
   :zephyr-app: samples/boards/bbc/microbit/pong
   :board: bbc_microbit
   :goals: build flash
   :compact: