#include "Behaviors/StateMachine.h"

$nodeclass ButtonFlash : StateNode {
  $setupmachine{

    launch: StateNode =N=> {button}

    button: StateNode
    button =B(RobotInfo::GreenButOffset)=> flash

    flash: LedNode [getMC()->cflash(RobotInfo::GreenLEDMask, 1.0, 1000)]
    flash =C(1)=>button

  }

}

REGISTER_BEHAVIOR(ButtonFlash);
