void setup() {
volatile char *dir;
dir = 0x30; // address for ao-a7 port f
*dir = 0xFF; // assaign this as ouput port
dir = 0x107; // address fpr a8-a15 port k
*dir = 0xFF; // assaign this as output port
}
void loop() {
volatile char *out;
out = 0x108;
*out = 0x02;
out = 0x31;
*out=0x07;
//out = 0x108;
//*out=0x01;
}