Fork of Smoothie to port to mbed non-LPC targets.

Dependencies:   mbed

Fork of Smoothie by Stéphane Cachat

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers LcdBase.cpp Source File

LcdBase.cpp

00001 #include "LcdBase.h"
00002 
00003 #include "stdarg.h"
00004 #include "stdio.h"
00005 
00006 LcdBase::LcdBase() {}
00007 LcdBase::~LcdBase() {}
00008 
00009 int LcdBase::printf(const char* format, ...){
00010     va_list args;
00011     va_start(args, format);
00012     char buffer[80]; // max length for display anyway
00013     int n= vsnprintf(buffer, sizeof(buffer), format, args);
00014     va_end(args);
00015     this->write(buffer, n);
00016     return 0;
00017 }