Projet

Général

Profil

« Précédent | Suivant » 

Révision 504

Ajouté par jgsoleilla il y a presque 4 ans

Voir les différences:

SP4b2.c
void main(void)
{
char t;
unsigned char touche;
pu31 =1;
pd10 = 0x0F;
lcd_init_port();
lcd_init();
//lcd_str("Bonjour");
lcd_str("Bonjour");
// while(1){
// touche = clavier();
// }
}
......
i++;
}
}
/*
unsigned char clavier(void){
p10 = 0x0E;
t = p10;
unsigned char touche;
if (t == 0xBE){
touche = '1';
}
if (t == 0xDE){
touche = '2';
}
if (t == 0x7E){
touche = '3';
}
p10 = 0x0D;
t = p10;
if (t == 0xBD){
touche = '4';
}
if (t == 0xDD){
touche = '5';
}
if (t == 0x7D){
touche = '6';
}
p10 = 0x0B;
t = p10;
if (t == 0xEB){
touche = '7';
}
if (t == 0xDB){
touche = '8';
}
if (t == 0x7B){
touche = '9';
}
p10 = 0x07;
t = p10;
if (t == 0xE7){
touche = '*';
}
if (t == 0xD7){
touche = '0';
}
if (t == 0x77){
touche = '#';
}
return touche;
}
*/
void tpo_ms(unsigned short duree){
tcspr = 0x8A;
ta0mr = 0x82;

Formats disponibles : Unified diff