1
0
Fork 0

[Keyboard] Fix error_log complaint about handwired/onekey layout macro (#9263)

This commit is contained in:
Ryan 2020-06-08 15:49:18 +10:00 committed by GitHub
parent d7523c1260
commit 407d6a2b67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 44 additions and 50 deletions

View file

@ -7,7 +7,7 @@ enum custom_keycodes {
}; };
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
LAYOUT(ADC_SAMPLE) // LAYOUT_ortho_1x1(ADC_SAMPLE)
}; };
bool process_record_user(uint16_t keycode, keyrecord_t *record) { bool process_record_user(uint16_t keycode, keyrecord_t *record) {

View file

@ -21,12 +21,11 @@ void dance_cln_reset (qk_tap_dance_state_t *state, void *user_data) {
breathing_toggle(); breathing_toggle();
break; break;
case 3: case 3:
//tripple tap - do some pulse stuff // triple tap - do some pulse stuff
breathing_pulse(); breathing_pulse();
break; break;
#endif #endif
default: default:
// more - nothing
break; break;
} }
} }
@ -36,5 +35,5 @@ qk_tap_dance_action_t tap_dance_actions[] = {
}; };
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
LAYOUT( TD(TD_BL) ) LAYOUT_ortho_1x1(TD(TD_BL))
}; };

View file

@ -1,5 +1,5 @@
#include QMK_KEYBOARD_H #include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
LAYOUT( KC_A ) LAYOUT_ortho_1x1(KC_A)
}; };

View file

@ -1,7 +1,7 @@
{ {
"keyboard": "handwired/onekey/pytest", "keyboard": "handwired/onekey/pytest",
"keymap": "default_json", "keymap": "default_json",
"layout":"LAYOUT", "layout": "LAYOUT_ortho_1x1",
"layers": [["KC_A"]], "layers": [["KC_A"]],
"author": "qmk", "author": "qmk",
"notes": "This file is a keymap.json file for handwired/onekey/pytest", "notes": "This file is a keymap.json file for handwired/onekey/pytest",

View file

@ -1,5 +1,5 @@
#include QMK_KEYBOARD_H #include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
LAYOUT( EEP_RST ) LAYOUT_ortho_1x1(EEP_RST)
}; };

View file

@ -21,7 +21,7 @@ i2c_status_t i2c_start_bodge(uint8_t address, uint16_t timeout) {
#endif #endif
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
LAYOUT(KC_A) // LAYOUT_ortho_1x1(KC_A)
}; };
void do_scan(void) { void do_scan(void) {

View file

@ -1,5 +1,5 @@
#include QMK_KEYBOARD_H #include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
LAYOUT( RESET ) LAYOUT_ortho_1x1(RESET)
}; };

View file

@ -1,7 +1,7 @@
#include QMK_KEYBOARD_H #include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
LAYOUT( RGB_MOD ) LAYOUT_ortho_1x1(RGB_MOD)
}; };
void keyboard_post_init_user(void) { void keyboard_post_init_user(void) {

View file

@ -18,7 +18,7 @@
#include "quantum.h" #include "quantum.h"
#define LAYOUT( \ #define LAYOUT_ortho_1x1( \
k00 \ k00 \
) { \ ) { \
{ k00 } \ { k00 } \

View file

@ -2,11 +2,6 @@
/* This keyboard/layout is used to test community layout discovery/compilation. */ /* This keyboard/layout is used to test community layout discovery/compilation. */
#define _DEFAULT 0
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
LAYOUT_ortho_1x1(KC_B)
[_DEFAULT] = LAYOUT (
KC_B
),
}; };