Skip to content

Commit

Permalink
added 128x64 support
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalkbrenner committed Mar 29, 2024
1 parent 8de8bd6 commit ccb7213
Show file tree
Hide file tree
Showing 3 changed files with 134 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/ZeDMD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
needs: [ version ]
strategy:
matrix:
panels: ['128x32', '256x64', '128x32_wifi', '256x64_wifi', 'S3-N16R8_256x64']
panels: ['128x32', '256x64', '128x64', '128x32_wifi', '256x64_wifi', '128x64_wifi', 'S3-N16R8_128x32', 'S3-N16R8_256x64', 'S3-N16R8_128x64']

name: ZeDMD ${{ matrix.panels }}

Expand Down Expand Up @@ -83,15 +83,27 @@ jobs:
cd ../ZeDMD-256x64
echo "${{ needs.version.outputs.tag }}" > version.txt
zip ../ZeDMD-256x64.zip ZeDMD.bin version.txt
cd ../ZeDMD-128x64
echo "${{ needs.version.outputs.tag }}" > version.txt
zip ../ZeDMD-128x64.zip ZeDMD.bin version.txt
cd ../ZeDMD-128x32_wifi
echo "${{ needs.version.outputs.tag }}" > version.txt
zip ../ZeDMD-128x32_wifi.zip ZeDMD.bin version.txt
cd ../ZeDMD-256x64_wifi
echo "${{ needs.version.outputs.tag }}" > version.txt
zip ../ZeDMD-256x64_wifi.zip ZeDMD.bin version.txt
cd ../ZeDMD-128x64_wifi
echo "${{ needs.version.outputs.tag }}" > version.txt
zip ../ZeDMD-128x64_wifi.zip ZeDMD.bin version.txt
cd ../ZeDMD-S3-N16R8_128x32
echo "${{ needs.version.outputs.tag }}" > version.txt
zip ../ZeDMD-S3-N16R8_128x32.zip ZeDMD.bin version.txt
cd ../ZeDMD-S3-N16R8_256x64
echo "${{ needs.version.outputs.tag }}" > version.txt
zip ../ZeDMD-S3-N16R8_256x64.zip ZeDMD.bin version.txt
cd ../ZeDMD-S3-N16R8_128x64
echo "${{ needs.version.outputs.tag }}" > version.txt
zip ../ZeDMD-S3-N16R8_128x64.zip ZeDMD.bin version.txt
cd ..
- name: Release
uses: softprops/action-gh-release@v1
Expand All @@ -101,6 +113,10 @@ jobs:
files: |
ZeDMD-128x32.zip
ZeDMD-256x64.zip
ZeDMD-128x64.zip
ZeDMD-128x32_wifi.zip
ZeDMD-256x64_wifi.zip
ZeDMD-128x64_wifi.zip
ZeDMD-S3-N16R8_128x32.zip
ZeDMD-S3-N16R8_256x64.zip
ZeDMD-S3-N16R8_128x64.zip
108 changes: 108 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,31 @@ build_flags =
-Os
build_unflags = -Og

[env:128x64]
framework = arduino
platform = https://github.com/tasmota/platform-espressif32/releases/download/2024.01.01/platform-espressif32.zip
platform_packages = platformio/framework-arduinoespressif32 @ 3.20014.231204
board = esp32dev
board_build.partitions = partitions.csv
board_build.filesystem = littlefs
board_build.flash_mode = qio
lib_deps =
https://github.com/mrfaptastic/ESP32-HUB75-MatrixPanel-DMA#3.0.10
thomasfredericks/Bounce2
build_flags =
-DNO_GFX=1
-DZEDMD_HD_HALF=1
-DPIXEL_COLOR_DEPTH_BITS=7
-DNO_FAST_FUNCTIONS=1
-DMINIZ_NO_STDIO=1
-DMINIZ_NO_TIME=1
-DMINIZ_NO_DEFLATE_APIS=1
-DMINIZ_NO_ARCHIVE_APIS=1
-DMINIZ_NO_ARCHIVE_WRITING_APIS=1
-DMINIZ_NO_ZLIB_COMPATIBLE_NAMES=1
-Os
build_unflags = -Og

[env:128x32_wifi]
framework = arduino
platform = https://github.com/tasmota/platform-espressif32/releases/download/2024.01.01/platform-espressif32.zip
Expand Down Expand Up @@ -111,6 +136,60 @@ build_flags =
-Os
build_unflags = -Og

[env:128x64_wifi]
framework = arduino
platform = https://github.com/tasmota/platform-espressif32/releases/download/2024.01.01/platform-espressif32.zip
platform_packages = platformio/framework-arduinoespressif32 @ 3.20014.231204
board = esp32dev
board_build.partitions = partitions.csv
board_build.filesystem = littlefs
board_build.flash_mode = qio
lib_deps =
https://github.com/mrfaptastic/ESP32-HUB75-MatrixPanel-DMA#3.0.10
thomasfredericks/Bounce2
build_flags =
-DNO_GFX=1
-DZEDMD_HD_HALF=1
-DZEDMD_WIFI=1
-DPIXEL_COLOR_DEPTH_BITS=7
-DNO_FAST_FUNCTIONS=1
-DMINIZ_NO_STDIO=1
-DMINIZ_NO_TIME=1
-DMINIZ_NO_DEFLATE_APIS=1
-DMINIZ_NO_ARCHIVE_APIS=1
-DMINIZ_NO_ARCHIVE_WRITING_APIS=1
-DMINIZ_NO_ZLIB_COMPATIBLE_NAMES=1
-Os
build_unflags = -Og

[env:S3-N16R8_128x32]
framework = arduino
platform = [email protected]
board = esp32-s3-devkitc-1
board_build.partitions = partitions_16MB.csv
board_build.filesystem = littlefs
#board_build.flash_mode = qio_opi
board_upload.flash_size = 16MB
lib_deps =
https://github.com/mrfaptastic/ESP32-HUB75-MatrixPanel-DMA#3.0.10
thomasfredericks/Bounce2
build_flags =
-DNO_GFX=1
-DPIXEL_COLOR_DEPTH_BITS=7
-DNO_FAST_FUNCTIONS=1
-DSPIRAM_FRAMEBUFFER=1
-DMINIZ_NO_STDIO=1
-DMINIZ_NO_TIME=1
-DMINIZ_NO_DEFLATE_APIS=1
-DMINIZ_NO_ARCHIVE_APIS=1
-DMINIZ_NO_ARCHIVE_WRITING_APIS=1
-DMINIZ_NO_ZLIB_COMPATIBLE_NAMES=1
-Os
-DARDUINO_USB_MODE=1
-DARDUINO_USB_CDC_ON_BOOT=1
-DBOARD_HAS_PSRAM
build_unflags = -Og

[env:S3-N16R8_256x64]
framework = arduino
platform = [email protected]
Expand Down Expand Up @@ -139,3 +218,32 @@ build_flags =
-DARDUINO_USB_CDC_ON_BOOT=1
-DBOARD_HAS_PSRAM
build_unflags = -Og

[env:S3-N16R8_128x64]
framework = arduino
platform = [email protected]
board = esp32-s3-devkitc-1
board_build.partitions = partitions_16MB.csv
board_build.filesystem = littlefs
#board_build.flash_mode = qio_opi
board_upload.flash_size = 16MB
lib_deps =
https://github.com/mrfaptastic/ESP32-HUB75-MatrixPanel-DMA#3.0.10
thomasfredericks/Bounce2
build_flags =
-DNO_GFX=1
-DZEDMD_HD_HALF=1
-DPIXEL_COLOR_DEPTH_BITS=7
-DNO_FAST_FUNCTIONS=1
-DSPIRAM_FRAMEBUFFER=1
-DMINIZ_NO_STDIO=1
-DMINIZ_NO_TIME=1
-DMINIZ_NO_DEFLATE_APIS=1
-DMINIZ_NO_ARCHIVE_APIS=1
-DMINIZ_NO_ARCHIVE_WRITING_APIS=1
-DMINIZ_NO_ZLIB_COMPATIBLE_NAMES=1
-Os
-DARDUINO_USB_MODE=1
-DARDUINO_USB_CDC_ON_BOOT=1
-DBOARD_HAS_PSRAM
build_unflags = -Og
9 changes: 9 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
#define PANEL_WIDTH 128 // Width: number of LEDs for 1 panel.
#define PANEL_HEIGHT 64 // Height: number of LEDs.
#define PANELS_NUMBER 2 // Number of horizontally chained panels.
#elif ZEDMD_HD_HALF
#define PANEL_WIDTH 128 // Width: number of LEDs for 1 panel.
#define PANEL_HEIGHT 64 // Height: number of LEDs.
#define PANELS_NUMBER 1 // Number of horizontally chained panels.
#endif
#ifndef PANEL_WIDTH
#define PANEL_WIDTH 64 // Width: number of LEDs for 1 panel.
Expand Down Expand Up @@ -93,7 +97,12 @@

#define TOTAL_WIDTH (PANEL_WIDTH * PANELS_NUMBER)
#define TOTAL_WIDTH_PLANE (TOTAL_WIDTH >> 3)
#ifdef ZEDMD_HD_HALF
#define TOTAL_HEIGHT (PANEL_HEIGHT / 2)
#endif
#ifndef TOTAL_HEIGHT
#define TOTAL_HEIGHT PANEL_HEIGHT
#endif
#define TOTAL_BYTES (TOTAL_WIDTH * TOTAL_HEIGHT * 3)
#define ZONE_WIDTH (TOTAL_WIDTH / 16)
#define ZONE_HEIGHT (TOTAL_HEIGHT / 8)
Expand Down

0 comments on commit ccb7213

Please sign in to comment.