Révision 540
Ajouté par mamorales il y a presque 4 ans
SP4b1.c | ||
---|---|---|
|
||
while(1)
|
||
{
|
||
char touche;
|
||
char c;
|
||
p10=0x07; // bits de pooid fort de la forme 0111
|
||
t=p10;
|
||
if(t&0xf0!=0xf0) //test les bits de poids forts. Si le bit de poid for de t est != de f, alors t&0xF0 sera != de 0xF0
|
||
c = t & 0xf0;
|
||
if ((t&0xf0)!=0xf0) //test les bits de poids forts. Si le bit de poid for de t est != de f, alors t&0xF0 sera != de 0xF0
|
||
{
|
||
touche=p10;
|
||
switch (t)
|
||
{
|
||
case 0b11100111:
|
||
touche ='*';
|
||
break;
|
||
}
|
||
}
|
||
p10=0x0B;
|
||
t=p10;
|
||
if(t&0xf0!=0xf0)
|
||
if((t&0xf0)!=0xf0)
|
||
{
|
||
touche=p10;
|
||
}
|
||
p10=0x0D;
|
||
t=p10;
|
||
if(t&0xf0!=0xf0)
|
||
if((t&0xf0)!=0xf0)
|
||
{
|
||
touche=p10;
|
||
}
|
||
p10=0x0E;
|
||
t=p10;
|
||
if(t&0xf0!=0xf0)
|
||
if((t&0xf0)!=0xf0)
|
||
{
|
||
touche=p10;
|
||
}
|
Formats disponibles : Unified diff
avancement sur la récupération des valeurs lors de l'appuie d'une touche