Move leds function to hw file. Comply flash api. Add Copyright.