VEX 123 API 参考#
Welcome to the VEX 123 API Reference. This site explains the Blocks available in VEXcode 123.
Use this reference to learn what a block does, what information it needs, what it reports, and how it can be used in a project.
API 部分#
模块 - 了解 VEXcode 123 中可用的模块,包括每个模块的功能、输入的含义以及如何在项目中使用它。
VEXcode 教程 - 查找有关如何使用 VEXcode 123 的教程和支持资源。
如何使用此参考资料#
请选择您正在使用的资源所在的版块。
Use the sidebar or search bar to find a device, category, block, or command.
阅读说明以了解该模块的功能及其适用场景。
查看参数,了解需要哪些输入以及有哪些选项。
查看示例,了解该模块在项目中的一种使用方式。
使用 API 的技巧#
首先确定您正在使用的设备或类别,例如驱动系统、LED、声音或传感。
在复制示例之前,请先阅读说明,以便了解该代码块的作用。
仔细检查参数表。输入参数的微小变化都可能改变机器人的行为。
以示例为起点,然后更改数值、方向或选项,使其与您自己的项目相匹配。