Closed ptbw closed 4 years ago
@ptbw can you please submit a PR? that way we can more quickly test/approve :)
@ptbw This could be useful - what are you hoping for with this request? As it stands, this snippet asks for LEDs to be exposed at the network interface level.
Do you want the LEDs to be changed when Adafruit IO library functions are executed (red for unable to connect, blink when new packets are received?)?
@brentru I was looking for an easy way to access the LED on the AirLift feather wing via the AdafruitIO_AIRLIFT class as it was available in the WiFi class, to do exactly what you are suggesting and surprised it was not available to the inheritor. I will create a pull request.
@ptbw Sounds good, do make sure that it's only valid for the Airlift co-processor (we detect this in _WiFi.h). This library uses other network interface types which do not necessarily have the functionality of the WiFiNINA classes
@brentru You did warn me but how do I reproduce the CI build tests on my Ubuntu machine, so I can avoid issues in future as just manipulating the config.h file is clearly not enough or changing the board type in the Arduino IDE?
Doxygen: https://learn.adafruit.com/the-well-automated-arduino-library/doxygen
For clang, the formatting script is within https://github.com/adafruit/ci-arduino
Released, https://github.com/adafruit/Adafruit_IO_Arduino/releases/tag/3.8.0, closing
[Enhancement request] Expose void WiFi.setLEDs through AdafruitIO_AIRLIFT
Expose the WiFi.setLEDs method to allow simple access to the RGB LED on the Feather AirLift ie: