-
Notifications
You must be signed in to change notification settings - Fork 52
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
C6 Feather can't use onboard neopixel as user component #691
Comments
|
It's not flowing as expected. When the neopixel object (status LED) is deleted, it doesn't reset the static rmtPin in esp.c part of NeoPixel. If I set the destructor to be lower in the file (after declaring espShow), and add something like this to clear the old channel, then it works as expected: /*!
@brief Deallocate Adafruit_NeoPixel object, set data pin back to INPUT.
*/
Adafruit_NeoPixel::~Adafruit_NeoPixel() {
free(pixels);
if (pin >= 0)
pinMode(pin, INPUT);
#if defined(ESP32)
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0)
if (begun)
{
log_d("Deinit RMT on pin %d (destructor)", pin);
espShow(pin, NULL, 0, is800KHz);
}
#endif
#endif
} |
Adafruit NeoPixel changes: Wipper logging changes: |
Does this need a PR into |
@tyeth Circling back - does this still need to be added to Adafruit_NeoPixel? Do you want me to look at it this week, or do you have it? |
This has now made it's way through the pipeline, neopixel is released and detected at https://downloads.arduino.cc/libraries/logs/github.com/adafruit/Adafruit_NeoPixel/ and I've gone and kicked CI so we get a fresh copy to test. |
While doing the guide for Neopixel usage on the C6, it was noticed that the status illuminations work, but using the IO9 pin as a user component doesn't.
Serial:
The text was updated successfully, but these errors were encountered: