Added extra small decoupling for reference. Pin-swapped and fixed pin numbers on digital input.