A program that mimics LED light control