forked from airgradienthq/arduino
[Lib] Change LedBar function name getNumberOfLed to getNumberOfLeds
This commit is contained in:
1 parent
512420f5a2
commit
b2762a3b6c
5 files changed
+26
-27
No files matched your search
+2
-2
@@ -48,7 +48,7 @@ void LedBar::begin(void) {
|
||||
* @param red Color Red (0 - 255)
|
||||
* @param green Color Green (0 - 255)
|
||||
* @param blue Color Blue (0 - 255)
|
||||
* @param ledNum Index of LED from 0 to getNumberOfLed() - 1
|
||||
* @param ledNum Index of LED from 0 to getNumberOfLeds() - 1
|
||||
*/
|
||||
void LedBar::setColor(uint8_t red, uint8_t green, uint8_t blue, int ledNum) {
|
||||
if (this->ledNumInvalid(ledNum)) {
|
||||
@@ -75,7 +75,7 @@ void LedBar::setBrighness(uint8_t brightness) {
|
||||
*
|
||||
* @return int Number of LED
|
||||
*/
|
||||
int LedBar::getNumberOfLed(void) {
|
||||
int LedBar::getNumberOfLeds(void) {
|
||||
if (this->isBegin() == false) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ public:
|
||||
void setColor(uint8_t red, uint8_t green, uint8_t blue, int ledNum);
|
||||
void setColor(uint8_t red, uint8_t green, uint8_t blue);
|
||||
void setBrighness(uint8_t brightness);
|
||||
int getNumberOfLed(void);
|
||||
int getNumberOfLeds(void);
|
||||
void show(void);
|
||||
void clear(void);
|
||||
|
||||
|
||||
Reference in new issue
Block a user