Let's convert this #LVGL App from C to #ZigLang
https://github.com/lupyuen/zig-lvgl-nuttx#lvgl-test-app-in-c
Apache #NuttX RTOS compiles our #LVGL App with these GCC Options ... We'll pass the same options to #ZigLang Compiler
https://github.com/lupyuen/zig-lvgl-nuttx#lvgl-test-app-in-c
#ZigLang Compiler can Auto-Translate C programs into Zig ... Let's do it for our #LVGL App
https://github.com/lupyuen/zig-lvgl-nuttx#auto-translate-lvgl-app-to-zig
#ZigLang Compiler can't import C Structs containing Bit Fields (yet) ... So we handle these special structs in C instead of Zig
Null Pointers returned by C to #ZigLang ... Here's how we catch and stop them
https://github.com/lupyuen/zig-lvgl-nuttx#zig-checks-null-pointers
Our #ZigLang #LVGL App looks a little neater and safer ... After wrapping the LVGL API in Zig
https://github.com/lupyuen/zig-lvgl-nuttx#after-wrapping-lvgl-api
Can we Auto-Generate the #ZigLang Wrapper for #LVGL? Maybe 🤔
https://github.com/lupyuen/zig-lvgl-nuttx#auto-generate-zig-wrapper
#LVGL is Object-Oriented ... Designing an LVGL Wrapper in #ZigLang might be challenging 🤔
https://github.com/lupyuen/zig-lvgl-nuttx#object-oriented-wrapper-for-lvgl
How we catch Null Pointers returned by C to #ZigLang
https://lupyuen.github.io/articles/lvgl?4#zig-checks-null-pointers
Importing #LVGL Functions ... From C into #ZigLang
https://lupyuen.github.io/articles/lvgl?5#import-c-functions
Can we Auto-Generate the #ZigLang Wrapper for #LVGL? Zig Compiler's Type Info JSON might help
https://lupyuen.github.io/articles/lvgl?19#appendix-auto-generate-zig-wrapper
#LVGL is an Object-Oriented API ... Wrapping it with #ZigLang might get challenging
https://lupyuen.github.io/articles/lvgl?20#object-oriented-wrapper-for-lvgl
#ZigLang won't import C Structs with Bit Fields (yet) ... So we did a workaround for #LVGL
https://lupyuen.github.io/articles/lvgl?11#zig-vs-bit-fields
Opaque Types in #ZigLang ... How we discover them
https://lupyuen.github.io/articles/lvgl?16#appendix-zig-opaque-types
Main Function of our #LVGL App in #ZigLang
https://lupyuen.github.io/articles/lvgl?12#appendix-main-function
#ZigLang Compiler can Auto-Translate our #LVGL App from C to Zig ... Super helpful when coding our Zig App
https://lupyuen.github.io/articles/lvgl?15#appendix-auto-translate-lvgl-app-to-zig
Here's what we gained by coding #LVGL Apps in #ZigLang
https://lupyuen.github.io/articles/lvgl?21#zig-outcomes