1 / 2
Simple DIY Macro Keyboard [3/4 Key's] — image 1
1 / 2

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

Order a print of this model

We calculate the final price from your selected file. You review and accept it before payment.

Saved on this device.

Simple Arduino Pro Micro Macro Keyboard

Rating
0 / 5
Likes
10
Downloads
69
Makes
0
Views
937
Reviews
0

Updated at source:

Model information

Category
Computers
License
GNU General Public License v3.0

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