Mouse.end()
Descripción
Detiene la emulación del rató conectado al ordenador. Para iniciar el control, use Mouse.begin().
Sintaxis
Mouse.end()
Parámetros
- Ninguno
Retornos
- Ninguno
Ejemplo
void setup() {
pinMode(2, INPUT);
// inicia la biblioteca Mouse
Mouse.begin();
}
void loop() {
// Si se pulsa el botón, enviar un clic derecho del ratón
// después finaliza la emulación del ratón
if (digitalRead(2) == HIGH) {
Mouse.click();
Mouse.end();
}
}
※ ARDUINO BUY RECOMMENDATION
Arduino UNO R3 | |
Arduino Starter Kit |
Disclosure: Some links in this section are Amazon affiliate links. If you make a purchase through these links, we may earn a commission at no extra cost to you.
Additionally, some links direct to products from our own brand, DIYables.
Additionally, some links direct to products from our own brand, DIYables.