You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2025/07/14 12:03:33 UTC

(nuttx) branch master updated (382d38b4e05 -> f9c25ecd695)

This is an automated email from the ASF dual-hosted git repository.

acassis pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


    from 382d38b4e05 arm64/zynq-mpsoc: fix race condition in txint handler
     new 495936d16be boards/esp32-devkitc: Add match4 defconfig for esp32
     new 447c50cbee1 Docs/games: Add match4 game docs
     new f9c25ecd695 Docs/xtensa: Add match4 game doc for esp32-devkitc

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 Documentation/applications/games/match4/index.rst  | 31 ++++++++++++++++++++++
 .../xtensa/esp32/boards/esp32-devkitc/index.rst    | 16 +++++++++++
 .../configs/{snake => match4}/defconfig            |  4 +--
 3 files changed, 49 insertions(+), 2 deletions(-)
 create mode 100644 Documentation/applications/games/match4/index.rst
 copy boards/xtensa/esp32/esp32-devkitc/configs/{snake => match4}/defconfig (96%)


(nuttx) 02/03: Docs/games: Add match4 game docs

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 447c50cbee1c771173f9d5bc01d5e9911ef3b1e0
Author: Eren Terzioglu <er...@espressif.com>
AuthorDate: Sat Jul 5 18:07:42 2025 +0200

    Docs/games: Add match4 game docs
    
    Add match4 game docs
    
    Signed-off-by: Eren Terzioglu <er...@espressif.com>
---
 Documentation/applications/games/match4/index.rst | 31 +++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/Documentation/applications/games/match4/index.rst b/Documentation/applications/games/match4/index.rst
new file mode 100644
index 00000000000..703e66bd5bd
--- /dev/null
+++ b/Documentation/applications/games/match4/index.rst
@@ -0,0 +1,31 @@
+=========================
+``match4`` Match4
+=========================
+
+Match4 is a classic puzzle game inspired by Connect Four and match-based logic games.
+The game is played on a matrix (e.g., 6x6, 8x8) where colored blocks fall into columns
+and the goal is to align four identical blocks in a row—vertically, horizontally, or diagonally.
+
+The objective is to match four blocks of the same color row—vertically, horizontally, or diagonally.
+As the game progresses, blocks continue to fall, and the challenge is to manage the board to avoid it filling up.
+
+The game ends if there are no available moves left (e.g., the board is full and no matches are possible) or one player
+achieve to match 4 blocks.
+
+Basic Test
+----------
+
+To play game, you need to have a led matrix (e.g. ws2812) for output
+and three gpio pins to input.
+
+Alternatively, you can give inputs using serial console by changing settings.
+
+Then you can configure and compile the game to play in your board,
+i.e. for ESP32-Devkitc there is already an example::
+
+
+    $ ./tools/configure.sh esp32-devkitc:match4
+    $ make -j flash ESPTOOL_PORT=/dev/ttyUSB0
+    $ minicom
+    nsh> match
+


(nuttx) 03/03: Docs/xtensa: Add match4 game doc for esp32-devkitc

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit f9c25ecd695b1471bfc2dc187c1757c23ecc9e5d
Author: Eren Terzioglu <er...@espressif.com>
AuthorDate: Sat Jul 5 18:10:13 2025 +0200

    Docs/xtensa: Add match4 game doc for esp32-devkitc
    
    Add esp32-devkit match4 doc
    
    Signed-off-by: Eren Terzioglu <er...@espressif.com>
---
 .../xtensa/esp32/boards/esp32-devkitc/index.rst          | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/Documentation/platforms/xtensa/esp32/boards/esp32-devkitc/index.rst b/Documentation/platforms/xtensa/esp32/boards/esp32-devkitc/index.rst
index dde7e6abcd5..d8515fd1235 100644
--- a/Documentation/platforms/xtensa/esp32/boards/esp32-devkitc/index.rst
+++ b/Documentation/platforms/xtensa/esp32/boards/esp32-devkitc/index.rst
@@ -588,6 +588,22 @@ to demonstrate the use of the userleds subsystem::
     led_daemon: LED set 0x00
     led_daemon: LED set 0x01
 
+match4
+------
+
+This configuration enables match4 game using led matrix (ws2812) and gpio pins.
+Alternatively, you can use serial console for input with enabling `GAMES_MATCH4_USE_CONSOLEKEY`
+option.
+
+You can run the game by using ``match`` command::
+
+    nsh> match
+
+Here is the sample wiring diagram that demonstrates how to wire ws2812 with buttons for match4 example:
+
+.. figure:: esp32-brickmatch-game-schematic.jpg
+    :align: center
+
 max6675
 -------
 


(nuttx) 01/03: boards/esp32-devkitc: Add match4 defconfig for esp32

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 495936d16be5761c2c7dd8e91c02678dd6227293
Author: Eren Terzioglu <er...@espressif.com>
AuthorDate: Sat Jul 5 18:02:29 2025 +0200

    boards/esp32-devkitc: Add match4 defconfig for esp32
    
    Add match4 defconfig for esp32-devkitc
    
    Signed-off-by: Eren Terzioglu <er...@espressif.com>
---
 .../esp32/esp32-devkitc/configs/match4/defconfig   | 65 ++++++++++++++++++++++
 1 file changed, 65 insertions(+)

diff --git a/boards/xtensa/esp32/esp32-devkitc/configs/match4/defconfig b/boards/xtensa/esp32/esp32-devkitc/configs/match4/defconfig
new file mode 100644
index 00000000000..48c8f9a433b
--- /dev/null
+++ b/boards/xtensa/esp32/esp32-devkitc/configs/match4/defconfig
@@ -0,0 +1,65 @@
+#
+# This file is autogenerated: PLEASE DO NOT EDIT IT.
+#
+# You can use "make menuconfig" to make any modifications to the installed .config file.
+# You can then do "make savedefconfig" to generate a new defconfig file that includes your
+# modifications.
+#
+# CONFIG_ARCH_LEDS is not set
+# CONFIG_NSH_ARGCAT is not set
+# CONFIG_NSH_CMDOPT_HEXDUMP is not set
+CONFIG_ARCH="xtensa"
+CONFIG_ARCH_BOARD="esp32-devkitc"
+CONFIG_ARCH_BOARD_COMMON=y
+CONFIG_ARCH_BOARD_ESP32_DEVKITC=y
+CONFIG_ARCH_CHIP="esp32"
+CONFIG_ARCH_CHIP_ESP32=y
+CONFIG_ARCH_CHIP_ESP32WROVER=y
+CONFIG_ARCH_STACKDUMP=y
+CONFIG_ARCH_XTENSA=y
+CONFIG_BOARD_LATE_INITIALIZE=y
+CONFIG_BOARD_LOOPSPERMSEC=16717
+CONFIG_BUILTIN=y
+CONFIG_DEV_GPIO=y
+CONFIG_ESP32_GPIO_IRQ=y
+CONFIG_ESP32_UART0=y
+CONFIG_ESP_RMT=y
+CONFIG_EXAMPLES_GPIO=y
+CONFIG_EXAMPLES_RMTCHAR=y
+CONFIG_EXAMPLES_RMTCHAR_RX=y
+CONFIG_EXAMPLES_RMTCHAR_TX=y
+CONFIG_EXAMPLES_WS2812=y
+CONFIG_FS_PROCFS=y
+CONFIG_GAMES_MATCH4=y
+CONFIG_GAMES_MATCH4_USE_GPIO=y
+CONFIG_HAVE_CXX=y
+CONFIG_HAVE_CXXINITIALIZE=y
+CONFIG_IDLETHREAD_STACKSIZE=3072
+CONFIG_INIT_ENTRYPOINT="nsh_main"
+CONFIG_INIT_STACKSIZE=3072
+CONFIG_INTELHEX_BINARY=y
+CONFIG_LINE_MAX=64
+CONFIG_MM_REGIONS=3
+CONFIG_NSH_ARCHINIT=y
+CONFIG_NSH_BUILTIN_APPS=y
+CONFIG_NSH_FILEIOSIZE=512
+CONFIG_NSH_READLINE=y
+CONFIG_PREALLOC_TIMERS=4
+CONFIG_RAM_SIZE=114688
+CONFIG_RAM_START=0x20000000
+CONFIG_RMT=y
+CONFIG_RMTCHAR=y
+CONFIG_RMT_DEFAULT_RX_BUFFER_SIZE=256
+CONFIG_RR_INTERVAL=200
+CONFIG_SCHED_LPWORK=y
+CONFIG_SCHED_WAITPID=y
+CONFIG_SENSORS=y
+CONFIG_START_DAY=6
+CONFIG_START_MONTH=12
+CONFIG_START_YEAR=2011
+CONFIG_SYSLOG_BUFFER=y
+CONFIG_SYSTEM_NSH=y
+CONFIG_UART0_SERIAL_CONSOLE=y
+CONFIG_WS2812=y
+CONFIG_WS2812_LED_COUNT=64
+CONFIG_WS2812_NON_SPI_DRIVER=y