This sketch enables USB keyboard mode and sends a message every X seconds.
I've used this to send a keystroke from time to time to avoid online apps/games timeouts.
Change MESSAGE_TO_SEND define to set the message (keystrokes) Change TIME_BETWEEN define in order to select seconds between repetitions.
Dependencies:
- Keyboard - https://www.arduino.cc/reference/en/language/functions/usb/keyboard/ - Available on Arduino core libraries
- or -
- DigiKeyboard - https://github.com/digistump/DigistumpArduino - Available on Arduino after installing Digistump Attiny core
Currently tested devices:
- SAMD21 mini board: https://www.foroelectro.net/arduino/link/samd21-mini
- DigiSpark ATTiny85 board - https://www.foroelectro.net/arduino/link/attiny-85
- Arduino Due (native port) - https://www.foroelectro.net/arduino/link/arduino-due-r3
Directly compatible boards (others may need extra hardware):
- Arduino Micro
- Arduino Leonardo
- Arduino Mega
- Arduino Due
- Arduino MKR FOX 1200
- Arduino MKR GSM 1400
- Arduino MKR NB 1500
- Arduino MKR VIDOR 4000
- Arduino MKR WAN 1300 (LoRa connectivity)
- Arduino MKR WAN 1310
- Arduino MKR WiFi 1010
- Arduino MKR ZERO (I2S bus & SD for sound, music & digital audio data)
- Arduino MKR1000 WIFI
- Arduino Nano
- Arduino Nano 33 IoT
- Arduino Uno
- Arduino Yún
- Arduino Zero
- Arduino UNO R4 Minima
- Arduino UNO R4 WiFi
- Digispark Attiny85 compatible boards
From keyboard library: This library is compatible with the avr, samd, sam, renesas_uno architectures.
Creator: Naguissa - https://www.foroelectro.net - https://github.com/Naguissa
Version: 2.0.0