Call in strategems in Helldivers 2 using a keypad and an arduino with USB capabilities.
I've included a Hardware Schematic.fzz for Fritzing.
There are two variables that will likely need to be configured by the user:
-
The
keymap
const in the main sketch .ino file, which maps the buttons on the keypad to in-game strategems by settingStrategemType
s which can be found in Strategem.h -
The
USE_ARROW_KEYS
flag, as many players (including myself) have rebound the defaultwasd
to call in strategems to the arrow keys.
Depending on how you wired the arduino to the keypad, you may have to change the values for ROW_PINS
and COL_PINS
.
If your game isn't registering the keypresses from the Arduino (usually due to lag,) you may have to set the KEYPRESS_TIME
const in Strategem.h yourself.