Article: NuttX RTOS for PinePhone: Feature Phone UI in LVGL, Zig and WebAssembly
#49
Hi @lupyuen , congratulations on the milestone! You raced through that one Smile  In the meantime I only just finished testing my 'tcon' and 'de' implementations in Zig.  Last 'gotcha' was SRAM_CTRL_REG1 having a default value, meaning undocumented, that needed to be zeroed.  I find all these undocumented hacks really unsettling.  For example on the tcon side I removed the delay after PLL_VIDEO0 and instead looped waiting for the LOCK bit, no idea if that is valid, but seems to work and removes one mystery delay() call (which anyway I could not work out how to implement in Zig), but it would be nice to have confirmation on all these small tweaks that seem to be needed.  I guess all the developers moved onto new shinny PineTab toys Wink  Although it seems to have gone very quiet regarding blog news etc, 4 months? did I miss some other news regarding the community?  Anyway I think I continue a while longer, since this is good for exercising my Zig skills.

So what is next for you? the educational plans? or LVGL on star64? Smile


Code:
    //step 1 - configure PLL
    var pll = ccu.PLL_VIDEO0_CTRL_REG.peek();
    pll.PLL_ENABLE = true;
    ccu.PLL_VIDEO0_CTRL_REG.poke(pll);
    //wait PLL stable
    while (ccu.PLL_VIDEO0_CTRL_REG.peek().LOCK == false) {
        lockWaitCntr += 1;
        if (lockWaitCntr > 10000) {
            debug.red(true);
            return;
        }
    }
  Reply


Messages In This Thread
RE: Article: NuttX RTOS for PinePhone: Feature Phone UI in LVGL, Zig and WebAssembly - by WhiteHexagon - 08-11-2023, 10:36 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Movuan distribution for PinePhone merom 4 710 04-07-2025, 12:32 AM
Last Post: tllim
  How-To: Remote Control Your Phone from Desktop via VNC biketool 6 1,783 03-05-2025, 06:18 AM
Last Post: Kevin Kofler
  Latest firmware for PinePhone modem! Subsentient 105 168,960 02-02-2025, 08:47 PM
Last Post: bacydentir85
  Slarm64 on PinePhone [Unofficial Slackware ARM - 64 bit] acid andy 40 40,791 12-28-2024, 12:19 AM
Last Post: mara
  Office applications for the Pinephone Peter Gamma 2 1,214 09-05-2024, 09:22 AM
Last Post: Peter Gamma
  Struggle to install LibreOffice on the PinePhone Peter Gamma 50 44,150 07-26-2024, 10:35 PM
Last Post: Peter Gamma
  Why does Pine64 sabotage office on the Pinephone? Peter Gamma 5 2,158 07-04-2024, 07:34 AM
Last Post: Kevin Kofler
  Which word processor to choose for the Pinephone? Peter Gamma 16 8,488 06-22-2024, 07:28 AM
Last Post: Peter Gamma
  Samba share on the Pinephone? Peter Gamma 0 1,017 06-16-2024, 10:26 PM
Last Post: Peter Gamma
  Possible Free Backup Carrier for PinePhone PineFone 0 944 06-13-2024, 03:45 PM
Last Post: PineFone

Forum Jump:


Users browsing this thread: 2 Guest(s)