thread handling in writeLED done