after a bunch of searching, the answer seems to be:
"You can use the standard function atoi() to convert an integer to a string. (That function isn't big, unlike sprintf, which uses about 1.5k!) "
-------------------- here is the working code --------------
//example use of LCD4Bit library
//#include <stdlib.h> #include <LCD4Bit.h>
//create object to control an LCD.
LCD4Bit lcd = LCD4Bit(4);
int analogpin0 = 0; // slider variable connecetd to analog pin 0
int value1 = 0; // variable to read the value from the analog pin 0
char value2[4] ;
void setup() {
lcd.init();
}
void loop() {
// new stuff
value1 = analogRead(analogpin0); // reads the value 0-1023
delay(100); // this small pause is needed between reading two