// void setup() {
// // put your setup code here, to run once:
// volatile char *DDR_F, *DDR_K, *PORT_F, *PORT_K, *PIN_K, x, j;
// //configure address
// DDR_F = 0x30;
// DDR_K = 0x107;
// PORT_F = 0x31;
// PORT_K = 0x108;
// PIN_K = 0x106;
// // setting direction of bth port
// *DDR_F = 0x01;
// *DDR_K = 0x00;
// while (1) {
// x = *PIN_K;
// if ((x & 0x01) == 0x01) {
// *PORT_F = 0x02;
// } else {
// *PORT_F = 0x01;
// }
// }
// }
// void loop() {
// // put your main code here, to run repeatedly:
// }