blob: 7326b4f7dbe973abccc76278422add2ef099d416 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <knightos/display.h>
#include <knightos/system.h>
/* Warning! C support in KnightOS is highly experimental. Your mileage may vary. */
void main() {
SCREEN *screen;
get_lcd_lock();
screen = screen_allocate();
screen_clear(screen);
draw_string(screen, 0, 0, "Hello world!");
screen_draw(screen);
while (1);
}
|