-
-
Notifications
You must be signed in to change notification settings - Fork 136
Define custom pin mappings in wled.h #370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
65fc0cf
1f899db
ee2fd0f
6146970
97647ba
df4299a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,11 +11,10 @@ | |
|
|
||
| # CI binaries | ||
| ;; default_envs = nodemcuv2, esp8266_2m, esp01_1m_full, esp32dev, esp32_eth # ESP32 variant builds are temporarily excluded from CI due to toolchain issues on the GitHub Actions Linux environment | ||
| ; default_envs = nodemcuv2, esp8266_2m, esp01_1m_full, esp32dev, esp32_eth, esp32dev_audioreactive, lolin_s2_mini, esp32c3dev, esp32s3dev_8MB, esp32s3dev_8MB_PSRAM_opi | ||
| ; default_envs = nodemcuv2, esp8266_2m, esp01_1m_full, esp32dev, esp32_eth, esp32dev_audioreactive, lolin_s2_mini, esp32c3dev, esp32s3dev_8MB, esp32s3dev_8MB_PSRAM_opi, esp32s3dev_16MB_PSRAM_opi | ||
|
|
||
| # Release binaries | ||
| ; default_envs = nodemcuv2, esp8266_2m, esp01_1m_full, esp32dev, esp32_eth, lolin_s2_mini, esp32c3dev, esp32s3dev_8MB | ||
|
|
||
| ; default_envs = nodemcuv2, esp8266_2m, esp01_1m_full, esp32dev, esp32_eth, lolin_s2_mini, esp32c3dev, esp32s3dev_8M, esp32s3dev_16MB | ||
| # Build everything | ||
| ; default_envs = esp32dev, esp8285_4CH_MagicHome, codm-controller-0_6-rev2, codm-controller-0_6, esp32s2_saola, d1_mini_5CH_Shojo_PCB, d1_mini, sp501e, nodemcuv2, esp32_eth, anavi_miracle_controller, esp07, esp01_1m_full, m5atom, h803wf, d1_mini_ota, heltec_wifi_kit_8, esp8285_H801, d1_mini_debug, wemos_shield_esp32, elekstube_ips | ||
|
|
||
|
|
@@ -43,6 +42,7 @@ | |
| ; default_envs = esp32c3dev | ||
| ; default_envs = lolin_s2_mini | ||
| ; default_envs = esp32s3dev_16MB_PSRAM_opi | ||
| ; default_envs = esp32s3_16MB_OPI | ||
|
|
||
| ; MoonModules entries | ||
| ; =================== | ||
|
|
@@ -105,6 +105,7 @@ default_envs = | |
| esp32S3_8MB_PSRAM_M_qspi ;; for S3 with 8MB flash, 2 or 4MB PSRAM, HUB75 supported | ||
| esp32S3_8MB_PSRAM_M_opi ;; for S3 with 8MB flash, 8 or 16MB PSRAM, HUB75 supported | ||
| ;; === esp32-S3 === with 16MB flash | ||
| esp32s3_16MB_OPI | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Verify the esp32s3_16MB_OPI environment is defined in platformio.ini
grep -n "^\[env:esp32s3_16MB_OPI\]" platformio.iniRepository: MoonModules/WLED-MM Length of output: 45 🏁 Script executed: # Check exact content at line 108 and surrounding lines
sed -n '105,115p' platformio.ini
# Search for any environment containing "OPI" or similar variations
grep -n "env:esp32.*OPI\|env:esp32s3.*16MB" platformio.ini | head -20Repository: MoonModules/WLED-MM Length of output: 686 🏁 Script executed: # Search for environment definition with case-insensitive matching
grep -in "^\[env:esp32s3.*16MB.*OPI\]" platformio.ini
# Also search for all env sections containing "16MB" and "OPI"
grep -n "^\[env:" platformio.ini | grep -i "s3.*16MB\|16MB.*OPI"
# Count total environment definitions to understand the pattern
grep -c "^\[env:" platformio.iniRepository: MoonModules/WLED-MM Length of output: 105 🏁 Script executed: # Search for any environment that might be the definition, including case variations
grep -in "^\[env:.*esp32s3.*OPI\|^\[env:.*16MB.*OPI" platformio.ini
# Check lines around where similar environments are defined
grep -n "^\[env:esp32S3_8MB\|^\[env:esp32s3_16MB" platformio.ini
# Look at the actual environment definitions for the nearby environments to understand the pattern
sed -n '2497,2510p' platformio.iniRepository: MoonModules/WLED-MM Length of output: 767 🏁 Script executed: # Final verification - search for the exact name added to default_envs anywhere in the file
grep -n "esp32s3_16MB_OPI" platformio.ini
# Check if there's any commented out version that might be relevant
grep -in "esp32s3_16MB_OPI\|esp32S3_16MB_OPI" platformio.iniRepository: MoonModules/WLED-MM Length of output: 183 🏁 Script executed: # Confirm the exact line 109 content in context
sed -n '105,115p' platformio.ini
# Double-check: search for any definition starting with [env: and containing any variant
grep -n "^\[env:esp32s3_16MB\|^\[env:esp32S3_16MB" platformio.iniRepository: MoonModules/WLED-MM Length of output: 685 Missing environment definition for Line 109 adds Either add the environment definition or remove the environment name from default_envs. 🤖 Prompt for AI AgentsSource: Coding guidelines ✅ Addressed in commit ee2fd0f |
||
| esp32S3_16MB_PSRAM_M_HUB75 ;; for S3 with 16MB flash, HUB75 supported (MOONHUB HUB75 adapter board) | ||
| esp32S3_WROOM-2_M ;; for S3 WROOM-2; HUB75 supported | ||
| ;; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,20 @@ | ||
| #ifndef WLED_MY_PINS | ||
| #define WLED_MY_PINS | ||
| #define R1_PIN 4 | ||
| #define G1_PIN 5 | ||
| #define B1_PIN 6 | ||
| #define R2_PIN 7 | ||
| #define G2_PIN 15 | ||
| #define B2_PIN 16 | ||
| #define A_PIN 8 | ||
| #define B_PIN 9 | ||
| #define C_PIN 10 | ||
| #define D_PIN 11 | ||
| #define E_PIN 12 | ||
| #define LAT_PIN 13 | ||
| #define OE_PIN 14 | ||
| #define CLK_PIN 17 | ||
| #endif | ||
|
Comment on lines
+1
to
+17
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Align this pinout with the Matrixboard wiring contract. These values don’t match the HUB75 pin order documented in 🤖 Prompt for AI Agents
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @coderabbitai it's even worse - the pins defined here seem to be HUB75 pins, but the HUB75 driver will not use these values. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Check if the HUB75 driver or related code references R1_PIN, G1_PIN etc.
rg -n 'R1_PIN|G1_PIN|B1_PIN|R2_PIN|G2_PIN|B2_PIN|A_PIN|LAT_PIN|OE_PIN|CLK_PIN' --type=cpp --type=h -C2
echo "=== HUB75 usermod/driver pin config ==="
rg -n 'HUB75|hub75|ESP32-HUB75' -l
echo "=== Look for pin config structs in HUB75 driver ==="
rg -n 'mxconfig|MatrixConfig|HUB75_I2S_CFG|pinConfig|PIN_' --type=cpp --type=h -C2 | head -80Length of output: 22584
// HUB75_I2S_CFG::i2s_pins _pins={R1_PIN, G1_PIN, B1_PIN, R2_PIN, G2_PIN, B2_PIN, A_PIN, B_PIN, C_PIN, D_PIN, E_PIN, LAT_PIN, OE_PIN, CLK_PIN};
mxconfig.gpio = { 1, 5, 6, 7, 13, 9, 16, 48, 47, 21, 38, 8, 4, 18 };The The PR should either:
(́◉◞౪◟◉‵) ✏️ Learnings added
|
||
| #ifndef WLED_H | ||
| #define WLED_H | ||
| /* | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert all changes in platformio.ini.