spfintf 應用
發表於 : 2012-10-23 21:37:01
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);