samples/boards/bbc_microbit/pong/README.html · samples/boards/bbc_microbit/pong/README.rst 공식 원문 ↗

Zephyr 3.7.0 · Boards · BBC micro:bit

BBC micro:bit Pong Game

Single-player 또는 두 micro:bit의 Bluetooth 연결로 Pong을 실행합니다.

Official pathsamples/boards/bbc_microbit/pong/README.html
Source filesamples/boards/bbc_microbit/pong/README.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

본문 기준: Zephyr 3.7.0 LTS3 · 이후 유지보수 패치는 별도입니다.

Part 1

요약·해설

Mode 선택, ball launch, second-device 탐색과 pin 0 buzzer 동작을 설명합니다.

Modes

Single · Multi

Control

Button A · B

Peer

Bluetooth micro:bit

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 940FA7A5856A9631B2FBC11AA734FC85EF2418A97E4D985B0D4820E0233B472D
.. _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 and running
********************

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

Part 3

한국어 전문 번역

개요

Pong을 single-player로 즐기거나 두 micro:bit device를 Bluetooth로 연결해 two-player로 즐길 수 있습니다.

Micro:bit의 A·B button 두 개로 paddle을 조작합니다. 처음에는 play mode를 선택합니다. A button으로 single-player와 multi-player를 전환하고 B button으로 현재 선택을 확정합니다. Game을 시작하려면 ball을 가진 player가 두 button을 동시에 눌러 ball을 발사합니다.

Multi-player mode를 선택하면 game은 역시 multi-player mode로 설정된 두 번째 micro:bit를 찾아 연결하려고 시도합니다.

Board의 pin 0에 piezo buzzer가 연결되어 있으면 ball이 wall이나 paddle에 부딪힐 때마다 beep를 냅니다.

Build와 실행

west build -b bbc_microbit samples/boards/bbc_microbit/pong
west flash

Source

출처

영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.