#include "Behaviors/StateMachine.h"

$nodeclass ButtonFlashLEDBehavior : StateNode {
  $setupmachine{
    
    wait: StateNode =B(RobotInfo::PlayButOffset)[setSound("ping.wav")]=> flash

    flash: LedNode [getMC()->flash(RobotInfo::GreenLEDMask, 1000)] =C=> wait
  }
}

REGISTER_BEHAVIOR(ButtonFlashLEDBehavior);
