Access to the frame buffer?

Home Forums Forums General discussion Access to the frame buffer?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2644
    gtoal
    Participant

    I want to use the screen as a display for a hand-held game. My program will completely control what is displayed - I don't want to configure the screen as a console or x windows, and I certainly don't want the user to see Linux booting up!

    In fact I'll expect the original HDMI display to continue to work as normal, it just won't be physically connected except during development.

    What do I have to do to enable the pi screen but *not* as a console, and how do I write to the screen/frame buffer from C code?

    thanks,

    Graham
    (I'll come back and ask about x/y input once I've got the screen going... one step at a time...)

    #2688
    Mark Williams
    Keymaster

    I wrote a guide on that very thing, access input events on the touchscreen and drawing directory to the framebuffer. There is also sample code;

    https://ozzmaker.com/2013/09/07/programming-a-touchscreen-on-the-raspberry-pi/

    Mark --OzzMaker.com --

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Blip, blop, bloop...