I swapped actions inside three branchings of setLockLEDs() function inside exp.c, recompiled and everything started to work as it should. I am in grate doubt it capable to work correctly without these changes. I am not good in electronics, but I believe I made no mistakes in wiring either. The case is somewhat mysterious.
