1.. zephyr:code-sample:: bbc_microbit_pong 2 :name: Pong game 3 4 Play pong as single player or over Bluetooth between two micro:bit devices. 5 6Overview 7******** 8 9Play pong as single player or over 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-player 20mode. 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