P1 = ((P1 & 0xf0) | pin_value);