Graphics how to set callbacks to C- functions #1636
Replies: 2 comments
-
Posted at 2023-03-21 by @gfwilliams Yes, If you're thinking of doing your own build then you could look at what Bangle.js does as that uses |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-03-29 by JumJum Hmm, I tried to figure out, how to use graphicsInternal, ..... Next try was to add JSGRAPHICSTYPE_OTHERS in JsGraphicsType (graphics.h) My actual solution for my problem is to add a weak function for JSGRAPHICSTYPE_OTHERS, which can be overroled in my driver. My driver for ILI9341 now is much faster compared to JS-solution. See following sources. graphics.h:
graphics.c:
Last not least in myOwnDriver.c:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2023-03-21 by JumJum
Looks like on each call of graphicsGetFromVar, graphicsSetCallbacks is called.
So its called very often.
My expectation was to set callbacks (fillRect, setPixel) only once during initialisation.
This would add an option to write my own drivers in C, which only set fillRect and setPixel.
Beta Was this translation helpful? Give feedback.
All reactions