• Models
  • Contests
  • Slicer
  • Login
  • Start Here
    thingiverse-iconprintables-iconcults3d-iconmakerworld-iconmyminifactory-icon

    3D GO

    3D ModelsContestsCollectionsSaved ModelsOn a mobile device?

3D GO

Privacy Policy
Button box 3D Printer File Image 1
Button box 3D Printer File Image 2
Button box 3D Printer File Thumbnail 1
Button box 3D Printer File Thumbnail 2

Button box

DrFred avatarDrFred

June 6, 2024

makerworld-icon
DescriptionCommentsTags

Description

This is a Buttonbox with 12 Cherry MX like Switches and a Arduino pro micro Atmega32U4.

 

https://amzn.eu/d/gm1DsS2

 

You have to change the Keybindings for your needs!

 

ArduinoCode:

 

#include <Keyboard.h>

#include <Keypad.h>


 

int ledPin = 10;


 

const byte ROWS = 4;

const byte COLS = 3;


 

char keys[ROWS][COLS] = {

{'a', 'e', 'i'},

{'b', 'f', 'j'},

{'c', 'g', 'k'},

{'d', 'h', 'l'},

};


 

byte rowPins[ROWS] = {6, 7, 8, 9};

byte colPins[COLS] = {15, 14, 16};


 

Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );


 

void setup() {

Keyboard.begin();

}


 

void loop() {

analogWrite(ledPin, 250);

char key = keypad.getKey();


 

if (key) {

switch (key) {

case 'a': // Ship POWER

Keyboard.press('u');

break;

case 'b': // Ship Engin

Keyboard.press('i');

break;

case 'c': // Lights EXT

Keyboard.press('l');

break;

//case 'd': // Lights int

// Keyboard.press('a');

//break;

case 'e': // Lock ext

Keyboard.press(KEY_LEFT_CTRL);

Keyboard.press('z');

break;

case 'f': // Lock int

Keyboard.press(KEY_LEFT_CTRL);

Keyboard.press('y');

break;

case 'g': // DPLY RMP

Keyboard.press(KEY_LEFT_GUI);

Keyboard.press('t');

break;

case 'h': // DPLY GEAR

Keyboard.press('n');

break;

case 'i': //Landing REQ

Keyboard.press(KEY_LEFT_ALT);

Keyboard.press('n');

break;

case 'j': //EXept

Keyboard.press('ü');

break;

case 'k': //ALLERT ON OFF

Keyboard.press(KEY_LEFT_ALT);

Keyboard.press(KEY_TAB);

break;

case 'l': //ALERT MUTE

Keyboard.press(KEY_LEFT_ALT);

Keyboard.press(KEY_ESC);

break;

}


 

delay(100);

Keyboard.releaseAll();

}

}

License:

BY

Related Models

Modular Mounting System preview image

Modular Mounting System

HeyVye profile image

HeyVye

69,181

Mechanical Tally Counter 5.0 preview image

Mechanical Tally Counter 5.0

FredrikHamrebjorkDesigns profile image

FredrikHamrebjorkDesigns

9,252

NFCtag Macaron_shaped cliker charm preview image

NFCtag Macaron_shaped cliker charm

あやこ profile image

あやこ

1,019

NUT JOB | Nut, Bolt, Washer and Threaded Rod Factory preview image

NUT JOB | Nut, Bolt, Washer and Threaded Rod Factory

mike_mattala profile image

mike_mattala

51,841

Perfect Fit Bambu Lab/Bambulab AMS Feeder Button Cover Protector Saver (Hydra AMS compatible!) preview image

Perfect Fit Bambu Lab/Bambulab AMS Feeder Button Cover Protector Saver (Hydra AMS compatible!)

eds_3d_shop profile image

eds_3d_shop

2,178

Life Alert Button Prop – “Push for Help”(Wearable) preview image

Life Alert Button Prop – “Push for Help”(Wearable)

Kyle | Hein Dynamics profile image

Kyle | Hein Dynamics

394

Flexi Rex with stronger links preview image

Flexi Rex with stronger links

DrLex profile image

DrLex

47,357

PopKeys - The Triple Toggle Fidget Toy preview image

PopKeys - The Triple Toggle Fidget Toy

Ben Brandt profile image

Ben Brandt

3,133