7 int LcdBase::printf(const std::string format
, ...){
10 va_start(args
, format
);
11 int size
= format
.size() * 2;
12 char* buffer
= new char[size
];
13 while (vsprintf(buffer
, format
.c_str(), args
) < 0){
16 buffer
= new char[size
];
18 string message
= std::string(buffer
);
20 for(unsigned int i
=0; i
< message
.size(); i
++){
21 this->write(message
.at(i
));