Skip to content

Expose WiFi.setLEDs(r, g, b) through AdafruitIO_AIRLIFT class. #133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ platformio.ini
# Our handy .gitignore for automation ease
Doxyfile*
doxygen_sqlite3.db
html
html
17 changes: 16 additions & 1 deletion src/wifi/AdafruitIO_AIRLIFT.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,21 @@ class AdafruitIO_AIRLIFT : public AdafruitIO {
delete _http;
}

/**************************************************************************/
/*!
@brief Allows setting of the AirLift RGB led from the
Adafruit IO AirLift Class.
@param r
Red value, unsigned 8 bit value (0->255)
@param g
Green value, unsigned 8 bit value (0->255)
@param b
Blue value, unsigned 8 bit value (0->255)

*/
/**************************************************************************/
void setLEDs(uint8_t r, uint8_t g, uint8_t b) { WiFi.setLEDs(r, g, b); }

/********************************************************/
/*!
@brief Checks the version of an ESP32 module against
Expand Down Expand Up @@ -189,4 +204,4 @@ class AdafruitIO_AIRLIFT : public AdafruitIO {
}
};

#endif // ADAFRUITIO_AIRLIFT_H
#endif // ADAFRUITIO_AIRLIFT_H