VEX 123 API 参考#

Welcome to the VEX 123 API Reference. This site explains the Blocks available in VEXcode 123 and the Coder Cards used with the VEX 123 Coder.

Use this reference to learn what a block or card does, what information it needs, what it reports, and how it can be used in a project.

API 部分#

  • 模块 - 了解 VEXcode 123 中可用的模块,包括每个模块的功能、输入的含义以及如何在项目中使用它。

  • Coder Cards - Learn about the Coder Cards used with the VEX 123 Coder, including what each card does and how it can be used in a project.

  • VEXcode 教程 - 查找有关如何使用 VEXcode 123 的教程和支持资源。

如何使用此参考资料#

  1. 请选择您正在使用的资源所在的版块。

  2. Use the sidebar or search bar to find a device, category, block, card, or command.

  3. 阅读说明以了解该模块的功能及其适用场景。

  4. 查看参数,了解需要哪些输入以及有哪些选项。

  5. 查看示例,了解该模块在项目中的一种使用方式。

使用 API 的技巧#

  • 首先确定您正在使用的设备或类别,例如驱动系统、LED、声音或传感。

  • 在复制示例之前,请先阅读说明,以便了解该代码块的作用。

  • 仔细检查参数表。输入参数的微小变化都可能改变机器人的行为。

  • 以示例为起点,然后更改数值、方向或选项,使其与您自己的项目相匹配。