load graphicsbuffer from sd card #1447
Unanswered
espruino-discuss
asked this question in
JavaScript
Replies: 1 comment
-
Posted at 2021-01-12 by @gfwilliams I think it might be because What about:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2021-01-12 by JumJum
I would like to load a binary image from sd directly to a graphicsbuffer.
The only way, it worked for me is this:
Using a temporary array and copy value by value in a loop looks strange to me.
And it takes a lot of CPU power to copy.
But all I tried to assign Uint8Array directly to graphics buffer, failed.
Failed in the way, that loaded image was not shown.
I'm pretty sure, there is a way to do better, but I don't find it.
Beta Was this translation helpful? Give feedback.
All reactions