Skip to content

Commit

Permalink
Inversed Rain direction (fixes wled#1147)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aircoookie committed Nov 4, 2020
1 parent aa27b85 commit b8fcab2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

### Development versions after the 0.10.2 release

#### Build 2011040

- Inversed Rain direction (fixes #1147)

#### Build 2011010

- Re-added previous C9 palette
Expand Down
10 changes: 5 additions & 5 deletions wled00/FX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1128,12 +1128,12 @@ uint16_t WS2812FX::mode_rain()
SEGENV.step += FRAMETIME;
if (SEGENV.step > SPEED_FORMULA_L) {
SEGENV.step = 0;
//shift all leds right
uint32_t ctemp = getPixelColor(SEGLEN -1);
for(uint16_t i = SEGLEN -1; i > 0; i--) {
setPixelColor(i, getPixelColor(i-1));
//shift all leds left
uint32_t ctemp = getPixelColor(0);
for(uint16_t i = 0; i < SEGLEN - 1; i++) {
setPixelColor(i, getPixelColor(i+1));
}
setPixelColor(0, ctemp);
setPixelColor(SEGLEN -1, ctemp);
SEGENV.aux0++;
SEGENV.aux1++;
if (SEGENV.aux0 == 0) SEGENV.aux0 = UINT16_MAX;
Expand Down
2 changes: 1 addition & 1 deletion wled00/wled.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

// version code in format yymmddb (b = daily build)
#define VERSION 2011010
#define VERSION 2011040

// 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).

Expand Down

0 comments on commit b8fcab2

Please sign in to comment.