So if we register the #LVGL #RustLang Functions with #Rhai... We can run Rhai Scripts in-browser with #WebAssembly... To build #PineTime Watch Faces interactively? 🤔
Mapping our #RustLang Learning Journey ... For creating #PineTime Watch Faces @PINE64
https://lupyuen.github.io/pinetime-rust-mynewt/articles/handdrawn
Embed a Bitmap the easy breezy #RustLang way into our egg... err... #PineTime Watch Face @PINE64
https://lupyuen.github.io/pinetime-rust-mynewt/articles/handdrawn
Anatomy of a #RustLang Method ... And why they are always Ok on #PineTime Watch Faces @PINE64
https://lupyuen.github.io/pinetime-rust-mynewt/articles/handdrawn
Calling C from #RustLang in #PineTime Watch Faces @PINE64 ... It's perfectly OK!
https://lupyuen.github.io/pinetime-rust-mynewt/articles/handdrawn
Render Images in #RustLang Watch Faces ... For #PineTime Smart Watch @PINE64
https://lupyuen.github.io/pinetime-rust-mynewt/articles/handdrawn
#RustLang Bitmaps in #PineTime Watch Faces @PINE64
https://lupyuen.github.io/pinetime-rust-mynewt/articles/handdrawn
Computing #PineTime Watch Faces in #RustLang
https://lupyuen.github.io/pinetime-rust-mynewt/articles/handdrawn
3 hardest lines of #RustLang code... For our #PineTime Watch Face @PINE64
https://lupyuen.github.io/pinetime-rust-mynewt/articles/handdrawn
#Embedded #Programming has come a long way since the Arduino days ... Let's learn it the new way with #RustLang, #WebAssembly and #PineTime Smart Watch @PINE64 !
https://lupyuen.github.io/pinetime-rust-mynewt/articles/handdrawn
Funny that #WebAssembly and #Embedded #RustLang work so well together ... I'll explain with #PineTime Watch Faces
No more #RustLang "unsafe" code for #PineTime Hand-Drawn Watch Face yay!
https://github.com/lupyuen/handdrawn-watchface/blob/master/src/lib.rs#L45
#Emscripten and #PineTime #WebAssembly Simulator builds OK on plain old Windows CMD ... Yep I'm surprised
https://github.com/AppKaki/lvgl-wasm/blob/mynewt/README.md#install-emscripten-on-windows-without-wsl
How to install #Emscripten on #macOS to build #WebAssembly Simulator for #PineTime
https://github.com/AppKaki/lvgl-wasm/blob/mynewt/README.md#install-emscripten-on-macos
@PINE64 #Embedded Memory Concerns: The 10 digit bitmaps take up 160 KB of ROM ... To fit this into #PineTime's 512 KB Flash ROM, we need to throw out the large font (keeping the small font) ... Welcome to The Real World 🙂
https://github.com/lupyuen/handdrawn-watchface/blob/master/README.md
@PINE64 Now you can create your own Hand-Drawn #PineTime Watch Face in #RustLang! Check out crates.io: https://crates.io/crates/handdrawn-watchface
@PINE64 Finally a #RustLang Hand-Drawn Watch Face that runs on #PineTime! Works in your web browser too: https://lupyuen.github.io/handdrawn-watchface/lvgl.html
@PINE64 Update our #RustLang Watch Face with the Current Time on #PineTime
https://github.com/lupyuen/handdrawn-watchface/blob/master/src/lib.rs#L155-L198
@PINE64 #WebAssembly Simulator for our #RustLang #PineTime Watch Face gets built automagically by #GitHubActions
IoT Techie and Educator / Apache NuttX PMC