I've basically been viewing the setUi as a fixed thing vs assigning the components separately so the components can behave differently based on the environment I'm in.
I've been playing around with this over the last day and I think I've got it working correctly now, so hopefully I've understood your feedback correctly.
Attached is what I came up with in my larger project. Hopefully it's not too off the mark from your guidance but appriciate any feedback if there's some basic things I've not understood.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thanks @Gordon I think that makes sense.
I've basically been viewing the setUi as a fixed thing vs assigning the components separately so the components can behave differently based on the environment I'm in.
I've been playing around with this over the last day and I think I've got it working correctly now, so hopefully I've understood your feedback correctly.
Attached is what I came up with in my larger project. Hopefully it's not too off the mark from your guidance but appriciate any feedback if there's some basic things I've not understood.
1 Attachment