5.IMU/Gyroscope/code/gyroscope/Gyroscope/lcd.h
/*
 *	lcdprintf() - A printf for the LCD by Joel M. Pinto
 *	Note: 1. \n for newline won't work. Use lcd_cursor to go to a specific position.
 *		  2. Take care about the LCD width. A string too long may go out of the display;
 *			 even longer strings may get displayed at the next line!
 */
A printf for the LCD by Joel M. Pinto
Note: 1. \n for newline won't work. Use lcd_cursor to go to a specific position.
2. Take care about the LCD width. A string too long may go out of the display;
even longer strings may get displayed at the next line!
A printf for the LCD by Joel M . Pinto Note : 1 . \ n for newline won ' t work . Use lcd_cursor to go to a specific position . 2 . Take care about the LCD width . A string too long may go out of the display ; even longer strings may get displayed at the next line!
int lcdprintf(const char *fmt, ...)
{
	va_list args;
	int count;
	char buf[33] = "";
	va_start(args, fmt);
	count = vsprintf(buf, fmt, args);
	lcd_string(buf);
	va_end(args);
	return count;
}
int lcdprintf ( const char * fmt , ... ) { va_list args ; int count ; char buf [ 33 ] = " " ; va_start ( args , fmt ) ; count = vsprintf ( buf , fmt , args ) ; lcd_string ( buf ) ; va_end ( args ) ; return count ; }
lcdprintf() - A printf for the LCD by Joel M. Pinto
      Note: 1.
lcdprintf () - A printf for the LCD by Joel M . Pinto Note : 1 .