2015-11-07 04:07:14 +08:00
|
|
|
#include "u8x8.h"
|
|
|
|
|
|
|
|
u8x8_t u8g2;
|
|
|
|
|
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
|
|
|
u8x8_Setup_SDL_128x64(&u8g2);
|
2015-12-07 06:22:52 +08:00
|
|
|
u8x8_InitDisplay(&u8g2);
|
2015-11-07 04:07:14 +08:00
|
|
|
|
2016-04-16 18:45:00 +08:00
|
|
|
u8x8_SetFont(&u8g2, u8x8_font_amstrad_cpc_extended_f);
|
2015-11-07 04:07:14 +08:00
|
|
|
|
2015-11-28 05:40:31 +08:00
|
|
|
u8x8_DrawString(&u8g2, 0, 0, "Hello World!");
|
2015-11-25 05:21:17 +08:00
|
|
|
|
2015-11-07 04:07:14 +08:00
|
|
|
while( u8g_sdl_get_key() < 0 )
|
|
|
|
;
|
2015-11-25 05:21:17 +08:00
|
|
|
|
2015-11-07 04:07:14 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|