This commit is contained in:
olikraus 2018-01-21 18:24:00 +01:00
parent b2d84613a8
commit 3ed2bba23b
1 changed files with 21 additions and 0 deletions

View File

@ -208,6 +208,27 @@ int main(void)
tga_is_transparent = 0;
tga_save_png("u8x8_2x2.png");
u8x8_ClearDisplay(u8g2_GetU8x8(&desc));
u8x8_ClearDisplay(&u8x8);
u8x8_SetPowerSave(&u8x8, 0);
u8x8_SetInverseFont(&u8x8, 0);
//u8x8_SetFont(&u8x8, u8x8_font_pressstart2p_f);
u8x8_SetFont(&u8x8, u8x8_font_amstrad_cpc_extended_f);
u8x8_DrawString(&u8x8, 1, 1, "Hello World");
u8x8_Draw1x2String(&u8x8, 1, 3, "Hello World");
tga_is_transparent = 1;
u8g2_FirstPage(&desc);
do
{
u8g2_SetFont(&desc, u8g2_font_helvB18_tf);
ra(1,1, "x=1, y=1");
ra(1,3, "x=1, y=3");
} while( u8g2_NextPage(&desc) );
tga_is_transparent = 0;
tga_save_png("u8x8_1x2.png");
return 0;
}