tomko 发表于 2019-12-14 14:46:59

OLED清除指定位置的显示内容

OLED怎样清除指定位置的显示内容?

void NH(){
    u8g2.setFont(u8g2_font_wqy12_t_chinese1);// use chinese2 for all the glyphs of "我是单片机菜鸟"
    u8g2.setFontDirection(0);
    u8g2.setCursor(0, 30);
    u8g2.print("你好");
    u8g2.sendBuffer();
}

要怎样清除“你好”,因为没有清除在这个位置打影别的会有残影,如果用清屏或clearBuffer()又会将别的显示内容清除了。

47okey 发表于 2019-12-15 12:00:58

u8g2.print("    ");
页: [1]
查看完整版本: OLED清除指定位置的显示内容