Skip to content

Instantly share code, notes, and snippets.

@komponenrobot
Created May 19, 2019 18:14
Show Gist options
  • Save komponenrobot/a1780e625a2407b8eb6cf56534b7a664 to your computer and use it in GitHub Desktop.
Save komponenrobot/a1780e625a2407b8eb6cf56534b7a664 to your computer and use it in GitHub Desktop.
int dataInteger=10;
char buff[33];
// untuk menghapus semua tampilan
lcd_clear();
// untuk memilih koordinat awal tulisan
lcd_gotoxy(0,0);
// untuk menampilkan string
lcd_puts("Robotik ID");
// untuk memilih koordinat awal tulisan
lcd_gotoxy(0,1);
// untuk menampilkan karakter
lcd_putchar('R');
// untuk menampung data integer ke string
sprintf(buff,"%d",dataInteger);
lcd_gotoxy(5,1);
lcd_puts(buff);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment