Mouse.end()

Descrição

Encerra a emulação do mouse USB. Para iniciar o controle, use Mouse.begin().

Sintaxe

Mouse.end()

Parâmetros

  • Nenhum

Retorna

Nada

Código de Exemplo

#include <Mouse.h> void setup() { pinMode(2, INPUT); // inicializa a biblioteca Mouse Mouse.begin(); } void loop() { // se o botão for pressionado, envia um clique com o botão esquerdo do mouse // e depois encerra a emulação do mouse if (digitalRead(2) == HIGH) { Mouse.click(); Mouse.end(); } }

Ver Também

Linguagem : Mouse.click()

Linguagem : Mouse.move()

Linguagem : Mouse.press()

Linguagem : Mouse.release()

Linguagem : Mouse.isPressed()

ARDUINO BUY RECOMMENDATION

Arduino UNO R3
Arduino Starter Kit
Please note: These are affiliate links. If you buy the components through these links, We may get a commission at no extra cost to you. We appreciate it.

※ OUR MESSAGES

  • We are AVAILABLE for HIRE. See how to hire us to build your project
  • Any suggestion, correction, and translation? please email us at ArduinoGetStarted@gmail.com, We appreciate it
  • We mainly keep improving the references in English. See English version of this page for the latest update.