Skip to content

Instantly share code, notes, and snippets.

@KameronKeller
Last active February 9, 2023 02:07
Show Gist options
  • Save KameronKeller/d0374bf5910a0b52f8da0d0bf8558337 to your computer and use it in GitHub Desktop.
Save KameronKeller/d0374bf5910a0b52f8da0d0bf8558337 to your computer and use it in GitHub Desktop.

IDE Download

Keyboard API

Mouse API

Starter Code

#include <Keyboard.h>

const int buttonPin = 2;

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

void loop() 
{
  if(digitalRead(buttonPin) == HIGH)
  {
    triggerAutomation();
    delay(100);    
  }
}

void triggerAutomation()
{
  Keyboard.print("Hello!");
}

Other Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment