Increase 0.13 backwards compatibility

global LED buffer default true (0.13 backward compatibility)

Restore effects back to 0.13 (
- mode_wavesins
- mode_2DLissajous (uses segment setUpLeds)
- mode_2Dsquaredswirl (custom3<<3)
- mode_2DAkemi (uses segment setUpLeds)

setSegment implements setUpLeds if globalleds
This commit is contained in:
Ewoud
2022-11-17 15:41:12 +01:00
parent d3af3446f7
commit 017f0267a2
10 changed files with 660 additions and 659 deletions

View File

@@ -4537,7 +4537,7 @@ uint16_t mode_wavesins(void) {
for (int i = 0; i < SEGLEN; i++) {
uint8_t bri = sin8(millis()/4 + i * SEGMENT.intensity);
uint8_t index = beatsin8(SEGMENT.speed, SEGMENT.custom1, SEGMENT.custom1+SEGMENT.custom2, 0, i * (SEGMENT.custom3));
uint8_t index = beatsin8(SEGMENT.speed, SEGMENT.custom1, SEGMENT.custom1+SEGMENT.custom2, 0, i * (SEGMENT.custom3<<3));
//SEGMENT.setPixelColor(i, ColorFromPalette(SEGPALETTE, index, bri, LINEARBLEND));
SEGMENT.setPixelColor(i, SEGMENT.color_from_palette(index, false, PALETTE_SOLID_WRAP, 0, bri));
}
@@ -5080,8 +5080,6 @@ uint16_t mode_2DLissajous(void) { // By: Andrew Tuline
const uint16_t cols = SEGMENT.virtualWidth();
const uint16_t rows = SEGMENT.virtualHeight();
if (SEGENV.call == 0) SEGMENT.setUpLeds();
SEGMENT.fadeToBlackBy(SEGMENT.intensity);
//for (int i=0; i < 4*(cols+rows); i ++) {
@@ -5422,7 +5420,7 @@ uint16_t mode_2Dsquaredswirl(void) { // By: Mark Kriegsman. https://g
SEGMENT.fadeToBlackBy(24);
uint8_t blurAmount = SEGMENT.custom3>>1; // reduced resolution slider
uint8_t blurAmount = SEGMENT.custom3<<3; // reduced resolution slider
SEGMENT.blur(blurAmount);
// Use two out-of-sync sine waves
@@ -7243,7 +7241,7 @@ uint16_t mode_2DAkemi(void) {
const uint16_t cols = SEGMENT.virtualWidth();
const uint16_t rows = SEGMENT.virtualHeight();
if (SEGENV.call == 0) SEGMENT.setUpLeds();
// if (SEGENV.call == 0) SEGMENT.setUpLeds();
uint16_t counter = (strip.now * ((SEGMENT.speed >> 2) +2)) & 0xFFFF;
counter = counter >> 8;

View File

@@ -467,7 +467,6 @@ typedef struct Segment {
}
Segment(uint16_t sStartX, uint16_t sStopX, uint16_t sStartY, uint16_t sStopY) : Segment(sStartX, sStopX) {
Serial.println("Segment"); //WLEDMM jMap
startY = sStartY;
stopY = sStopY;
}
@@ -756,7 +755,7 @@ class WS2812FX { // 96 bytes
hasCCTBus(void),
// return true if the strip is being sent pixel updates
isUpdating(void),
useLedsArray = false;
useLedsArray = true; //WLEDMM default true as recommended for overlapping segments
inline bool isServicing(void) { return _isServicing; }
inline bool hasWhiteChannel(void) {return _hasWhiteChannel;}

View File

@@ -1591,6 +1591,7 @@ void WS2812FX::setSegment(uint8_t n, uint16_t i1, uint16_t i2, uint8_t grouping,
seg.stop = i2 > matrixWidth ? matrixWidth : i2;
if (startY < matrixHeight) seg.startY = startY;
seg.stopY = stopY > matrixHeight ? matrixHeight : MAX(1,stopY);
if (Segment::_globalLeds) seg.setUpLeds(); //WLEDMM force all effects to use globalleds
#endif
} else {
if (i1 < _length) seg.start = i1;

View File

@@ -608,6 +608,7 @@ Length: <input type="number" name="XC${i}" id="xc${i}" class="l" min="1" max="65
Make a segment for each output: <input type="checkbox" name="MS"><br>
Custom bus start indices: <input type="checkbox" onchange="tglSi(this.checked)" id="si"><br>
Use global LED buffer: <input type="checkbox" name="LD"><br>
<i>Recommended for overlapping segments (0.13 style)</i><br>
<hr class="sml">
<div id="color_order_mapping">
Color Order Override:

View File

@@ -17,7 +17,7 @@
<h2>MoonMod WLED Software Update</h2>
<form method='POST' action='/update' id='uf' enctype='multipart/form-data' onsubmit="U()">
<span class="sip">##VERSION##</span><br> <!--WLEDMM: show bin name-->
Download the latest binary: <a href="https://github.com/MoonModules/WLED/releases" target="_blank">
Download the latest release: <a href="https://github.com/MoonModules/WLED/releases" target="_blank">
<img src="https://img.shields.io/github/release/MoonModules/WLED.svg?style=flat-square"></a><br>
<input type='file' name='update' required><br> <!--should have accept='.bin', but it prevents file upload from android app-->
<button type="submit">Update!</button><br>

View File

@@ -41,46 +41,46 @@ const char PAGE_dmxmap[] PROGMEM = R"=====()=====";
#endif
// Autogenerated from wled00/data/update.htm, do not edit!!
const uint16_t PAGE_update_length = 607;
const uint16_t PAGE_update_length = 603;
const uint8_t PAGE_update[] PROGMEM = {
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x13, 0x75, 0x53, 0x4d, 0x6f, 0xd4, 0x30,
0x14, 0xbc, 0xe7, 0x57, 0xb8, 0x3e, 0xed, 0x4a, 0xd4, 0x29, 0x1f, 0x17, 0x4a, 0x92, 0xa2, 0xa5,
0x15, 0x42, 0xa2, 0x6a, 0xa5, 0xb6, 0x20, 0x4e, 0xc8, 0x89, 0x5f, 0x12, 0xb3, 0x8e, 0x9d, 0xda,
0x2f, 0xbb, 0x8a, 0x50, 0xff, 0x3b, 0xcf, 0xce, 0x2e, 0x20, 0x15, 0x2e, 0xd1, 0x3a, 0x9e, 0x37,
0x3b, 0x6f, 0x66, 0x52, 0x9c, 0x5c, 0xde, 0x7c, 0xb8, 0xff, 0x76, 0x7b, 0xc5, 0x7a, 0x1c, 0x4c,
0x55, 0x1c, 0x9e, 0x20, 0x55, 0x55, 0x0c, 0x80, 0x92, 0x35, 0xce, 0x22, 0x58, 0x2c, 0xf9, 0x5e,
0x2b, 0xec, 0x4b, 0x05, 0x3b, 0xdd, 0xc0, 0x69, 0x3a, 0x70, 0x66, 0xe5, 0x00, 0x25, 0xdf, 0x69,
0xd8, 0x8f, 0xce, 0x23, 0xaf, 0xb2, 0x02, 0x35, 0x1a, 0xa8, 0xbe, 0x7e, 0xbe, 0xba, 0x64, 0x0f,
0xa3, 0x92, 0x08, 0x45, 0xbe, 0xbc, 0x2a, 0x42, 0xe3, 0xf5, 0x88, 0x55, 0xd6, 0x4e, 0x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4, 0x78, 0xc1, 0x2d,
0xe2, 0x76, 0x7d, 0x91, 0x6d, 0xaf, 0x3a, 0x12, 0x79, 0x1a, 0x1f, 0x27, 0xb2, 0x32, 0x95, 0x53,
0xaa, 0x3a, 0xad, 0x51, 0x1a, 0x37, 0x4e, 0xc8, 0x66, 0x7f, 0x3a, 0x63, 0xe1, 0x58, 0xe4, 0xa3,
0x8b, 0x01, 0x1e, 0x27, 0x13, 0x40, 0xcf, 0xe8, 0x66, 0x42, 0xa4, 0x2e, 0xce, 0xf0, 0xd9, 0x37,
0x22, 0x9b, 0x93, 0x39, 0x29, 0xe5, 0x7c, 0xfd, 0x0f, 0xe8, 0x7c, 0x48, 0x66, 0xb7, 0xd6, 0xb4,
0x9b, 0x8a, 0xaf, 0x92, 0xd7, 0x2b, 0xaa, 0xf8, 0x9f, 0xa1, 0x1c, 0x4a, 0x5d, 0x6a, 0xb3, 0x2d,
0x72, 0x76, 0xa9, 0xa0, 0x44, 0x53, 0x67, 0x76, 0x6a, 0x9d, 0x10, 0x82, 0xc0, 0x99, 0xfc, 0x36,
0x6f, 0xcb, 0xb4, 0x67, 0xce, 0x23, 0x85, 0xe5, 0xe9, 0xe0, 0x03, 0x69, 0xed, 0x02, 0xc4, 0x3e,
0x47, 0x32, 0xaa, 0x35, 0xb0, 0xf3, 0x65, 0x29, 0x89, 0x2f, 0xad, 0x9b, 0xda, 0x96, 0xaa, 0x97,
0xde, 0xe9, 0xdf, 0x00, 0x3f, 0x0c, 0x61, 0xe9, 0x03, 0x00, 0x00
};

File diff suppressed because it is too large Load Diff

View File

@@ -8,7 +8,7 @@
*/
// version code in format yymmddb (b = daily build)
#define VERSION 2211170
#define VERSION 2211171
//uncomment this if you have a "my_config.h" file you'd like to use
//#define WLED_USE_MY_CONFIG