Projet

Général

Profil

« Précédent | Suivant » 

Révision 647

Ajouté par dgmbadinga il y a presque 4 ans

tpsp4b2 recherche solution d'affichage infini des touches

Voir les différences:

SP4b2.c
void tpo_us(int t);
char test;
char touche;
char memo = 0;
void main(void)
{
/*pd1=0xFF; // d?clare la broche p1 en sortie
......
pd10= 0x0F;
pu31=1;
p10=0x00;
while (1){
test=p10;
p10= 0xFe;
......
if (test==0xe7){
touche ='*';
}
lcd_car (touche);
memo=touche;
if (memo==touche){
lcd_car (touche);
}
memo=0;
}
}

Formats disponibles : Unified diff