Writing to /dev/fb0

Sergey Manucharian sm at ara-ler.com
Fri Jun 21 19:34:30 UTC 2019


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).

Ϟϻ



More information about the freebsd-arm mailing list