eren-terzioglu opened a new pull request, #3028:
URL: https://github.com/apache/nuttx-apps/pull/3028

   ## Summary
   
   * games/snake: Add snake game
   
   Add snake game support to have more demo games to show
   
   ## Impact
   <!-- Please fill the following sections with YES/NO and provide a brief 
explanation -->
   
   Impact on user: No, game was not in repo before
   
   Impact on build: No, game is not related to build system
   
   Impact on hardware: No
   
   Impact on documentation: Yes, doc update added on nuttx repo
   
   Impact on security: No
   
   Impact on compatibility: No
   
   ## Testing
   
   ### Building
   
   ```
   make distclean && ./tools/configure.sh esp32-devkitc:snake && make -j && 
make download ESPTOOL_PORT=/dev/ttyUSB0 ESPTOOL_BAUD=921600 && picocom 
/dev/ttyUSB0 -b 115200
   ```
   
   Alternatively, you can use `esp32-devkitc:nsh` defconfig with enabling 
following options:
   
   ```
   CONFIG_DEV_GPIO=y
   CONFIG_ESP32_GPIO_IRQ=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_GAMES_SNAKE=y
   CONFIG_GAMES_SNAKE_USE_GPIO=y
   CONFIG_RMT=y
   CONFIG_RMTCHAR=y
   CONFIG_RMT_DEFAULT_RX_BUFFER_SIZE=256
   CONFIG_SCHED_LPWORK=y
   CONFIG_SENSORS=y
   CONFIG_WS2812=y
   CONFIG_WS2812_LED_COUNT=64
   CONFIG_WS2812_NON_SPI_DRIVER=y
   ```
   
   Here is the wiring diagram:
   
   ![esp_brickmatch_game_schematic 
drawio](https://github.com/user-attachments/assets/df219cfa-fce0-45d5-a1e1-47096b6573f3)
   
   ### Running
   
   `snake` command used to run.
   
   ### Results
   
   LED matrix will light up with 2 leds (cyan and red) to demonstrate snake and 
food.
   


-- 
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

Reply via email to