次の方法で共有


Seesaw.GetEncoderPosition(Byte) メソッド

定義

エンコーダーの現在位置を読み取ります。

public int GetEncoderPosition (byte encoder = 0);
member this.GetEncoderPosition : byte -> int
Public Function GetEncoderPosition (Optional encoder As Byte = 0) As Integer

パラメーター

encoder
Byte

使用するエンコーダーは、既定値は 0 です。

戻り値

エンコーダーの位置を 32 ビット符号付き整数として指定します。

例外

ハードウェアは Adafruit SeeSaw エンコーダー機能をサポートしていません。

適用対象