aboutsummaryrefslogtreecommitdiffstats
path: root/demos/drawing/main.c
blob: 0b77f43e06570d8a258e9231b657bf030c6ebdf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "ch.h"
#include "hal.h"
#include "glcd.h"

int main(void) {
	halInit();
	chSysInit();
	
	lcdInit();
	lcdClear(Black);
	lcdDrawString(100, 100, "Hello World", White, Black);
	lcdDrawCircle(150, 150, 10, filled, Green);
	lcdDrawLine(0, 0, lcdGetWidth(), lcdGetHeight(), Yellow);

	while (TRUE) {
		
		chThdSleepMilliseconds(200);	
	}

	return 0;
}