zephyr/samples/boards/microbit/pong
Jan Van Winkel ca16779d9e driver: ILI9340 LCD display driver
Minimal driver for ILI9340 LCD display driver including support
for adafruit 2.2" LCD display (1480)

Signed-off-by: Jan Van Winkel <jan.van_winkel@dxplore.eu>
2018-05-18 20:21:45 +03:00
..
src samples: boards: Remove deprcated k_call_stacks_analyze API 2018-05-15 13:43:00 +03:00
CMakeLists.txt cmake: remove IS_TEST handling 2018-01-08 10:03:57 -05:00
prj.conf driver: ILI9340 LCD display driver 2018-05-18 20:21:45 +03:00
README.rst samples: boards: Convert doc to CMake 2017-11-12 21:13:23 -05:00
sample.yaml samples: remove more build_only tags 2017-12-28 20:24:29 -05:00

.. _microbit_pong:

BBC micro:bit pong game
#######################

Overview
********

Play pong over as single player or 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
********

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