[USB]
説明
Begins emulating the mouse connected to a computer. begin()
must be called before controlling the computer. To end control, use Mouse.end().
構文
Mouse.begin()
媒介変数
none
戻り値
nothing
例
void setup(){ pinMode(2, INPUT); } void loop(){ //initiate the Mouse library when button is pressed if (digitalRead(2) == HIGH) { Mouse.begin(); } }
See also
Language Reference Home
86Duino のリファレンスのテキストは Arduino レファレンス を編集したもので、 Creative Commons Attribution-ShareAlike 3.0 License下でライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。