Simple DIY Macro Keyboard [3/4 Key's]

Simple Arduino Pro Micro Macro Keyboard
10
41
0
684
updated December 21, 2021

Description

PDF

A very simple 3, or 4 Key Macro Keyboard Design

 

Hardware

  • Cherry MX (like) Keys
  • Arduino Pro Micro

 

Code
It doesn't get any easier really, create a new Arduino file with just this in, edit the Pins and actual Commands, and upload it to the Board, as easy as that you got yourself a simple macro Keyboard!

  

int buttonPin1 = 1;  // Set a button to any pin
int buttonPin2 = 2;  // Set a button to any pin
...

void setup()
{
 pinMode(buttonPin, INPUT);  // Set the button as an input
 digitalWrite(buttonPin, HIGH);  // Pull the button high
}

void loop()
{
 if (digitalRead(buttonPin1) == 0)  // if the button goes low
 {
   Keyboard.write('ΓΌ');  // send character '$'
   delay(100);  // delay
 }

 if (digitalRead(buttonPin2) == 0)  // if the button goes low
 {
   Keyboard.write('p');  // send character '$'
   delay(100);  // delay
 }

   if (digitalRead(buttonPin3) == 0)  // if the button goes low
 {
   Keyboard.write('i');  // send character '$'
   delay(100);  // delay
...
}  

Tags



Model origin

The author hasn't provided the model origin yet.

License