Fork of Smoothie to port to mbed non-LPC targets.
Fork of Smoothie by
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 }
Generated on Tue Jul 12 2022 20:09:02 by 1.7.2