u8g2-copy/sys/utf8/draw_utf8_line_picture_loop/main.c

32 lines
433 B
C
Raw Normal View History

2016-06-02 01:27:05 +08:00
#include "u8g2.h"
#include <stdio.h>
u8g2_t u8g2;
int main(void)
{
u8g2_SetupBuffer_Utf8(&u8g2, U8G2_R0);
u8g2_InitDisplay(&u8g2);
u8g2_SetPowerSave(&u8g2, 0);
u8g2_SetFont(&u8g2, u8g2_font_6x13_tf);
u8g2_SetFontDirection(&u8g2, 0);
u8g2_FirstPage(&u8g2);
do
{
2016-06-03 05:14:18 +08:00
u8g2_DrawUTF8Line(&u8g2, 5, 15, 10, "Agile", 1,0);
2016-06-02 01:27:05 +08:00
} while( u8g2_NextPage(&u8g2) );
utf8_show();
return 0;
}