Shop OBEX P1 Docs P2 Docs Learn Events
P2 HDMI Mouse — Parallax Forums

P2 HDMI Mouse

Is there an HDMI example, with graphical mouse display?

Comments

  • roglohrogloh Posts: 5,787
    edited 2021-02-03 13:44

    I know I've done exactly this in the past but don't see any demo source code in my old posts when I looked. I did find a binary demo in the link below but it was configured using VGA + USB mouse at the time, however outputting DVI/HDMI at VGA resolution would have worked out just the same if it had been enabled at build time.

    Some time ago I was working on a simple video + USB mouse GUI demo to include in the driver but not touched it in a while since lockdown so it's likely still in a very incomplete state. I know the garryj USB mouse driver needed a little bit of integration work to bundle into something simple to use with the mouse interface but he had a newer driver I needed to look at too.

    https://forums.parallax.com/discussion/comment/1505114/#Comment_1505114

  • Ah you set the mouse cursor in the bitmap.
    I would rather have that in the HDMI driver.
    There is still enough unused memory.

  • RaymanRayman Posts: 14,646

    That is certainly possible.
    My 1080p 2bpp tile driver contains a scanline builder that generates the scan lines, including mixing in the cursor, on the fly.

    The easy way would be to have another cog generate the scanlines and just point the HDMI driver to the scanline buffer instead of the pixel buffer.

Sign In or Register to comment.