added control over ledX, ocX and swX