#include "Behaviors/StateMachine.h"

$nodeclass Lab2_1 : StateNode {
  $setupmachine{

    launch: StateNode =N=> {wait}

    blink: LedNode [getMC()->flash(RobotInfo::PlayLEDMask, 1.0, 1000)]

    blink =C(1)=> wait

    wait: StateNode =B(RobotInfo::PlayButOffset)[setSound("ping.wav")]=> blink
  }

}

REGISTER_BEHAVIOR(Lab2_1);
