2016-06-05 16:11:37 +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_mf);
|
|
|
|
u8g2_SetFont(&u8g2, u8g2_font_5x7_mf);
|
|
|
|
u8g2_SetFontDirection(&u8g2, 0);
|
2016-06-06 16:04:51 +08:00
|
|
|
|
2016-06-07 10:44:34 +08:00
|
|
|
u8g2_UserInterfaceSelectionList(&u8g2, "Title", 0, "abc\ndef\nghi\njkl");
|
2016-06-06 16:04:51 +08:00
|
|
|
|
2016-06-05 16:11:37 +08:00
|
|
|
utf8_show();
|
2016-06-06 16:04:51 +08:00
|
|
|
|
2016-06-05 16:11:37 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|