Skip to content

feature/nextion-controller#10

Merged
swhelan123 merged 3 commits intomainfrom
feature/nextion-controller
Apr 14, 2026
Merged

feature/nextion-controller#10
swhelan123 merged 3 commits intomainfrom
feature/nextion-controller

Conversation

@louisbrennan
Copy link
Copy Markdown
Contributor

@louisbrennan louisbrennan commented Apr 11, 2026

Made static Nextion class instead of just a namespace for access modifiers. The logic for nextion methods more or less copied from prototype, except privatised sendCmd for safety and used string safe methods.

Made a struct DashStatus with the dash information to move away from using globals for all the metrics. Instead a dashStatus struct is passed into updateDash. This gives us freedom to either use a global/static dashStatus struct for CAN telemetry or make a struct out of the metrics each time.

@swhelan123

@louisbrennan louisbrennan requested a review from swhelan123 April 11, 2026 21:46
Copy link
Copy Markdown
Member

@swhelan123 swhelan123 left a comment

Choose a reason for hiding this comment

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

i know this is just an OOPified version of the existing nextion code, but you have creative freedom here if you see any possible improvements that can be made

think how things could be set up so minimal code changes are required if the dash setup changes and if more pages are added or different types of components are added to pages

have a flick through the nextion editor to get a feel for what's available.

@louisbrennan louisbrennan requested a review from swhelan123 April 13, 2026 18:09
@louisbrennan
Copy link
Copy Markdown
Contributor Author

Just did short ints cause god help us if any of those values hit 32k

@swhelan123 swhelan123 merged commit 2defe75 into main Apr 14, 2026
@swhelan123 swhelan123 deleted the feature/nextion-controller branch April 14, 2026 17:48
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.

3 participants