correct a fault and implemented the interface of LED