xiaoxiang781216 commented on code in PR #16006: URL: https://github.com/apache/nuttx/pull/16006#discussion_r2008009012
########## Documentation/platforms/xtensa/esp32/boards/esp32-devkitc/index.rst: ########## @@ -928,6 +928,22 @@ The apps/testing/smp test is included:: CONFIG_TESTING_SMP_PRIORITY=100 CONFIG_TESTING_SMP_STACKSIZE=2048 +snake +----- + +This configuration enables snake game using led matrix (ws2812) and gpio pins. +Alternatively, you can use serial console for input with enabling `GAMES_SNAKE_USE_CONSOLEKEY` +option. + +You can run the game by using ``snake`` command:: + + nsh> snake + +Here is the sample wiring diagram that demonstrates how to wire ws2812 with buttons for snake example: + +.. figure:: esp32-brickmatch-game-schematic.jpg Review Comment: where the jpg file -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org