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

teleport/native: switch from wrongly used user to kb function, boost matrix scan rate #21172

Merged
merged 7 commits into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from 5 commits
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
3 changes: 3 additions & 0 deletions keyboards/teleport/native/ansi/keymaps/perfmode/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
*/
#include QMK_KEYBOARD_H

// tested and working
void matrix_io_delay(void) { __asm__ volatile("nop\nnop\nnop\n"); }

enum layers{
BASE,
GAME,
Expand Down
1 change: 1 addition & 0 deletions keyboards/teleport/native/ansi/keymaps/perfmode/rules.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
DEBOUNCE_TYPE = asym_eager_defer_pk
OPT = 2

VIA_ENABLE = yes

3 changes: 2 additions & 1 deletion keyboards/teleport/native/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": true
"nkro": true,
"lto": true
},
"diode_direction": "ROW2COL",
"matrix_pins": {
Expand Down
3 changes: 3 additions & 0 deletions keyboards/teleport/native/iso/keymaps/perfmode/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
*/
#include QMK_KEYBOARD_H

// tested and working
void matrix_io_delay(void) { __asm__ volatile("nop\nnop\nnop\n"); }

enum layers{
BASE,
GAME,
Expand Down
1 change: 1 addition & 0 deletions keyboards/teleport/native/iso/keymaps/perfmode/rules.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
DEBOUNCE_TYPE = asym_eager_defer_pk
OPT = 2

VIA_ENABLE = yes

2 changes: 1 addition & 1 deletion keyboards/teleport/native/native.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "quantum.h"

/* This board has !SDB of the is31 wired to D2. Set high to enable */
void keyboard_post_init_user(void) {
void keyboard_post_init_kb(void) {
setPinOutput(B9);
writePinHigh(B9);
ebastler marked this conversation as resolved.
Show resolved Hide resolved
}
Expand Down