Inversed Rain direction (fixes #1147)
This commit is contained in:
parent
aa27b85538
commit
b8fcab29ac
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user