Mouse.begin()
Descripción
Inicia la emulación del ratón conectado a un ordenador. Mouse.begin() debe ser llamada antes de controlar el ordenador. Para finalizar el control, utilice Mouse.end().
Sintaxis
Mouse.begin()
Parámetros
- Ninguno
Retornos
- Ninguno
Ejemplo
void setup() {
pinMode(2, INPUT);
}
void loop() {
// inicia la biblioteca Mouse cuando se activa el pulsador del ratón
if (digitalRead(2) == HIGH) {
Mouse.begin();
}
}
※ 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 .