Created
May 19, 2019 18:14
-
-
Save komponenrobot/a1780e625a2407b8eb6cf56534b7a664 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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