16f628a denetleyici kullanıldı
4mhz iç osilatör kullanıldı
#include <16f628a.h>
#fuses intrc_io,nowdt,nomclr
#use delay (clock = 4m)
#define use_portb_lcd TRUE
#include<lcd.c>
int grafik[8]={
0B01110,
0B01000,
0B01000,
0B01110,
0B00010,
0B01110,
0B00000,
0B00000
};
int grafik1[8]={
0B00000,
0B01110,
0B00010,
0B00100,
0B01000,
0B01110,
0B00000,
0B00000
};
void main()
{
lcd_init();
lcd_set_cgram_char(0, grafik);
lcd_set_cgram_char(1, grafik1);
while(true)
{
printf(lcd_putc,"\f %c",0);
printf(lcd_putc," %c",1);
printf(lcd_putc,"\nsifirzero.com");
delay_ms(5000);
}
}
Hiç yorum yok:
Yorum Gönder
Her yorum bilgidir. Araştırmaya devam...