#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!");
}
Last active
February 9, 2023 02:07
-
-
Save KameronKeller/d0374bf5910a0b52f8da0d0bf8558337 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment