Skip to content

Commit 5b920b2

Browse files
authored
Merge pull request #133 from ptbw/master
Expose WiFi.setLEDs(r, g, b) through AdafruitIO_AIRLIFT class.
2 parents a4e8933 + 32884eb commit 5b920b2

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ platformio.ini
1616
# Our handy .gitignore for automation ease
1717
Doxyfile*
1818
doxygen_sqlite3.db
19-
html
19+
html

src/wifi/AdafruitIO_AIRLIFT.h

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,21 @@ class AdafruitIO_AIRLIFT : public AdafruitIO {
9494
delete _http;
9595
}
9696

97+
/**************************************************************************/
98+
/*!
99+
@brief Allows setting of the AirLift RGB led from the
100+
Adafruit IO AirLift Class.
101+
@param r
102+
Red value, unsigned 8 bit value (0->255)
103+
@param g
104+
Green value, unsigned 8 bit value (0->255)
105+
@param b
106+
Blue value, unsigned 8 bit value (0->255)
107+
108+
*/
109+
/**************************************************************************/
110+
void setLEDs(uint8_t r, uint8_t g, uint8_t b) { WiFi.setLEDs(r, g, b); }
111+
97112
/********************************************************/
98113
/*!
99114
@brief Checks the version of an ESP32 module against
@@ -189,4 +204,4 @@ class AdafruitIO_AIRLIFT : public AdafruitIO {
189204
}
190205
};
191206

192-
#endif // ADAFRUITIO_AIRLIFT_H
207+
#endif // ADAFRUITIO_AIRLIFT_H

0 commit comments

Comments
 (0)