Controlling LED with Hardware/Software Desing