Projet

Général

Profil

« Précédent | Suivant » 

Révision 595

Ajouté par mukis il y a presque 4 ans

Fin du code du clavier matriciel.
Manque seulement à définir l'adresse exact pour t.

Voir les différences:

SP4b1.c
t = p10;
if (t != 0x0F) //une touche est apuyee
{
p10=0xEF; // colonne a droite a 0
p10=0xEF; // colonne de droite a 0
t=p10;
if (t == 0x0F) //une touche est apuyee
{
touche='';
touche='3';
}
if (t == 0x0F) //une touche est apuyee
{
touche='6';
}
if (t == 0x0F) //une touche est apuyee
{
touche='9';
}
if (t == 0x0F) //une touche est apuyee
{
touche='#';
}
p10=0xDF; // colonne du milieu a 0
t=p10;
if (t == 0x0F) //une touche est apuyee
{
touche='2';
}
if (t == 0x0F) //une touche est apuyee
{
touche='5';
}
if (t == 0x0F) //une touche est apuyee
{
touche='8';
}
if (t == 0x0F) //une touche est apuyee
{
touche='0';
}
p10=0xBF; // colonne de gauche a 0
t=p10;
if (t == 0x0F) //une touche est apuyee
{
touche='1';
}
if (t == 0x0F) //une touche est apuyee
{
touche='4';
}
if (t == 0x0F) //une touche est apuyee
{
touche='7';
}
if (t == 0x0F) //une touche est apuyee
{
touche='*';
}
}
}
}

Formats disponibles : Unified diff