def main():
    """
    Run through simple demonstration of alarm concept
    """
    alarm = XBeeAlarm('/dev/ttyUSB0', '\x56\x78')
    routine = SimpleWakeupRoutine(alarm)

    from time import sleep
    while True:
        """
        Run the routine with 10 second delays
        """
        try:
            print "Waiting 5 seconds..."
            sleep(5)
            print "Firing"
            routine.trigger()
        except KeyboardInterrupt:
            break