Lcd Kayan yazı birleşme ccs compiler
#include<16f877a.h>
#include<string.h>
#fuses xt,nowdt,noprotect,
#use delay(clock=4m)
#define use_portb_lcd true
#include<lcd.c>
void main()
{
lcd_init();
int u,l=0,j=0;
char ad[30],yedek[30];
for(u=0;u<30;u++)
{
ad[u]=" ";
yedek[u]=" ";
}
char z, isim[30]= "sifirzero.com";
lcd_send_byte(0,0x01);
printf(lcd_putc,"\f");
while(true)
{
for(int i=0;i<30;i++)
{
for(int j=30;j>=0;j--)
{
z=ad[j];
ad[j] = isim[i];
printf(lcd_putc,"\f%s",ad);
delay_ms(100);
if(i != j)
{
ad[j] = z;
}
if(i==j)
{
goto y;
}
}
y:
delay_ms(100);
}
printf(lcd_putc,"\f");
for(l=0;l<15;l++)
{
ad[l]=" ";
}
}
}
Hiç yorum yok:
Yorum Gönder
Her yorum bilgidir. Araştırmaya devam...