Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
4c0cecb
Merge branch 'main' into buildenv-update
SteveEisner Jul 1, 2024
12b7a82
Set the ESP32S2 SPI bus in the base env so all S2 based devices get t…
craiglink Jul 1, 2024
8408dcd
Merge pull request #27 from craiglink/buildenv-update
SteveEisner Jul 1, 2024
8473190
Merge pull request #28 from craiglink/ESP32S2-spi-fix
SteveEisner Jul 4, 2024
4fa3bed
Revert unintentional changes to upstream
SteveEisner Jul 4, 2024
c08e6f8
Merge remote-tracking branch 'refs/remotes/origin/main'
SteveEisner Jul 4, 2024
e640582
fix espnow syncing
craiglink Jul 8, 2024
31dd6ae
Fix palette size (don't count first 13)
SteveEisner Jul 4, 2024
24453b5
add esp32-c3-athom device
craiglink Aug 7, 2024
8d0218d
- reverts platformio.ini to be closer to main branch ini and package …
craiglink Jul 29, 2024
8421a04
Revert "revert change to later espressif platform and FastLED 3.7"
craiglink Jul 8, 2024
8cba07c
revert change to later espressif platform and FastLED 3.7
SteveEisner Jul 4, 2024
f475538
Merge branch 'SteveEisner:main' into main
craiglink Aug 7, 2024
9b55c6f
Simple Cleanup
craiglink Jul 29, 2024
cfce2e2
fix a few dependencies between variations
craiglink Jul 29, 2024
a509090
Merge pull request #29 from craiglink/package-update
SteveEisner Jul 17, 2024
77b7ad7
Merge branch 'SteveEisner:main' into main
craiglink Aug 7, 2024
3956dfa
add class protections to LightNode
craiglink Jul 29, 2024
88d6e65
Merge pull request #31 from craiglink/tubes-only-platform-upgrade
SteveEisner Jul 31, 2024
446fa23
fix some silly bugs during port.
craiglink Aug 9, 2024
5b7af44
Merge pull request #32 from craiglink/main
SteveEisner Jul 31, 2024
53bb7e8
remove unused build flag
craiglink Aug 9, 2024
ee20e07
actually use PSRAM
SteveEisner Jul 31, 2024
fe48075
clean up RX callback
craiglink Aug 9, 2024
a522feb
add RSSI support back for modern IDF builds
craiglink Aug 2, 2024
247cd2b
Rewrites the ESPNow code to use the IDF esp_now api vs QuickEspNow. (…
craiglink Aug 2, 2024
f9a3fc8
add separate debug flag for rx callback logging
craiglink Aug 9, 2024
407c218
Merge pull request #33 from craiglink/rssi
SteveEisner Aug 3, 2024
d59f2f0
remove extra log line
craiglink Aug 9, 2024
deb35f4
add esp32-c3-athom device (#34)
craiglink Aug 7, 2024
568df6e
reduce unnecessary use of heap to create some singleton objects and i…
craiglink Aug 13, 2024
45500b5
Merge pull request #35 from craiglink/sync-bug-fixes
SteveEisner Aug 11, 2024
421063a
Make particles arrary static and not use heap
craiglink Aug 14, 2024
652d155
Merge pull request #37 from craiglink/byref
craiglink Aug 13, 2024
90919e6
Merge pull request #38 from craiglink/static-particle-array
craiglink Aug 14, 2024
565e883
Fix errors when strips have more LEDs than MAX_VIRTUAL_LEDs
SteveEisner Aug 18, 2024
557afa5
PR suggestions
SteveEisner Aug 18, 2024
b6ae6bb
Update explanation of strip blending
SteveEisner Aug 18, 2024
6e9ce67
add support for espnow message filtering
craiglink Aug 19, 2024
594a08c
fix esp8266 build
craiglink Aug 19, 2024
6d7a769
add debug counters to espnow
craiglink Aug 19, 2024
30b4b23
re-enable serial input
craiglink Aug 19, 2024
00dc338
add const to appropriate read-only functions
craiglink Aug 19, 2024
3cf9edf
add exit counter for espnow loop
craiglink Aug 19, 2024
f293d54
add yield to espnow loop for good measure
craiglink Aug 19, 2024
473115b
add yield to espnow loop for good measure
craiglink Aug 19, 2024
00b20b2
Remove infinite loops from pattern generators; add some more debugging
SteveEisner Aug 19, 2024
fcee6ab
some basic constructor cleanup
craiglink Aug 19, 2024
eb87f63
Revert to 5.3.0 IDF for now
SteveEisner Aug 20, 2024
7713d41
restart ESPNOW after WiFi AP stopped
craiglink Aug 20, 2024
3976a57
athom-c3 fixes
craiglink Aug 20, 2024
95ced63
out WLED_RELEASE_NAME macro to info json
craiglink Aug 20, 2024
8570905
yield for c3 network startup
craiglink Aug 20, 2024
1520f79
update base on board variant
craiglink Aug 20, 2024
0304ca7
reduced attenna power seems to make c3 more stable
craiglink Aug 21, 2024
0166dae
default power save off; better help/debugging
SteveEisner Nov 27, 2024
077377e
Create RUBY mode
SteveEisner Feb 2, 2025
247b940
Pin certain libs, since their projects have moved on for 15 and we're…
SteveEisner Jul 27, 2025
e1796ca
override WLED and check in platformio_override.ini since everyone nee…
SteveEisner Aug 13, 2025
a80fe81
Enable CHRISTMAS mode and weight holiday palette selection
SteveEisner Feb 20, 2026
3ee799f
Remove explicit ATHOM C3 pin overrides in tubes env
SteveEisner Feb 20, 2026
b8fb0f0
Add ESP32 GLEDOPTO and tubes build environments
SteveEisner Feb 20, 2026
ad862cc
fastled bug fixes
craiglink Aug 22, 2024
e5820b8
Merge rebase-v0153 history branch into origin/main with tubes conflic…
SteveEisner Feb 20, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 39 additions & 3 deletions platformio_tubes.ini
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ build_flags = -D WLED_RELEASE_NAME=DIG2GO_TUBES
${env:esp32_quinled_dig2go.build_flags}
-D FASTLED_ESP32_SPI_BUS=HSPI
-D NUM_STRIPS=1 -D DEFAULT_LED_COUNT=150
-D CHRISTMAS # REMOVE
lib_ignore =
ESPAsyncTCP
ESPAsyncUDP
Expand Down Expand Up @@ -147,15 +148,14 @@ build_flags = ${env:esp32c3dev.build_flags}
[env:esp32-c3-athom_tubes]
extends = env:esp32-c3-athom
platform = espressif32@6.8.1
upload_speed = 115200
platform_packages =
;platform = ${tubes_no_mic.platform}
;platform_packages = ${tubes_no_mic.platform_packages}
build_unflags = ${env:esp32-c3-athom.build_unflags}
${tubes_no_mic.build_unflags}
build_flags = ${common.build_flags} ${esp32c3.build_flags} -D WLED_RELEASE_NAME=ESP32-C3_ATHOM_TUBES
build_flags = ${env:esp32-c3-athom.build_flags} -D WLED_RELEASE_NAME=ESP32-C3_ATHOM_TUBES
${tubes_no_mic.build_flags}
-D LEDPIN=10
-D BTNPIN=9
-D FASTLED_ESP32_SPI_BUS=HSPI
-D NUM_STRIPS=1 -D DEFAULT_LED_COUNT=150
-D WLED_WIFI_POWER_SETTING=WIFI_POWER_8_5dBm
Expand All @@ -164,3 +164,39 @@ lib_ignore = ${env:esp32-c3-athom.lib_ignore}
${tubes_no_mic.lib_ignore}
lib_deps =
${tubes_no_mic.lib_deps}


# ------------------------------------------------------------------------------
# ESP32 GLEDOPTO
#
# LEDs: GRB @ pin 16
# Button: GPIO 0
# SR: i2S SD 26, WS 5, SCK 21, MCLK unused
# ------------------------------------------------------------------------------
[env:esp32-gledopto]
extends = env:esp32dev
lib_ignore = IRremoteESP8266
${env:esp32c3dev.lib_ignore} ; ok to keep this line if it exists, harmless
build_flags =
-D LEDPIN=16
-D BTNPIN=0
-D WLED_DISABLE_INFRARED
-D IRTYPE=0

[env:esp32-gledopto_tubes]
extends = env:esp32-gledopto
platform = platformio/espressif32 @ 6.7.0
platform_packages =
framework-arduinoespressif32@3.20016.0 ; Arduino-ESP32 2.0.16
build_unflags = ${env:esp32-gledopto.build_unflags}
${tubes_no_mic.build_unflags}
build_flags = ${env:esp32-gledopto.build_flags}
${tubes_no_mic.build_flags}
-D FASTLED_ESP32_SPI_BUS=HSPI
-D NUM_STRIPS=1 -D DEFAULT_LED_COUNT=150
-D WLED_WIFI_POWER_SETTING=WIFI_POWER_8_5dBm
-D LOLIN_WIFI_FIX
lib_ignore = ${env:esp32-gledopto.lib_ignore}
${tubes_no_mic.lib_ignore}
lib_deps = ${env:esp32-gledopto.lib_deps}
${tubes_no_mic.lib_deps}
9 changes: 8 additions & 1 deletion usermods/Tubes/Tubes.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,17 @@
#define MASTER_PIN 25
#define LEGACY_PIN 32 // DigUno Q4

#ifndef NUM_STRIPS
#define NUM_STRIPS 1
#endif

#ifndef MAX_REAL_LEDS
#define MAX_REAL_LEDS (DEFAULT_LED_COUNT * NUM_STRIPS)
#endif

class TubesUsermod : public Usermod {
private:
PatternController controller = PatternController();
PatternController controller = PatternController(MAX_REAL_LEDS);
DebugController debug = DebugController(controller);
Master master = Master(controller);
bool isLegacy = false;
Expand Down
12 changes: 9 additions & 3 deletions usermods/Tubes/controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ class PatternController : public MessageReceiver {
}
}

// Compatibility ctor for older call sites that pass a real LED count.
PatternController(uint16_t real_led_count) : PatternController() {
(void)real_led_count;
}

bool isMasterRole() const {
#if defined(GOLDEN) || defined(CHRISTMAS) || defined(RUBY)
return true;
Expand Down Expand Up @@ -689,9 +694,10 @@ class PatternController : public MessageReceiver {
uint colors[4] = {18, 58, 71, 111};
next_state.palette_id = colors[r];
#elif defined(CHRISTMAS) // 81, 107 are too bright
uint r = random8(0, 20);
uint colors[20] = {/*gold:*/18, 58, 71, 111,
uint r = random8(0, 26);
uint colors[26] = {/*gold:*/18, 58, 71, 111,
/*yes:*/25, 34, 61, 63, 81, 112,
/*yesx2:*/25, 34, 61, 63, 81, 112,
/*best yes:*/25, 34, 34, 61, 63, 81, 112,
/*maybe:*/81, 28, 107};
next_state.palette_id = colors[r];
Expand Down Expand Up @@ -1495,4 +1501,4 @@ class PatternController : public MessageReceiver {
}


};
};
Loading