README.rst
1.. _microbit_pong:
2
3BBC micro:bit pong game
4#######################
5
6Overview
7********
8
9Play pong over as single player or Bluetooth between two micro:bit
10devices.
11
12The game works by controlling a paddle with the two buttons of the
13micro:bit (labeled A and B). Initially the playing mode is selected: use
14button A to toggle between single- and multi-player, and press button B
15to select the current choice. To start the game, the player with the
16ball launches the ball by pressing both buttons.
17
18When multi-player mode has been selected the game will try to look for
19and connect to a second micro:bit which has also been set into multi-
20player mode.
21
22If the board has a piezo buzzer connected to pin 0, this will be used to
23generate beeps whenever the ball hits a wall or the paddle.
24
25Building and running
26********************
27
28.. zephyr-app-commands::
29 :zephyr-app: samples/boards/bbc_microbit/pong
30 :board: bbc_microbit
31 :goals: build flash
32 :compact:
33