defragster
Senior Member+
I have a work in progress where:
User button text is a pointer to "TEXT" the compiler puts in FLASH, 4 byte pointer can be a string of user entered size, and the string* can change at runtime.
Pointer to button struct is passed on ButtonInit - so you can have multiple screens of buttons to swap.
Requires a 'sentinel' button to terminate the button list.
Button struct re-ordered - but it was going to change anyhow - put text string first - where it was the compiler was adding padding for word boundary it seemed
User button text is a pointer to "TEXT" the compiler puts in FLASH, 4 byte pointer can be a string of user entered size, and the string* can change at runtime.
Pointer to button struct is passed on ButtonInit - so you can have multiple screens of buttons to swap.
Requires a 'sentinel' button to terminate the button list.
Button struct re-ordered - but it was going to change anyhow - put text string first - where it was the compiler was adding padding for word boundary it seemed