Fix for led class mostly made in motor repository, however, had to declare a static member of class led in the interpreter. The problem was accessing the hardware ports for the led before they had been configured.