VEX GO API 參考#
Welcome to the VEX GO API Reference. This site explains the Blocks and Python commands available in VEXcode GO and the Coder cards used in the VEX Digital Coder.
Use this reference to learn what a command or card does, what information it needs, what it reports or returns, and how it can be used in a project.
API 部分#
模組 - 了解 VEXcode GO 中可用的模組,包括每個模組的功能、輸入的含義以及如何在專案中使用它。
Python - 了解 VEXcode GO 中使用的 Python 方法、函數、參數、傳回值和範例。
Coder Cards - Learn about the Coder cards used with VEX GO in the VEX Digital Coder, including what each card does and how it can be used in a project.
VEXcode 教學 - 尋找如何使用 VEXcode GO 的教學課程和支援資源。
如何使用此參考資料#
請選擇您所使用的程式語言或資源對應的部分。
Use the sidebar or search bar to find a device, category, block, card, command, or method.
閱讀說明以了解該命令的作用以及何時使用它。
查看參數,了解需要哪些輸入以及有哪些選項。
查看範例,了解該命令在專案中的一種使用方法。
對於 Python 中的文字範例,請選擇 複製 按鈕複製範例,然後將其貼上到您的編碼環境中。
使用 API 的技巧#
首先確定您正在使用的裝置或類別,例如驅動系統、運動、眼動感測器、磁鐵或邏輯。
在複製範例之前,請先閱讀說明,以便了解該指令的作用。
仔細檢查參數表。輸入參數的微小變化都可能改變機器人的行為。
以範例為起點,然後變更值、方向、連接埠或名稱以符合您自己的專案。