Skip to content

Commit b8fcab2

Browse files
committed
Inversed Rain direction (fixes wled#1147)
1 parent aa27b85 commit b8fcab2

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
### Development versions after the 0.10.2 release
44

5+
#### Build 2011040
6+
7+
- Inversed Rain direction (fixes #1147)
8+
59
#### Build 2011010
610

711
- Re-added previous C9 palette

wled00/FX.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,12 +1128,12 @@ uint16_t WS2812FX::mode_rain()
11281128
SEGENV.step += FRAMETIME;
11291129
if (SEGENV.step > SPEED_FORMULA_L) {
11301130
SEGENV.step = 0;
1131-
//shift all leds right
1132-
uint32_t ctemp = getPixelColor(SEGLEN -1);
1133-
for(uint16_t i = SEGLEN -1; i > 0; i--) {
1134-
setPixelColor(i, getPixelColor(i-1));
1131+
//shift all leds left
1132+
uint32_t ctemp = getPixelColor(0);
1133+
for(uint16_t i = 0; i < SEGLEN - 1; i++) {
1134+
setPixelColor(i, getPixelColor(i+1));
11351135
}
1136-
setPixelColor(0, ctemp);
1136+
setPixelColor(SEGLEN -1, ctemp);
11371137
SEGENV.aux0++;
11381138
SEGENV.aux1++;
11391139
if (SEGENV.aux0 == 0) SEGENV.aux0 = UINT16_MAX;

wled00/wled.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99

1010
// version code in format yymmddb (b = daily build)
11-
#define VERSION 2011010
11+
#define VERSION 2011040
1212

1313
// ESP8266-01 (blue) got too little storage space to work with all features of WLED. To use it, you must use ESP8266 Arduino Core v2.4.2 and the setting 512K(No SPIFFS).
1414

0 commit comments

Comments
 (0)