From 3ed2bba23bc8de2d6df6e4b2742107841d5ddfad Mon Sep 17 00:00:00 2001 From: olikraus Date: Sun, 21 Jan 2018 18:24:00 +0100 Subject: [PATCH] 1x2 --- sys/tga/ref_man_pics_8x8/main.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/sys/tga/ref_man_pics_8x8/main.c b/sys/tga/ref_man_pics_8x8/main.c index 2b05f3da..9388bf44 100644 --- a/sys/tga/ref_man_pics_8x8/main.c +++ b/sys/tga/ref_man_pics_8x8/main.c @@ -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; }