|
I rocked today.
I ported my TTF engine from C++ to C, and I'm about 80% of the way through integrating it into LVGL.
I even built a custom LVGL filesystem extension that allows you to treat a const array like a read only file, for reasons having to do with embedding assets into the firmware as headers.
I'm having trouble with the last mile, mostly because I'm unfamiliar with the machinations of LVGL.
Fortunately, the original author of LVGL, the big cheese, is helping me through this. He's at least as excited about my contribution as I am, so that's cool.
To err is human. Fortune favors the monsters.
|
|
|
|
|
The LVGL library looks great. Sounds like you're having alot of fun working on this.
|
|
|
|
|
I am. I did make my own graphics library, and it's still better that LVGL for certain things like color e-paper displays.
However, LVGL has a visual UI designer, UI widgets, and 300 contributors. And it's light and fast.
I can't really compete with that by myself.
If you can't beat 'em, join 'em, I guess.
TrueType is already supported on heavyweight MCUs via Freetype, with several caveats like (IIRC) requiring linux to compile your firmware, because the windows toolchain has a compiler that's too old, though that may have changed.
My engine is lighter. I'm hoping LVGL decides to fully integrate it into their core rather than keeping it as a separate entity, but I'm not sure the route they will take with it - a lot of the seemingly core functionality like basic filesystem support is provided by separate libraries.
To err is human. Fortune favors the monsters.
|
|
|
|
|
honey the codewitch wrote: TrueType is already supported on heavyweight MCUs via Freetype I saw that in the documentation but was afraid to ask.
honey the codewitch wrote: a lot of the seemingly core functionality like basic filesystem support is provided by separate libraries Yep, I saw a list here.
You should do a QR code reader next.
|
|
|
|
|
The issue with that QR code reader is due to the way the cameras work getting a bitmap out of one on something like an ESP32 isn't really realistic with a modern camera. There's not enough RAM. Even with the smaller cameras, they have a relatively high data throughput, and the device a relatively slow processor so doing image processing on top of that is pretty much a no go.
It's doable, on something like the right ARM Cortex, but not on most IoT gadgets I think.
Disclaimer: I might be wrong, because I've never actually tried it. There definitely is a possibility that there's some clever way to do it on say, an ESP32 WROVER that I'm not aware of, but I doubt you could do it on a regular ESP32 without the 4MBs or more of PSRAM.
I'm almost done with my initial attempt at integrating my library but waiting on some guidance from the LVGL author.
To err is human. Fortune favors the monsters.
|
|
|
|
|
Quote: I ported my TTF engine from C++ to C What about the metaprogramming stuff?
It was hard to port it?
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
My truetype engine doesn't need it, so I wasn't using it there.
The metaprogramming has to do with the drawing operations and the pixels/binary-format of a frame buffer or bitmap.
The drawing operations are composed using template specializations to choose the most efficient means of executing the operation based on the device capabilities and the specifics of the requested action.
The pixels are composed using carefully crafted compile time bitshifts and masks via templates, with a massive amount of metaprogramming for providing compile time metadata for pixels.
To err is human. Fortune favors the monsters.
|
|
|
|
|
It sounds like New York is frightened by inadequate supply (8)
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
|
You are up tomorrow!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Wordle 446 4/6
🟨⬛🟩🟩⬛
⬛🟩🟩🟩⬛
🟩🟩🟩🟩⬛
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 446 5/6
🟨⬜⬜⬜⬜
⬜⬜⬜🟨⬜
⬜🟨⬜⬜🟨
🟨⬜🟩🟨⬜
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 446 3/6
🟩⬛🟩⬛⬛
🟩⬛🟩🟩⬛
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 446 4/6
🟨⬜⬜🟩⬜
⬜🟩🟩🟩⬜
⬜🟩🟩🟩⬜
🟩🟩🟩🟩🟩
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Wordle 446 5/6
🟨🟨⬜⬜⬜
⬜⬜⬜⬜⬜
⬜⬜🟨⬜⬜
🟩🟩🟩🟩⬜
🟩🟩🟩🟩🟩
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Wordle 446 X/6
⬜⬜⬜⬜🟩
⬜🟨⬜🟨⬜
🟩🟨⬜⬜🟨
🟩🟩🟩⬜🟩
🟩🟩🟩⬜🟩
🟩🟩🟩⬜🟩
Nope
|
|
|
|
|
I know, those are annoying as elephant when they happen
"If we don't change direction, we'll end up where we're going"
|
|
|
|
|
Wordle 446 4/6
⬜🟨⬜⬜⬜
⬜⬜⬜🟩⬜
🟨⬜🟩🟨⬜
🟩🟩🟩🟩🟩
I did have a green that I misplaced
"If we don't change direction, we'll end up where we're going"
|
|
|
|
|
Wordle 446 4/6*
⬜⬜⬜🟩⬜
🟨⬜🟩🟩⬜
⬜🟩🟩🟩🟩
🟩🟩🟩🟩🟩
Happiness will never come to those who fail to appreciate what they already have. -Anon
|
|
|
|
|
Wordle 446 5/6
🟩⬜🟩⬜⬜
🟩🟩🟩🟩⬜
🟩🟩🟩🟩⬜
🟩🟩🟩🟩⬜
🟩🟩🟩🟩🟩
Nearly got it in two
Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
Easy one today!
Wordle 446 4/6
⬛⬛🟩⬛⬛
⬛🟩🟩⬛⬛
🟩🟩🟩⬛⬛
🟩🟩🟩🟩🟩
Get me coffee and no one gets hurt!
|
|
|
|
|
Wordle 446 6/6
⬜🟨⬜🟨⬜
🟨⬜⬜⬜🟨
🟨⬜🟩⬜⬜
⬜🟩🟩🟨⬜
🟩🟩🟩🟩⬜
🟩🟩🟩🟩🟩
not for me
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
Wordle 446 4/6*
🟨⬜⬜🟨⬜
⬜🟨⬜🟩⬜
🟩⬜🟩🟩⬜
🟩🟩🟩🟩🟩
|
|
|
|
|
#Worldle #229 3/6 (100%)
🟩🟩🟩⬜⬜➡️
🟩🟩🟩🟩⬜↙️
🟩🟩🟩🟩🟩🎉
https://worldle.teuteuf.fr
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
Yay!
#Worldle #230 1/6 (100%)
🟩🟩🟩🟩🟩🎉
https://worldle.teuteuf.fr
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|