Projet

Général

Profil

« Précédent | Suivant » 

Révision 479

Ajouté par ahkurklu il y a presque 4 ans

implémentation fonction str

Voir les différences:

Sp4b2.c
void main(void){
pd3 = 0xff;
lcd_init();
lcd_char('A');
lcd_str("2003!");
}
void lcd_4b(unsigned char car){
......
}
void lcd_str(unsigned char * str){
char tmp;
int i=0;
tmp = str[0];
while(tmp != '\0'){
lcd_char(tmp);
i=i+1;
tmp = str[i];
}
}
......
lcd_4b(0x20);
lcd_com(0x28);
lcd_com(0x06);
lcd_com(0x0E);
lcd_com(0x0F);
lcd_com(0x01);
tpo_ms(5);
}

Formats disponibles : Unified diff