Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char watchstring[16];
- char watchbuffer[3];
- memset(watchstring, 0, 16); //empty array
- strcat(watchstring,"selected:"); //copy string-text to watchstring
- utoa(menu_current,watchbuffer,10); //convert integer to decimal(10) string and put it in buffer
- strcat(watchstring, watchbuffer);
- u8g_DrawStr(&LCD, 0, 80, watchstring); //ouput looks like this: selected:15
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement