This is an automated email from the ASF dual-hosted git repository. jerpelea pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 8d86340b980866a79044fb68fc67dfdb579a88f3 Author: Eren Terzioglu <eren.terzio...@espressif.com> AuthorDate: Tue Feb 25 20:16:39 2025 +0100 Docs/esp32: Add brickmatch config doc for esp32-devkitc Add missing documentation for brickmatch defconfig for esp32-devkitc Signed-off-by: Eren Terzioglu <eren.terzio...@espressif.com> --- .../esp32-devkitc/esp32-brickmatch-game-schematic.jpg | Bin 0 -> 34330 bytes .../xtensa/esp32/boards/esp32-devkitc/index.rst | 17 +++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/Documentation/platforms/xtensa/esp32/boards/esp32-devkitc/esp32-brickmatch-game-schematic.jpg b/Documentation/platforms/xtensa/esp32/boards/esp32-devkitc/esp32-brickmatch-game-schematic.jpg new file mode 100644 index 0000000000..8f6becb456 Binary files /dev/null and b/Documentation/platforms/xtensa/esp32/boards/esp32-devkitc/esp32-brickmatch-game-schematic.jpg differ diff --git a/Documentation/platforms/xtensa/esp32/boards/esp32-devkitc/index.rst b/Documentation/platforms/xtensa/esp32/boards/esp32-devkitc/index.rst index b36f019d3f..ec022f1500 100644 --- a/Documentation/platforms/xtensa/esp32/boards/esp32-devkitc/index.rst +++ b/Documentation/platforms/xtensa/esp32/boards/esp32-devkitc/index.rst @@ -279,6 +279,23 @@ You can check that the sensor is working by using the ``sensortest`` application baro0: timestamp:66870000 value1:1008.37 value2:31.70 baro0: timestamp:66890000 value1:1008.31 value2:31.70 +brickmatch +---------- + +This configuration enables brickmatch game using LCD screen (APA102) and gesture sensor (APDS9960). +Alternatively, you can use led matrix (ws2812) by enabling `GAMES_BRICKMATCH_USE_LED_MATRIX` option for +output device. Also for input device selection you can enable `GAMES_BRICKMATCH_USE_DJOYSTICK` to use joystick, +`GAMES_BRICKMATCH_USE_GPIO` to use gpio and `GAMES_BRICKMATCH_USE_CONSOLEKEY` to use serial console. + +You can run the game by using ``brick`` command:: + + nsh> brick + +Here is the sample wiring diagram that demonstrates how to wire ws2812 with buttons for brickmatch example: + +.. figure:: esp32-brickmatch-game-schematic.jpg + :align: center + buttons -------