Use GPT (General Purpose Timer) to control led