//-*-c++-*-
#ifndef INCLUDED_LED_FLASH_h_
#define INCLUDED_LED_FLASH_h_
 
#include "Behaviors/StateMachine.h"
#include "Events/EventRouter.h"

class LedFlash : public StateNode {

public:
    LedFlash() : StateNode("LedFlash") {}
    virtual void setup() {
#statemachine

startnode: StateNode =E(buttonEGID, ChiaraInfo::GreenButOffset, activateETID)=> flash

flash: LedNode [getMC()->flash(ChiaraInfo::GreenLEDMask, 1000);]

flash =C=> startnode

#endstatemachine
  }       // end of setup()

};

#endif

