Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added hackpad keyboard #20402

Merged
merged 10 commits into from
Jul 4, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rest of suggestions
  • Loading branch information
Nico Stuhlmueller committed Apr 10, 2023
commit 62e7b7951887062ed12aed298c92fbfd7b38a071
5 changes: 0 additions & 5 deletions keyboards/hackpad/config.h
ThePurox marked this conversation as resolved.
Outdated
Show resolved Hide resolved

This file was deleted.

13 changes: 13 additions & 0 deletions keyboards/hackpad/hackpad.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright 2023 Nico Stuhlmueller (@ThePurox)
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

ThePurox marked this conversation as resolved.
Show resolved Hide resolved
bool encoder_update_kb(uint8_t index, bool clockwise) {
if (clockwise) {
tap_code_delay(KC_VOLU, 10);
} else {
tap_code_delay(KC_VOLD, 10);
}
return false;
}
9 changes: 0 additions & 9 deletions keyboards/hackpad/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
RGB_M_SW, RGB_M_SN, RGB_M_K, RGB_HUD,
RGB_M_X, RGB_M_G, RGB_M_TW, RGB_VAI,
RGB_TOG, RGB_SAI, RGB_SAD, RGB_VAD)};

bool encoder_update_user(uint8_t index, bool clockwise) {
if (clockwise) {
tap_code_delay(KC_VOLU, 10);
} else {
tap_code_delay(KC_VOLD, 10);
}
return false;
}
2 changes: 1 addition & 1 deletion keyboards/hackpad/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_to

Enter the bootloader in 2 ways:

* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
* **Physical reset button**: Briefly press the button on the top of the PCB - some may have pads you must short instead
* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available