C caramelz New Member May 7, 2013 #1 hi everyone. I'm having problem with itoa. I need to change the value of the V while the "Voltage:" reminds on the LCD. Only the value need to be change. Code: char MESS3[]="Voltage:"; char VOLT; itoa(VOLT,MESS3); W_ctr_8bit(0x80); i=0; while(MESS3[i]) { W_data_8bit(MESS3[i]); i++; } W_ctr_8bit(0x8C); W_data_8bit('V'); W_ctr_8bit(0x88);
hi everyone. I'm having problem with itoa. I need to change the value of the V while the "Voltage:" reminds on the LCD. Only the value need to be change. Code: char MESS3[]="Voltage:"; char VOLT; itoa(VOLT,MESS3); W_ctr_8bit(0x80); i=0; while(MESS3[i]) { W_data_8bit(MESS3[i]); i++; } W_ctr_8bit(0x8C); W_data_8bit('V'); W_ctr_8bit(0x88);
be80be Well-Known Member May 8, 2013 #2 You have it close Code: void itoa(int input, char *buffer, int radix) Here a real good place to help you https://en.wikibooks.org/wiki/C_Programming/C_Reference/stdlib.h/itoa
You have it close Code: void itoa(int input, char *buffer, int radix) Here a real good place to help you https://en.wikibooks.org/wiki/C_Programming/C_Reference/stdlib.h/itoa