Projet

Général

Profil

« Précédent | Suivant » 

Révision 892

Ajouté par frkanaan il y a presque 4 ans

clavier marche (tp4b1)+ avancement et mise en place des tp4c12

Voir les différences:

SP4b1.c
#include "sfr32c87.h"
unsigned char t, touche;
void main()
{
pd10=0xF0;
p10=0xFF;
pu30=1;
......
t=p10;
if(t!=0x0F)
{
p10=0x7F;
t=p10;
if(t==0x7E)
touche='3';
if(t==0x7D)
touche='6';
if(t==0x7B)
touche='9';
if(t==0x77)
touche='#';
p10=0xBF;
t=p10;
if(t==0xBE)
touche='1';
if(t==0xBD)
touche='4';
if(t==0xBB)
touche='7';
if(t==0xB7)
touche='*';
p10=0xDF;
t=p10;
......
p10=0xEF;
t=p10;
if(t==0xEE)
touche='3';
if(t==0xED)
touche='6';
if(t==0xEB)
touche='9';
touche='7';
if(t==0xE7)
touche='#';
touche='*';
}
}
}

Formats disponibles : Unified diff