Closed SpenceKonde closed 1 year ago
This is one of the functions waiting for good documentation,
It is used as an implementation of a combining function, intercepting the graphical data being sent to the device, and able to alter the data.
It came about by my desire to display a large number 'behind' a graph, e.g. current temperature or current voltage behind a graph of the recent temperatures or voltages. To combine multiple data, I added setCombineFunction so I could specify a function that manipulated the data. I found that to be useful to me, the callback function needed to be passed the x and y coordinates of the data being sent. The combination of a graph and large number is generated by writing the text of the number, with a callback function that adds in the graph pixels (and adds padding).
Then, to save space, I altered the code that can invert the data being sent (using the invertOutput method), to be an implementation of that technique, hence the unusual signature.
These are very concerning to me - how could this method possibly work if the parameters aren't being used?!