Arduino control Keyboard

December 31, 2019

Here is a snippet of code to used to control a keyboard using an Arduino.

#include "Keyboard.h"

void setup() {
  Serial.begin(9600);
  Keyboard.begin();
}

void loop() {
  Keyboard.write('h');
  delay(10000);
}

Search