diff --git a/Helper_Scripts/screenmirror.py b/Helper_Scripts/screenmirror.py index cc0011d..dd967cf 100644 --- a/Helper_Scripts/screenmirror.py +++ b/Helper_Scripts/screenmirror.py @@ -15,8 +15,8 @@ def __init__(self, root, ip_address): self.labels = [] screen_width = root.winfo_screenwidth() - label_width = (screen_width // 32) // 2 - label_height = label_width + label_width = (screen_width // self.width) // 2 + label_height = label_width # 1:1 Verhältnis (ratio) padding = 1 top_margin = 0 @@ -82,4 +82,4 @@ def capture_image(self): root.resizable(False, False) ip_address = simpledialog.askstring("AWTRIX 3", "Please enter IP address:") app = LedScreenApp(root, ip_address) -root.mainloop() \ No newline at end of file +root.mainloop() diff --git a/README.md b/README.md index 2e1ad0f..bf9d2da 100644 --- a/README.md +++ b/README.md @@ -112,10 +112,11 @@ Youtube videos from some awesome creators to get a quick first look. # Support If you want to support my work, I really appreciate your donation! All the money will be allocated towards purchasing new hardware for testing purposes, software licenses, server costs, and a significant portion will also be set aside for dinners and trips with my wife and kids so that they can continue to endure the many hours I spend programming :) - -https://github.com/sponsors/Blueforcer + +https://www.paypal.me/blueforcer +https://github.com/sponsors/Blueforcer https://www.buymeacoffee.com/blueforcer -https://www.paypal.me/blueforcer + # Contributors diff --git a/docs/assets/Fade.gif b/docs/assets/Fade.gif new file mode 100644 index 0000000..2126a42 Binary files /dev/null and b/docs/assets/Fade.gif differ diff --git a/docs/effects.md b/docs/effects.md index e449bca..01a8e57 100644 --- a/docs/effects.md +++ b/docs/effects.md @@ -6,7 +6,7 @@ AWTRIX 3 can show effects wherever you want Just call the name for your favorite effect. AWTRIX sends all effect names once after start via MQTT to stats/effects. So you can create external selectors. -Its also accessible via HTTTP /api/effects +Its also accessible via HTTP /api/effects @@ -70,6 +70,12 @@ Its also accessible via HTTTP /api/effects + + + + + +
MovingLine
Fade  
diff --git a/src/PeripheryManager.cpp b/src/PeripheryManager.cpp index 2c64d33..c7c186b 100644 --- a/src/PeripheryManager.cpp +++ b/src/PeripheryManager.cpp @@ -320,6 +320,7 @@ const char *PeripheryManager_::playRTTTLString(String rtttl) melodyName[sizeof(melodyName) - 1] = '\0'; return melodyName; } + return nullptr; // RTTTL not supported with DFPlayer } const char *PeripheryManager_::playFromFile(String file) diff --git a/src/effects.cpp b/src/effects.cpp index 18d84d5..96c807f 100644 --- a/src/effects.cpp +++ b/src/effects.cpp @@ -1291,10 +1291,13 @@ void EffectOverlay(FastLED_NeoMatrix *matrix, int16_t x, int16_t y, OverlayEffec // Turn off the pixel after MAX_COLOR_CHANGES changes if (colorChanges[i][j] > 6) { - leds[i][j] = CRGB::Black; colorChanges[i][j] = 0; // Reset the counter for this pixel } } + if (colorChanges[i][j] == 0) + { + leds[i][j] = CRGB::Black; + } } }