Arduino Leonardo Keyboard - Typing and creating macros

preview_player
Показать описание
An Arduino project to emulate a keyboard. The Arduino acts as a keyboard and sends shortcuts to the computer to control it. In this project we use an Arduino Leonardo or a Pro Micro.

Code and circuit :

Links to buy boards:
Рекомендации по теме
Комментарии
Автор

Can I use this one to create an autotyping tool for my pc?

chandankairi
Автор

#include <Keyboard.h>

void setup() {
Keyboard.begin();

pinMode(2, INPUT);
pinMode(3, INPUT);

}

void loop() {
if (digitalRead(2) == HIGH) {
Keyboard.press('A');
delay(0);
}

if (digitalRead(2) == LOW) {
Keyboard.releaseAll();
delay(0);
}

if (digitalRead(3) == HIGH) {
Keyboard.press('B');
Keyboard.releaseAll();
delay(0);
}

if (digitalRead(3) == LOW) {
Keyboard.releaseAll();
delay(0);
}
}

hanbuvn
Автор

How to upload Arduino Keyboard .hex file into this Device so that my computer will see this device as a keyboard? Please tell.

chandankairi