public void doAlarm() {
        System.out.println("Beep!");
        theDisplay.setAlarmPulse(true);
        try {Thread.sleep(300);} catch (InterruptedException e) {}
        theDisplay.setAlarmPulse(false);
    }