Révision 640
Ajouté par mamoisan il y a presque 4 ans
SP4b2.c | ||
---|---|---|
{
|
||
touche = touche_app();
|
||
lcd_car(touche);
|
||
tpo_ms(500);
|
||
tpo_ms(10000);
|
||
}
|
||
}
|
||
|
||
... | ... | |
if (t==0xbe)
|
||
{
|
||
touche = '1';
|
||
tpo_ms(500);
|
||
tpo_ms(50);
|
||
return touche;
|
||
exit(1);
|
||
}
|
||
if (t==0xde)
|
||
{
|
||
touche = '2';
|
||
tpo_ms(500);
|
||
tpo_ms(50);
|
||
return touche;
|
||
exit(1);
|
||
}
|
||
if (t==0x7e)
|
||
{
|
||
touche = '3';
|
||
tpo_ms(500);
|
||
tpo_ms(50);
|
||
return touche;
|
||
exit(1);
|
||
}
|
||
... | ... | |
if (t==0xbd)
|
||
{
|
||
touche = '4';
|
||
tpo_ms(500);
|
||
tpo_ms(50);
|
||
return touche;
|
||
exit(1);
|
||
}
|
||
if (t==0xdd)
|
||
{
|
||
touche = '5';
|
||
tpo_ms(500);
|
||
tpo_ms(50);
|
||
return touche;
|
||
exit(1);
|
||
}
|
||
if (t==0x7d)
|
||
{
|
||
touche = '6';
|
||
tpo_ms(500);
|
||
tpo_ms(50);
|
||
return touche;
|
||
exit(1);
|
||
}
|
||
... | ... | |
if (t==0x7b)
|
||
{
|
||
touche = '9';
|
||
tpo_ms(500);
|
||
tpo_ms(50);
|
||
return touche;
|
||
exit(1);
|
||
}
|
||
if (t==0xdb)
|
||
{
|
||
touche = '8';
|
||
tpo_ms(500);
|
||
tpo_ms(50);
|
||
return touche;
|
||
exit(1);
|
||
}
|
||
if (t==0xeb)
|
||
{
|
||
touche = '7';
|
||
tpo_ms(500);
|
||
tpo_ms(50);
|
||
return touche;
|
||
exit(1);
|
||
}
|
||
... | ... | |
if (t==0xd7)
|
||
{
|
||
touche = '0';
|
||
tpo_ms(500);
|
||
tpo_ms(50);
|
||
return touche;
|
||
exit(1);
|
||
}
|
||
if (t==0x77)
|
||
{
|
||
touche = '#';
|
||
tpo_ms(500);
|
||
tpo_ms(50);
|
||
return touche;
|
||
exit(1);
|
||
}
|
||
if (t==0xe7)
|
||
{
|
||
touche = '*';
|
||
tpo_ms(500);
|
||
tpo_ms(50);
|
||
return touche;
|
||
exit(1);
|
||
}
|
||
... | ... | |
if (t==0xbe)
|
||
{
|
||
touche = '1';
|
||
tpo_ms(500);
|
||
tpo_ms(50);
|
||
return touche;
|
||
exit(1);
|
||
}
|
||
if (t==0xde)
|
||
{
|
||
touche = '2';
|
||
tpo_ms(500);
|
||
tpo_ms(50);
|
||
return touche;
|
||
exit(1);
|
||
}
|
||
if (t==0x7e)
|
||
{
|
||
touche = '3';
|
||
tpo_ms(500);
|
||
tpo_ms(50);
|
||
return touche;
|
||
exit(1);
|
||
}
|
Formats disponibles : Unified diff
test durée de certaines fonction des premiers TPs + vérification du clavier et de l'écran LCD