From bddc356acd27413a85583ceaafcb304ea227c259 Mon Sep 17 00:00:00 2001 From: William George Date: Thu, 21 Jan 2021 21:54:22 +0000 Subject: Update README.md Update 7-year-old TODO ;) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6bc0239b..32f190bd 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ How quickly can you get up and running with the library? Here's a simple blink ## Supported LED chipsets -Here's a list of all the LED chipsets are supported. More details on the led chipsets are included *TODO: Link to wiki page* +Here's a list of all the LED chipsets are supported. More details on the led chipsets are included [on our wiki page](https://github.com/FastLED/FastLED/wiki/Chipset-reference) * Adafruit's DotStars - AKA the APA102 * Adafruit's Neopixel - aka the WS2812B (also WS2811/WS2812/WS2813, also supported in lo-speed mode) - a 3 wire addressable led chipset -- cgit v1.2.3 From 17152614725d6079726d42e63157da74616606ad Mon Sep 17 00:00:00 2001 From: Christof Kaufmann Date: Wed, 26 May 2021 13:28:59 +0200 Subject: Add missing const in unary operator- --- src/pixeltypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pixeltypes.h b/src/pixeltypes.h index 6e91723d..62adf805 100644 --- a/src/pixeltypes.h +++ b/src/pixeltypes.h @@ -412,7 +412,7 @@ struct CRGB { } /// invert each channel - inline CRGB operator- () + inline CRGB operator- () const { CRGB retval; retval.r = 255 - r; -- cgit v1.2.3 From dfc3788b146d77059806cd24e66e7499693df7b9 Mon Sep 17 00:00:00 2001 From: Seth Troisi Date: Wed, 2 Jun 2021 19:00:17 -0700 Subject: Add scale8(uint8) --- src/pixeltypes.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/pixeltypes.h b/src/pixeltypes.h index 6e91723d..addaafff 100644 --- a/src/pixeltypes.h +++ b/src/pixeltypes.h @@ -352,6 +352,14 @@ struct CRGB { return *this; } + /// return a CRGB object that is a scaled down version of this object + inline CRGB scale8 (uint8_t scaledown ) const + { + CRGB out = *this; + nscale8x3( out.r, out.g, out.b, scaledown); + return out; + } + /// return a CRGB object that is a scaled down version of this object inline CRGB scale8 (const CRGB & scaledown ) const { -- cgit v1.2.3 From 7b079f43ff78e3e1d50923eb18e181b51ab7ee84 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Tue, 22 Jun 2021 15:07:30 +0200 Subject: Fix incorrectly calling perlin noise "Simplex Noise" Simplex noise is something different and is not implemented by the FastLED library (yet!). Therefore, don't confuse people by calling it Simplex Noise. --- examples/NoisePlusPalette/NoisePlusPalette.ino | 2 +- src/noise.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/NoisePlusPalette/NoisePlusPalette.ino b/examples/NoisePlusPalette/NoisePlusPalette.ino index 4670cc38..aa360b7c 100644 --- a/examples/NoisePlusPalette/NoisePlusPalette.ino +++ b/examples/NoisePlusPalette/NoisePlusPalette.ino @@ -15,7 +15,7 @@ const bool kMatrixSerpentineLayout = true; // This example combines two features of FastLED to produce a remarkable range of // effects from a relatively small amount of code. This example combines FastLED's -// color palette lookup functions with FastLED's Perlin/simplex noise generator, and +// color palette lookup functions with FastLED's Perlin noise generator, and // the combination is extremely powerful. // // You might want to look at the "ColorPalette" and "Noise" examples separately diff --git a/src/noise.h b/src/noise.h index 7355e23e..8a0db3f4 100644 --- a/src/noise.h +++ b/src/noise.h @@ -9,11 +9,11 @@ FASTLED_NAMESPACE_BEGIN /// Noise functions provided by the library. ///@defgroup Noise Noise functions -///Simplex noise function definitions +///Perlin noise function definitions ///@{ /// @name scaled 16 bit noise functions ///@{ -/// 16 bit, fixed point implementation of perlin's Simplex Noise. Coordinates are +/// 16 bit, fixed point implementation of Perlin's noise. Coordinates are /// 16.16 fixed point values, 32 bit integers with integral coordinates in the high 16 /// bits and fractional in the low 16 bits, and the function takes 1d, 2d, and 3d coordinate /// values. These functions are scaled to return 0-65535 @@ -34,7 +34,7 @@ extern int16_t inoise16_raw(uint32_t x); /// @name 8 bit scaled noise functions ///@{ -/// 8 bit, fixed point implementation of perlin's Simplex Noise. Coordinates are +/// 8 bit, fixed point implementation of Perlin's noise. Coordinates are /// 8.8 fixed point values, 16 bit integers with integral coordinates in the high 8 /// bits and fractional in the low 8 bits, and the function takes 1d, 2d, and 3d coordinate /// values. These functions are scaled to return 0-255 -- cgit v1.2.3