volatile unsigned char *porta,*portk;
void setup() {
// put your setup code here, to run once:
volatile unsigned char *dira,*dirk;
dira = 0x21;
*dira = 0xFF;
dirk = 0x107;
*dirk = 0x0F;
porta = 0x22;
portk = 0x108;
}
void loop() {
// put your main code here, to run repeatedly:
*portk = 0x0E;
*porta = 0x3F;
*portk = 0x0D;
*porta = 0x06;
*portk = 0x0B;
*porta = 0x5B;
*portk = 0x07;
*porta = 0x4F;
}