tc-based led controller functioning