upgrade to FastLED 3.6.0
changes from 3.50 to 3.6.0: * bugfixes * removed "register" keyword * some speedups * explicit bool() and uint32_t() operators, see https://github.com/FastLED/FastLED/issues/819 FX.cpp: bugfix for "wled00/FX.cpp:4906:36: error: cannot convert 'CRGB' to 'uint32_t' {aka 'unsigned int'} in initialization"
This commit is contained in:
		| @@ -4903,7 +4903,7 @@ uint16_t mode_2Dgameoflife(void) { // Written by Ewoud Wijma, inspired by https: | ||||
|     } // i,j | ||||
|  | ||||
|     // Rules of Life | ||||
|     uint32_t col = prevLeds[XY(x,y)]; | ||||
|     uint32_t col = uint32_t(prevLeds[XY(x,y)]) & 0x00FFFFFF;  // uint32_t operator returns RGBA, we want RGBW -> cut off "alpha" byte | ||||
|     uint32_t bgc = RGBW32(backgroundColor.r, backgroundColor.g, backgroundColor.b, 0); | ||||
|     if      ((col != bgc) && (neighbors <  2)) SEGMENT.setPixelColorXY(x,y, bgc); // Loneliness | ||||
|     else if ((col != bgc) && (neighbors >  3)) SEGMENT.setPixelColorXY(x,y, bgc); // Overpopulation | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Frank
					Frank