![]() |
Article: NuttX RTOS for PinePhone: Feature Phone UI in LVGL, Zig and WebAssembly - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120) +--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121) +--- Thread: Article: NuttX RTOS for PinePhone: Feature Phone UI in LVGL, Zig and WebAssembly (/showthread.php?tid=18353) |
RE: Article: NuttX RTOS for PinePhone: Feature Phone UI in LVGL, Zig and WebAssembly - WhiteHexagon - 07-06-2023 Hi @lupyuen yes I can picture you teaching this topic, just by the quality and fun approach of your articles ![]() ![]() Code: pub const CTRL_REG = packed struct(u32) { Code: pub const Reg32 = struct { RE: Article: NuttX RTOS for PinePhone: Feature Phone UI in LVGL, Zig and WebAssembly - tllim - 07-06-2023 (07-06-2023, 01:26 AM)lupyuen Wrote: BTW We might have a chance to teach this in school! I'm chatting (remotely) with a High School Teacher, we're trying to figure out how PinePhone might work for Education. Awesome, for sure I will support this education project ![]() Article: NuttX RTOS for PinePhone: Feature Phone UI in LVGL, Zig and WebAssembly - lupyuen - 07-07-2023 Thanks @tllim and @WhiteHexagon, I'll keep you updated :-) RE: Article: NuttX RTOS for PinePhone: Feature Phone UI in LVGL, Zig and WebAssembly - WhiteHexagon - 07-08-2023 @lupyuen So today I started looking at connecting the volume buttons to some chip feature.. So I am going through 200+ audio registers and already found around 9 that mention Volume ![]() ![]() RE: Article: NuttX RTOS for PinePhone: Feature Phone UI in LVGL, Zig and WebAssembly - WhiteHexagon - 07-08-2023 PS and the chapter on I2S/PCM looks like a perfect starting point for actual audio stuff, thanks again! RE: Article: NuttX RTOS for PinePhone: Feature Phone UI in LVGL, Zig and WebAssembly - WhiteHexagon - 07-11-2023 @lupyuen So I am making slow but steady progress with the Audio stuff (page 625 / 7.6.5. A64 user manual). I had a slight detour to improve the Zig Register concept, which allows me to generate quite readable code I think, eg. Code: var pllCtrl = ccu.PLL_AUDIO_CTRL.peek(); I have most of the five step process in place (around 11 registers to configure), although some are a little vague, and I spotted some typos in the document. But the challenge sounds like Step 3 (section: 7.6.5.2). Here it all gets very vague, referring to I2C and I2S configuration, external documents, and not much actual info on what is required. Have you come across extra documentation in this area at all please? RE: Article: NuttX RTOS for PinePhone: Feature Phone UI in LVGL, Zig and WebAssembly - lupyuen - 07-11-2023 (07-11-2023, 03:55 AM)WhiteHexagon Wrote: Here it all gets very vague, referring to I2C and I2S configuration, external documents, and not much actual info on what is required. Have you come across extra documentation in this area at all please? Hmmm sorry, I think we might need to hunt for the Linux Drivers and understand the code. The PinePhone Device Tree might tell us where to find the Linux Driver: https://lupyuen.codeberg.page/articles/pio.html#appendix-pinephone-device-tree RE: Article: NuttX RTOS for PinePhone: Feature Phone UI in LVGL, Zig and WebAssembly - WhiteHexagon - 07-12-2023 OK Thanks. I started down that path yesterday, but got lost in the woods ![]() ![]() ![]() ![]() I also thought about looking into using the mali OpenVG to accelerate the LVGL, but again the 'user manual' gives next to no information. Online I got as far as there is a patched version of a mesa library somewhere around that probably got dropped by linux,... and then there is 'Lima'? open source replacement, but no mention of openVG. Maybe I should stick with buttons and track down the Power button next ![]() RE: Article: NuttX RTOS for PinePhone: Feature Phone UI in LVGL, Zig and WebAssembly - lupyuen - 07-13-2023 (07-12-2023, 02:42 AM)WhiteHexagon Wrote: Curious to know if everyone that comes along solves all these basic problems again? Haha yeah the docs are all over the place. If I understand correctly, Allwinner contributed a huge chunk of Linux Code at the beginning, but they probably weren't well-documented. That's why I chose to re-document everything that I touched :-) RE: Article: NuttX RTOS for PinePhone: Feature Phone UI in LVGL, Zig and WebAssembly - WhiteHexagon - 07-16-2023 ok it seems like hardware OpenVG acceleration is going to involve the binary blob mali driver ![]() So I turned my attention to something 'simple' again ![]() btw I saw you got a nice deployment option setup to save SDCard switching for your RISC-V work, very nice! Any chance something similar would work for the PP. I am very gentle swapping the SDCard, but it feels like a risk in the long term. I even though about trying to get an old A64? board to experiment with, but then I would not have the same volume buttons and LEDs to challenge me ![]() [Edit 1] Silly me, I had the LED registers copied as per doc, instead of my packed struct with MSB at the bottom hehe. LEDs working ![]() [Edit 2] And the gating was not required. |