This commit is contained in:
Robert K 2022-12-29 20:30:21 +01:00
parent 6a77947381
commit 84be424218
4 changed files with 41 additions and 42 deletions

View File

@ -41,10 +41,10 @@
#define NEO_KHZ400 0x00 // 400 KHz datastream
#endif
class Adafruit_NeoPixel {
class Adafruit_NeoPixel
{
public:
// Constructor: number of LEDs, pin number, LED type
Adafruit_NeoPixel(uint16_t n, uint8_t p = 6, uint8_t t = NEO_GRB + NEO_KHZ800);
~Adafruit_NeoPixel();
@ -59,7 +59,8 @@ class Adafruit_NeoPixel {
setBrightness(uint8_t),
clear();
uint8_t
*getPixels(void) const,
*
getPixels(void) const,
getBrightness(void) const;
uint16_t
numPixels(void) const;
@ -71,7 +72,6 @@ class Adafruit_NeoPixel {
canShow(void) { return (micros() - endTime) >= 50L; }
private:
const uint16_t
numLEDs, // Number of RGB LEDs in strip
numBytes; // Size of 'pixels' buffer below
@ -92,7 +92,6 @@ class Adafruit_NeoPixel {
uint8_t
pinMask; // Output PORT bitmask
#endif
};
#endif // ADAFRUIT_NEOPIXEL_H