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
  Difficulty with openSUSE Tumbleweed Install PinePhone Beta danm1988 0 176 11-17-2025, 07:49 AM
Last Post: danm1988
  How-To: Remote Control Your Phone from Desktop via VNC biketool 16 7,303 10-16-2025, 06:55 AM
Last Post: biketool
  Movuan distribution for PinePhone merom 5 4,844 07-27-2025, 05:01 PM
Last Post: merom
  baremetal via Zig on PinePhone - JumpDrive help please WhiteHexagon 1 3,155 07-07-2025, 10:33 AM
Last Post: WhiteHexagon
  Jami on the Pine phone ? bcnaz 8 12,135 06-09-2025, 04:17 PM
Last Post: j_s
  Latest firmware for PinePhone modem! Subsentient 105 203,070 02-02-2025, 08:47 PM
Last Post: bacydentir85
  Slarm64 on PinePhone [Unofficial Slackware ARM - 64 bit] acid andy 40 55,244 12-28-2024, 12:19 AM
Last Post: mara
  Office applications for the Pinephone Peter Gamma 2 4,376 09-05-2024, 09:22 AM
Last Post: Peter Gamma
  Struggle to install LibreOffice on the PinePhone Peter Gamma 50 59,928 07-26-2024, 10:35 PM
Last Post: Peter Gamma
  Why does Pine64 sabotage office on the Pinephone? Peter Gamma 5 5,713 07-04-2024, 07:34 AM
Last Post: Kevin Kofler

Forum Jump:


Users browsing this thread: 2 Guest(s)