sunrise alarm clock software (C, for PIC32)