Skip to content

Commit

Permalink
Update Adafruit_CircuitPlayground.h
Browse files Browse the repository at this point in the history
Added setBrightness() function to allow setting the neopixel brightness dynamically within a sketch
  • Loading branch information
cogliano committed May 19, 2016
1 parent d8186d5 commit 305f151
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Adafruit_CircuitPlayground.h
Expand Up @@ -81,6 +81,7 @@ class Adafruit_CircuitPlayground {
void clearPixels(void) { strip.clear(); strip.show(); }
void setPixelColor(uint8_t p, uint32_t c) {strip.setPixelColor(p, c); strip.show();}
void setPixelColor(uint8_t p, uint8_t r, uint8_t g, uint8_t b) {strip.setPixelColor(p, r, g, b); strip.show();}
void setBrightness(uint16_t b){strip.setBrightness(b);}

uint32_t colorWheel(uint8_t x);
private:
Expand Down

0 comments on commit 305f151

Please sign in to comment.