1 頁 (共 1 頁)

spfintf 應用

發表於 : 2012-10-23 21:37:01
yehlu
http://liudr.wordpress.com/2012/01/16/sprintf/

代碼: 選擇全部

    char buffer[9];
    sprintf(buffer, "%02d:%02d:%02d", now.hour(), now.minute(), now.second()); 
    lcd.print(buffer);