#include <16f877A.h>
#fuses HS
#use delay(clock=8000000)
#use fast_io(a)
#use fast_io(d)
#include <lcd.c>
#define anahtar pin_a0
#define anahtar1 pin_a1
#define anahtar2 pin_a2
#define anahtar3 pin_a3
int i=0;
void main()
{
set_tris_a(0b00001111);
set_tris_d(0b00000000);
output_d(0x00);
lcd_init();
while(1)
{
if(input(anahtar)==1)
{
printf(lcd_putc,"\f CD PLAYER ");
delay_ms(250);
}
if(input(anahtar1)==1)
{
printf(lcd_putc,"\f AUX ");
delay_ms(250);
}
if(input(anahtar2)==1)
{
printf(lcd_putc,"\f TAPE PLAYER");
delay_ms(250);
}
if(input(anahtar3)==1)
{
printf(lcd_putc,"\f PHONE ");
delay_ms(250);
}
}
}