Skip to content

Add RGB Status LED to WiFiManager #53

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 2 commits into from
Jun 11, 2019

Conversation

brentru
Copy link
Member

@brentru brentru commented Jun 11, 2019

This pull request adds the option of using an externally defined RGB LED (https://github.com/adafruit/Adafruit_CircuitPython_RGBLED) as a status_pixel for WiFiManager. Useful for AirLift Breakout and FeatherWing.

  • pixel_status has been modified to set color based on LED type.
  • Modified examples/esp32spi_aio_post.py to show usage for a RGB LED.

Tested with Feather M4 on CircuitPython 4.0.1, AirLift FeatherWing. Tested both constructing and passing wifi an RGB LED status_pixel and a NeoPixel status_pixel.

Addressing #47

@brentru brentru requested a review from a team June 11, 2019 14:40
@@ -54,6 +55,9 @@ def __init__(self, esp, secrets, status_pixel=None, attempts=2):
self.attempts = attempts
requests.set_interface(self._esp)
self.statuspix = status_pixel
self._is_rgb_led = False
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is no need to have an additional variable to lose/keep track of, just do all tests in the function in question

@ladyada ladyada merged commit 92182ea into adafruit:master Jun 11, 2019
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jun 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants