#include"ECEN.h"
void setup() {
volatile int outputmode=0xff,inputmode=0x00;
volatile int ReadSwitch;
init_PORTF(outputmode);
init_PORTK(inputmode);
while(1){
*inputK=0x00;
ReadSwitch=*inputK;
switch(ReadSwitch)
{
case 1:
Glow0thLED();
break;
case 2:
Glow1thLED();
break;
case 4:
Glow2thLED();
break;
case 8:
Glow3thLED();
break;
case 16:
Glow4thLED();
break;
case 32:
Glow5thLED();
break;
case 64:
Glow6thLED();
break;
case 128:
Glow7thLED();
break;
}
}
}
void loop() {
}