Custom controls

Starting playing around with the new ‘Custom’ control.

Would be nice if the preset format would allow to define the paintCallback (like it does already for the formatter and function), so these do not have to be set in the preset.onLoad() function. Seems more natural. And would it be possible/sensible to define default touch/pot callbacks

Noticed a bug in the documentation for graphics.setColor():

it takes a 3 byte RGB value, not a two byte RGB565 value.

1 Like

And am I correctly observing that you cannot override the way standard controls (like a toggle) are drawn by setting their setPaintCallback?

yes, that is correct. You can override, or rather define, the paint and touch callbacks for custom controls only. I didn’t want to ‘infect’ the standard controls with Lua overrides. If there is a demand for it it can be done in the future.