Single transistor LED switch