一个TFT的库文件 函数
inline size_t TFTLCD::write(uint8_t c) {
if (c == '\n') {
cursor_y += textsize*8;
cursor_x = 0;
} else if (c == '\r') {
// skip em
} else {
drawChar(cursor_x, cursor_y, c, textcolor, textsize);
cursor_x += textsize*6;
}
return 1;
}//写
怎么在程序里面调用
tft.write("000"); 这样不行 是要提前定义变量吗 |