Added learning test stuff.
Added 10ms sleep in lampDriver to reduce CPU thrashing.