Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2014
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. char watchstring[16];
  2. char watchbuffer[3];
  3.  
  4. memset(watchstring, 0, 16); //empty array
  5. strcat(watchstring,"selected:"); //copy string-text to watchstring
  6. utoa(menu_current,watchbuffer,10); //convert integer to decimal(10) string and put it in buffer
  7. strcat(watchstring, watchbuffer);
  8. u8g_DrawStr(&LCD, 0, 80, watchstring); //ouput looks like this: selected:15
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement