Writing to /dev/fb0

Vijay Kumar Banerjee vijaykumar9597 at gmail.com
Sat Jun 22 06:16:25 UTC 2019


On Sat, Jun 22, 2019 at 1:04 AM Sergey Manucharian <sm at ara-ler.com> wrote:

> Excerpts from Oleksandr Tymoshenko's message from Fri 21-Jun-19 12:05:
> > You probably can convert this source file from my tslib branch to
> > standalone app:
> >
> > https://github.com/gonzoua/tslib/blob/freebsd/tests/fbutils-bsd.c
> >
> > --
>
> Thanks, gonzo!
>
> That's really simple!
>
> I added "main" and it draws a red rectangle!
>
> int main (int argc, char** argv)
> {
>
>         open_framebuffer();
>         setcolor (4, 0xff0000);
>         rect(100, 200, 200, 300, 4);
>         close_framebuffer();
> }
>
> Vijay,
>
> Before compiling remove references to font related stuff like
> "put_char" and "put_string" since they need linking with a font
> processing library (not libfreetype).
>
> Thanks Oleksandr and Sergey!
This looks like exactly what I was searching for!

> Ϟϻ
>
>


More information about the freebsd-arm mailing list