-
Notifications
You must be signed in to change notification settings - Fork 323
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
Player LED indexes (RGB) treated as GPIO pins #730
Comments
I see why the rest of the reported issue is happening, but I'm not sure why the bug I introduced would break the LEDs. "Assigned to addon" basically means "core isn't going to touch this", so while the reservation is wrong, the LED addon should still be processing these fields normally. |
Assigning this to me to fix the webconfig part, but I need someone else to tell me if the other issue described has anything to do with my change (and I'm currently skeptical as above). |
I was doing some more testing and I ran into an issue that may be related to the second part. |
Interesting, I've pinged some folks who know more about the recent XInput changes to see if they suspect anything. I'll be sure to fix the webconfig part though. |
@InfraredAces reminded me that this is something we discussed and missed. RGB player LEDs use the same configuration fields as the PWM player LEDs, and the PWM LEDs are GPIO based, hence the reservation. Probably the right thing to do is to add new fields for RGB player LED indexes. Sadly, this will be a bit more work, but I can take a crack at it soonish. |
@jakubkoziol if you are up for beta testing, see my branch in #735 --- it should fix the issue. You can either nuke the board and start with a fresh config where RGB indexes are not reserved in Pin Mappings, or...
|
I saw on discord you already got info that it works but just to confirm, it's OK on my end as well! One more related, minor issue I found, i2c pins defined in board config are not blocked in pin mapping on a freshly flashed board. Clicking save in peripheral mapping makes things work as intended. As for the PLEDs not working when assigned, I had a few instances where they didn't work but I can't find a reliable repro steps. I'll post it as a separate issue if I figure out what's happening (and it doesn't turn out to be a user error). |
Thanks for confirming #735 is good! Can you open a new issue for the I2C pins not being ASSIGNED_TO_ADDON on a fresh board? We should fix that but it doesn't sound critical, so we'll get to it soonish but not "hotfix" soon. :) |
I couldn't get to it sooner but just posted #778. |
This has all been resolved. Closing issue |
Prerequisites
Please check the following before posting an issue / bug report.
Context
Expected Behavior
Player LED in RGB mode uses assigned LED indexes at the end of the LED strip to indicate player number.
Assigned LED indexes are not related to GPIO pins so they don't have impact on which GPIO pins are blocked.
Current Behavior
Assigning LED index to Player LED in RGB mode appears to treat LED indexes as GPIO pins.
This results in:
Steps to Reproduce
The text was updated successfully, but these errors were encountered: