Skip to content

Commit 453c6f7

Browse files
eren-terziogluacassis
authored andcommitted
Documentation/esp32: Add snake defconfig docs for esp32
Add snake defconfig docs for esp32 devkitc board Signed-off-by: Eren Terzioglu <[email protected]>
1 parent 9c2b481 commit 453c6f7

File tree

1 file changed

+16
-0
lines changed
  • Documentation/platforms/xtensa/esp32/boards/esp32-devkitc

1 file changed

+16
-0
lines changed

Documentation/platforms/xtensa/esp32/boards/esp32-devkitc/index.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,22 @@ The apps/testing/smp test is included::
928928
CONFIG_TESTING_SMP_PRIORITY=100
929929
CONFIG_TESTING_SMP_STACKSIZE=2048
930930

931+
snake
932+
-----
933+
934+
This configuration enables snake game using led matrix (ws2812) and gpio pins.
935+
Alternatively, you can use serial console for input with enabling `GAMES_SNAKE_USE_CONSOLEKEY`
936+
option.
937+
938+
You can run the game by using ``snake`` command::
939+
940+
nsh> snake
941+
942+
Here is the sample wiring diagram that demonstrates how to wire ws2812 with buttons for snake example:
943+
944+
.. figure:: esp32-brickmatch-game-schematic.jpg
945+
:align: center
946+
931947
sotest
932948
------
933949

0 commit comments

Comments
 (0)