Skip to content
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

feat(bw128): add customisable switches edit page, allow editing custom colors #5799

Merged
merged 2 commits into from
Jan 20, 2025

Conversation

philmoz
Copy link
Collaborator

@philmoz philmoz commented Jan 18, 2025

Changes:

  • Editing of custom function switches is on a new menu page so all the fields have labels to show what they are.
  • On radios with RGB LEDs (GX12) the color RGB values can be edited to select any color.
  • Removed the color editing from the main model setup menu page.
  • All 24 color bits are sent to the LED strip instead of only 5 bits per color.

screenshot_gx12_25-01-18_15-09-41

screenshot_gx12_25-01-18_15-16-33

@philmoz philmoz added enhancement ✨ New feature or request UX-UI Related to user experience (UX) or user interface (UI) behaviour B&W Related generally to black and white LCD radios labels Jan 18, 2025
@philmoz philmoz added this to the 2.11 milestone Jan 18, 2025
@philmoz philmoz force-pushed the philmoz/bw-fs-edit branch from e09964c to 15701f5 Compare January 19, 2025 03:46
@pfeerick
Copy link
Member

Looking good here. Should it be detecting ... preset? ... colours in more than one place? i.e. Red is detected at both 255,0,0 and 248,0,0, and same for other colours.

@pfeerick pfeerick changed the title feat(bw): move editing of custom function switches to seperate page and allow editing custom colors. feat(bw): cccccctedgejuhcidnbhnhnfjkckljcjedintklvltkg customisable switches to separate page, allow editing custom colors Jan 19, 2025
@pfeerick pfeerick changed the title feat(bw): cccccctedgejuhcidnbhnhnfjkckljcjedintklvltkg customisable switches to separate page, allow editing custom colors feat(bw): customisable switches edit page, allow editing custom colors Jan 19, 2025
@pfeerick pfeerick changed the title feat(bw): customisable switches edit page, allow editing custom colors feat(bw): add customisable switches edit page, allow editing custom colors Jan 19, 2025
@pfeerick pfeerick changed the title feat(bw): add customisable switches edit page, allow editing custom colors feat(bw128): add customisable switches edit page, allow editing custom colors Jan 19, 2025
@philmoz
Copy link
Collaborator Author

philmoz commented Jan 19, 2025

Looking good here. Should it be detecting ... preset? ... colours in more than one place? i.e. Red is detected at both 255,0,0 and 248,0,0, and same for other colours.

Yes - at the moment. The original version distributed with the GX12 was using 0xF8 (248) color values. I changed this to 255; but kept a check for both. Something that could be removed in the future.

@pfeerick
Copy link
Member

See what @3djc thinks when he wakes up. The firmware that was shipped with hardware was unsupported pre-release / preview, so IMO it is better to "fix" it now, rather than perpetuate a state that won't be used going forward. It is expected that there could be breakages with updates to the officlally supported release firmware, to the point where configuration
will break completely.

@philmoz
Copy link
Collaborator Author

philmoz commented Jan 19, 2025

Makes sense - I've removed the extra check.

I added it in #5776 so that the names shown would not change to 'Custom'. Since you can now see the values it's less of an issue.

@pfeerick
Copy link
Member

I'll merge this now then, and if JC thinks differently we can just revert the last commit or similar.

@pfeerick pfeerick merged commit a3c0e0a into main Jan 20, 2025
49 checks passed
@pfeerick pfeerick deleted the philmoz/bw-fs-edit branch January 20, 2025 00:13
@3djc
Copy link
Collaborator

3djc commented Jan 20, 2025

I think this is overdoing it, and I whished we could go back to colorlcd as well and simplify it. A pick of usual 6 to 8 named color is likely more than enough, especially because color rendering of those led is pretty bad

@philmoz
Copy link
Collaborator Author

philmoz commented Jan 20, 2025

The option to select from the fixed colors is still there.

@pfeerick
Copy link
Member

pfeerick commented Jan 20, 2025 via email

@nicpottier
Copy link

Forgive me if this isn't the right place to ask this but is the plan to add similar support for SA and SD on the GX12? These seem like they would benefit from the same type of configuration of color / toggle type etc..

@3djc
Copy link
Collaborator

3djc commented Jan 22, 2025

Ideally, we would have liked to setup sa/sd as customisable switch,, but there are currently underlying issues that would make it too confusing

@nicpottier
Copy link

Ah ok. Out of curiosity is that a hardware or software issue? The LEDs for those switches are adjustable via lua then?

@philmoz
Copy link
Collaborator Author

philmoz commented Jan 23, 2025

The LEDs for those switches are adjustable via lua then?

At the moment they can't be changed.

@pfeerick
Copy link
Member

pfeerick commented Jan 23, 2025

Ah ok. Out of curiosity is that a hardware or software issue? The LEDs for those switches are adjustable via lua then?

Software issue. Mainly a matter of figuring out how to present configuration options in an intuitive manner.

You do have control over whether they as momentary or 2POS switches in nightly firmware though, just not colours.

@nicpottier
Copy link

nicpottier commented Jan 23, 2025 via email

@philmoz
Copy link
Collaborator Author

philmoz commented Jan 23, 2025

Where is the 2pos vs momentary controlled? (and does the LED toggle with?)

Radio -> Hardware page.

@philmoz
Copy link
Collaborator Author

philmoz commented Jan 23, 2025

I loaded the nightly and honestly would have been fine seeing those two switches in the same place as the other six, just in their own groups. (or no group at all)

That would be my preference - setting them per model the same as the other customisable switches.

@pfeerick
Copy link
Member

pfeerick commented Jan 23, 2025

I somewhat agree, but also think it should also have a global option (i.e. similar to the ADC jitter filter, enabled features, etc) so you don't need to define them on a per model basis if you don't want to (i.e. it would default to a hardware settings value). They probably do need to be seperate to the other six customisable switches due to physical location/ logical grouping as a 6POS, as well as having slightly different settings, but that would probably be all - i.e. doesn't need another screen or anything. Just some sort of separation in the layout.

@3djc
Copy link
Collaborator

3djc commented Jan 23, 2025

The issue is one of ordering, a software one. 'things' are presented grouped, switch are no exception. If put part of customisable switches (which would have been my preference), switch order would become SB, SC, SE, SF, SH, SW1..SW6, SA, SD when you scroll through those. That would confuse users. We need somewhat deep software changes to be abale to display in another order.

@pfeerick
Copy link
Member

pfeerick commented Jan 23, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B&W Related generally to black and white LCD radios enhancement ✨ New feature or request UX-UI Related to user experience (UX) or user interface (UI) behaviour
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants