diff --git a/Adafruit_NeoPixel.h b/Adafruit_NeoPixel.h index afec9f03..483743e5 100644 --- a/Adafruit_NeoPixel.h +++ b/Adafruit_NeoPixel.h @@ -231,7 +231,7 @@ class Adafruit_NeoPixel { @return 1 or true if show() will start sending immediately, 0 or false if show() would block (meaning some idle time is available). */ - boolean canShow(void) { return (micros() - endTime) >= 300L; } + boolean canShow(void) const { return (micros()-endTime) >= 300L; } /*! @brief Get a pointer directly to the NeoPixel data buffer in RAM. Pixel data is stored in a device-native format (a la the NEO_* @@ -252,7 +252,7 @@ class Adafruit_NeoPixel { @brief Retrieve the pin number used for NeoPixel data output. @return Arduino pin number (-1 if not set). */ - int16_t getPin(void) const { return pin; }; + int16_t getPin(void) const { return pin; }; /*! @brief Return the number of pixels in an Adafruit_NeoPixel strip object. @return Pixel count (0 if not set). @@ -340,7 +340,7 @@ class Adafruit_NeoPixel { boolean begun; ///< true if begin() previously called uint16_t numLEDs; ///< Number of RGB LEDs in strip uint16_t numBytes; ///< Size of 'pixels' buffer below - int16_t pin; ///< Output pin number (-1 if not yet set) + int16_t pin; ///< Output pin number (-1 if not yet set) uint8_t brightness; ///< Strip brightness 0-255 (stored as +1) uint8_t *pixels; ///< Holds LED color values (3 or 4 bytes each) uint8_t rOffset; ///< Red index within each 3- or 4-byte pixel diff --git a/library.properties b/library.properties index 0c4efcea..7092dbbd 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Adafruit NeoPixel -version=1.2.3 +version=1.2.4 author=Adafruit maintainer=Adafruit sentence=Arduino library for controlling single-wire-based LED pixels and strip.