Replies: 2 comments 3 replies
-
|
Good job! I will definitely try your library when the occasion arises. AI, especially agentic AI, is a powerful tool. In the right hands, they can produce wonders. What should we call our field now? Idea engineering? Idea science? I just hope it won't take away my joy of programming. |
Beta Was this translation helpful? Give feedback.
-
|
Impressive! To fully replace the C module there should be A simpler, cross-platform approach to handling unsupported modes is with on-the-fly mapping. Here the framebuffer contents are mapped prior to being transferred to the display. This has been used to support hardware that requires RGB666, e.g. the ILI9488 chip. There is an inevitable speed penalty, but using Viper this can be kept acceptably small. This type of on-the-fly mapping can also enable a 4-bit framebuf to support a limited set of 16-bit colors via a LUT. This saves RAM at some cost in speed. See nano-gui for examples of this technique. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I thought the
framebufmodule could be translated into "pure-python" using the micropython optimizations@viperand@asm_thumbfor ARM (Ok - asm_thumb is no more that "python-style" ;) )The advantage would be that it could be easily extended. For example, if a separate color format is needed - without recompilation.
But how fast could that be, compared to C-code?
I let Claude do some work and put the results in my repo. It's been a bit of a rollercoaster to do that, but over all I'm pretty surprised how Claude was able to do it. I've put some details about this process in the repo.
It's still early days, I did not test this yet in a real project. Still, it gives a clue how fast it could be. TLDR; in some cases it's faster, in most cases 2-3 times slower.
I'm considering to use this as a base for my own implementation of RGB888 color modes etc. I thought maybe somebody else is interested in similar things, that's why I posted it here.
Beta Was this translation helpful? Give feedback.
All reactions