@Robin2's planning tutorial is excellent in demonstrating working down through the "wrappers" in an Arduino context: