Professional Documents
Culture Documents
NIM : 2201141018
CODINGNYA:
#include <mega16.h>
#include <delay.h>
#include <stdio.h>
lcd_init(16);
lcd_clear();
lcd_gotoxy(0,0);
lcd_puts("1=Nama1");
lcd_gotoxy(8,0);
lcd_puts("2=Nama2");
lcd_gotoxy(8,1);
while (1)
PORTC=0b11111111;
if (PINC.0==0)
lcd_clear();
lcd_gotoxy(0,0);
lcd_puts("ARIA RACHMAT");
lcd_gotoxy(0,1);
lcd_puts("2201141018");
}
else if (PINC.1==0)
lcd_clear();
lcd_gotoxy(0,0);
lcd_puts("M.FAISAL FARUQI");
lcd_gotoxy(0,1);
lcd_puts("2201141004");