Révision 566
Ajouté par modia3 il y a presque 4 ans
SP4b1.c | ||
---|---|---|
/* NOTE:THIS IS A TYPICAL EXAMPLE. */
|
||
/***********************************************************************/
|
||
|
||
#include "sfr32c87.h"
|
||
void init_keyboard(void);
+
|
||
char t;
|
||
void main(void)
|
||
{
|
||
|
||
pd10=0xF0;
|
||
p10=0xFF;
|
||
t=p10;
|
||
pu30=1;
|
||
p10=0x00;
|
||
t=p10;
|
||
while(1){
|
||
p10=0x0F;
|
||
t=p10;
|
||
if(t!=0x0F)
|
||
{
|
||
p10=0xEF;
|
||
t=p10;
|
||
}
|
||
}
|
||
}
|
||
|
||
|
Formats disponibles : Unified diff
TEST CLAVIER