parameters: (self)
docstring: Start alarm.
docstring_summary: Start alarm.
docstring_tokens: Start alarm .
function: def start_alarm(self):
  
          """
          Start alarm.
          """
  
          if self.alarm_state != Runner.ALARM_STATE.alarm_triggered:
              log("alarm-starting")
              self.alarm_state = Runner.ALARM_STATE.alarm_triggered
              self.alarm_triggered = True
              self.board.change_background("red")
              self.board.write_message("ALARM")
function_tokens: def start_alarm ( self ) : if self . alarm_state != Runner . ALARM_STATE . alarm_triggered : log ( "alarm-starting" ) self . alarm_state = Runner . ALARM_STATE . alarm_triggered self . alarm_triggered = True self . board . change_background ( "red" ) self . board . write_message ( "ALARM" )