Code for an IR alarm clock