Révision 341
Ajouté par beboucheix il y a presque 4 ans
SP4b1.c | ||
---|---|---|
/***********************************************************************/
|
||
#include "sfr32c87.h"
|
||
|
||
void init_keyboard(void);
|
||
/* void init_keyboard(void);
|
||
void tpo_50ms(void);
|
||
|
||
unsigned char touche = 0;
|
||
|
||
|
||
void main(void)
|
||
{
|
||
init_keyboard();
|
||
... | ... | |
ta0ic = 0x00;
|
||
while(ir_ta0ic != 1);
|
||
ta0s = 0;
|
||
}
|
||
}
|
||
|
||
*/
|
||
char t;
|
||
void main(void) {
|
||
pd10=0x0F;
|
||
p10=0x00;
|
||
pu31=1;
|
||
while(1){
|
||
if((t&0xF0)0xF0{
|
||
p10=0x0F;
|
||
t=p10;
|
||
p10=0x0F;
|
||
t=p10;
|
||
p10=0x0B;
|
||
t=p10;
|
||
p10=0x07;
|
||
t=p10
|
||
|
||
|
||
}
|
||
|
||
}
|
||
}
|
||
|
Formats disponibles : Unified diff
q8