From 250202ebdc25ee5e19a4ee13c0c2186303e05c47 Mon Sep 17 00:00:00 2001 From: Will Tatam Date: Tue, 23 May 2023 19:31:19 +0100 Subject: [PATCH] Try and use SEGMENT.leds for Big_Caleido (Direct leds) --- platformio.ini | 2 +- usermods/usermod_v2_animartrix/usermod_v2_animartrix.h | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/platformio.ini b/platformio.ini index b01f1417..0788516b 100644 --- a/platformio.ini +++ b/platformio.ini @@ -851,7 +851,7 @@ lib_deps_M = OneWire@~2.3.5 ; used for USERMOD_FOUR_LINE_DISPLAY and USERMOD_DALLASTEMPERATURE olikraus/U8g2 @ ^2.28.8 ; used for USERMOD_FOUR_LINE_DISPLAY ElectronicCats/MPU6050 @ 0.6.0 ; used for USERMOD_MPU6050_IMU - https://github.com/netmindz/animartrix.git#2ff51b521d32016432eafa35273a7d1225c0e88c ; TODO: set based on USERMOD_ANIMARTRIX flag and git hash + https://github.com/netmindz/animartrix.git#f4089cb53110a5cc1c41173918ac73040dc86cbc ; TODO: set based on USERMOD_ANIMARTRIX flag and git hash lib_deps_V4_M = ;https://github.com/blazoncek/OneWire.git ; includes bugfixes for inconsistent readings diff --git a/usermods/usermod_v2_animartrix/usermod_v2_animartrix.h b/usermods/usermod_v2_animartrix/usermod_v2_animartrix.h index c9ce0289..82e44e77 100644 --- a/usermods/usermod_v2_animartrix/usermod_v2_animartrix.h +++ b/usermods/usermod_v2_animartrix/usermod_v2_animartrix.h @@ -447,7 +447,7 @@ static const char _data_FX_mode_SM4[] PROGMEM = "💡SM4 ☾"; static const char _data_FX_mode_SM3[] PROGMEM = "💡SM3 ☾"; static const char _data_FX_mode_SM2[] PROGMEM = "💡SM2 ☾"; static const char _data_FX_mode_SM1[] PROGMEM = "💡SM1 ☾"; -static const char _data_FX_mode_Big_Caleido[] PROGMEM = "💡Big_Caleido ☾"; +static const char _data_FX_mode_Big_Caleido[] PROGMEM = "💡Big_Caleido (Direct leds) ☾"; static const char _data_FX_mode_RGB_Blobs5[] PROGMEM = "💡RGB_Blobs5 ☾"; static const char _data_FX_mode_RGB_Blobs4[] PROGMEM = "💡RGB_Blobs4 ☾"; static const char _data_FX_mode_RGB_Blobs3[] PROGMEM = "💡RGB_Blobs3 ☾"; @@ -630,8 +630,13 @@ uint16_t mode_SM1() { return FRAMETIME; } uint16_t mode_Big_Caleido() { + if (SEGENV.call == 0) { + SEGMENT.setUpLeds(); //lossless getPixelColor() + SEGMENT.fill(BLACK); + anim.setBuffer(SEGMENT.leds); + } anim.Big_Caleido(); - anim.output(); +// anim.output(); return FRAMETIME; } uint16_t mode_RGB_Blobs5() {