Skip to content

Commit

Permalink
add the getBrightness method
Browse files Browse the repository at this point in the history
  • Loading branch information
diegofernandes committed Sep 18, 2014
1 parent c46a3e8 commit 7e81b04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Adafruit_NeoPixel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ void Adafruit_NeoPixel::setBrightness(uint8_t b) {
}
}
//Return the brightness value
uint8_t Adafruit_NeoPixel::getBrightness(void) {
uint8_t Adafruit_NeoPixel::getBrightness(void) const {
return brightness - 1;
}

2 changes: 1 addition & 1 deletion Adafruit_NeoPixel.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Adafruit_NeoPixel {
setBrightness(uint8_t);
uint8_t
*getPixels(void) const,
getBrightness(void);
getBrightness(void) const;
uint16_t
numPixels(void) const;
static uint32_t
Expand Down

0 comments on commit 7e81b04

Please sign in to comment.