ShrimpKey

  • fromScratchEd

How to change the letters of the ShrimpKey

Date: 17 August 2013 Author: Sjoerd Dirk Categories: ShrimpKey 0

ee70d92fc8

When uploading the ShrimpKey-sketch to your ShrimpKey (see part 2 of the building instructions) you’ve got the opportunity to change the letters which your ShrimpKey can type.

If you load the sketch in the Arduino IDE, the file settings.h is loaded also in a second tab.
This file contains this part:

char keyCodes[NUM_INPUTS] = {
KEY_D, // pin D4
KEY_E, // pin D5
KEY_I, // pin D6
KEY_J, // pin D8
KEY_K, // pin D9
KEY_O, // pin D11
KEY_R, // pin A0
KEY_S, // pin A2
KEY_SPACE // pin A5
};

You can see here that the letter D is coupled to connector D4, the E to D5, etc.

If you want to couple different keys to the connectors of the ShrimpKey, you can change it here, i.e.

char keyCodes[NUM_INPUTS] = {
KEY_ARROW_RIGHT, // pin D4
KEY_ARROW_LEFT, // pin D5
KEY_ARROW_UP, // pin D6
KEY_ARROW_DOWN, // pin D8
KEY_ENTER, // pin D9
KEY_SPACE, // pin D11
KEY_A, // pin A0
KEY_S, // pin A2
KEY_D // pin A5
};

Now you have coupled arrow right to connector D4, arrow left t D5, enz.

De following keycodes are available:

KEY_A
KEY_B
KEY_C
KEY_D
KEY_E
KEY_F
KEY_G
KEY_H
KEY_I
KEY_J
KEY_K
KEY_L
KEY_M
KEY_N
KEY_O
KEY_P
KEY_Q
KEY_R
KEY_S
KEY_T
KEY_U
KEY_V
KEY_W
KEY_X
KEY_Y
KEY_Z
KEY_1
KEY_2
KEY_3
KEY_4
KEY_5
KEY_6
KEY_7
KEY_8
KEY_9
KEY_0
KEY_ENTER
KEY_SPACE
KEY_F1
KEY_F2
KEY_F3
KEY_F4
KEY_F5
KEY_F6
KEY_F7
KEY_F8
KEY_F9
KEY_F10
KEY_F11
KEY_F12
KEY_ARROW_RIGHT
KEY_ARROW_LEFT
KEY_ARROW_DOWN
KEY_ARROW_UP

 

Now upload your sketch to the ShrimpKey and start using your chosen keys in your project.

Pin It

Comments are closed.