1 / 2
Simple DIY Macro Keyboard [3/4 Key's] — zdjęcie 1
1 / 2

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

Zamów wydruk tego modelu

Obliczymy ostateczną cenę na podstawie wybranego pliku. Sprawdzisz ją i zaakceptujesz przed płatnością.

Zapisane na tym urządzeniu.

Simple Arduino Pro Micro Macro Keyboard

Ocena
0 / 5
Polubienia
10
Pobrania
69
Wydruki
0
Wyświetlenia
937
Oceny
0

Aktualizacja u źródła:

Informacje o modelu

Źródło
Printables
Kategoria
Computers
Licencja
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
...
}  

Tagi