rpi4-osdev/part5-framebuffer/kernel.c
2020-07-15 17:38:50 +01:00

23 lines
391 B
C

#include "io.h"
#include "fb.h"
void main()
{
uart_init();
fb_init();
drawRect(150,150,400,400,0x03,0);
drawRect(300,300,350,350,0x2e,1);
drawCircle(960,540,250,0x0e,0);
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);
}