rpi4-osdev/part5-framebuffer/kernel.c

24 lines
391 B
C
Raw Permalink Normal View History

#include "io.h"
#include "fb.h"
void main()
{
uart_init();
fb_init();
drawRect(150,150,400,400,0x03,0);
2020-07-15 16:38:50 +00:00
drawRect(300,300,350,350,0x2e,1);
drawCircle(960,540,250,0x0e,0);
2020-07-15 16:38:50 +00:00
drawCircle(960,540,50,0x13,1);
drawPixel(250,250,0x0e);
drawChar('O',500,500,0x05);
drawString(100,100,"Hello world!",0x0f);
drawLine(100,500,350,700,0x0c);
while (1);
}