Example #1
0
void setup(void) {
#if 0
    Serial.begin(9600);
    pinMode(13, OUTPUT);
    digitalWrite(13, HIGH);
#endif
    u8g_prepare();
    u8g_SetUtf8Fonts (g_fontinfo, NUM_ARRAY(g_fontinfo));
}
Example #2
0
void draw(void) {
    u8g_prepare();
    switch(draw_state >> 3) {
    case 0:
        u8g_box_frame(draw_state&7);
        break;
    case 1:
        u8g_string(draw_state&7);
        break;
    case 2:
        u8g_line(draw_state&7);
        break;
    case 3:
        u8g_ascii_1();
        break;
    case 4:
        u8g_ascii_2();
        break;
    }
}
Example #3
0
void draw(void) {
  u8g_prepare();
  u8g_chinese();
}