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

add dynamis keyboard code #15994

Merged
merged 26 commits into from
Jun 21, 2022
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
2d1fcdd
dynamis
bbrfkr Jan 22, 2022
dfd7888
mod to use via
bbrfkr Jan 22, 2022
d13117c
mod keymap
bbrfkr Jan 23, 2022
5a9c9d9
delete config.h
bbrfkr Jan 23, 2022
f4dc83e
add LTO_ENABLE option
bbrfkr Jan 23, 2022
cb728c7
mod info.json
bbrfkr Jan 23, 2022
7f4ab39
add break line
bbrfkr Jan 23, 2022
a13406d
apply json prettier
bbrfkr Jan 23, 2022
d238e93
mod for info.json
bbrfkr Jan 23, 2022
969501e
mod for using iso layout
bbrfkr Jan 23, 2022
885deb7
apply suggestion
bbrfkr Feb 5, 2022
16701e3
Update keyboards/bbrfkr/dynamis/dynamis.h
bbrfkr Feb 5, 2022
aead663
Update keyboards/bbrfkr/dynamis/dynamis.h
bbrfkr Feb 5, 2022
15a4570
Update keyboards/bbrfkr/dynamis/info.json
bbrfkr Feb 5, 2022
d67743d
Update keyboards/bbrfkr/dynamis/info.json
bbrfkr Feb 5, 2022
29a4853
Update keyboards/bbrfkr/dynamis/keymaps/default/keymap.c
bbrfkr Feb 5, 2022
80307bf
Update keyboards/bbrfkr/dynamis/keymaps/via/keymap.c
bbrfkr Feb 5, 2022
6368ba2
add conditional macro of encoder_enable
bbrfkr Feb 5, 2022
b4d74e0
mod layout var
bbrfkr Feb 5, 2022
9566bba
Update keyboards/bbrfkr/dynamis/readme.md
bbrfkr Apr 13, 2022
0599461
Update keyboards/bbrfkr/dynamis/rules.mk
bbrfkr Apr 13, 2022
508f074
Update keyboards/bbrfkr/dynamis/keymaps/via/keymap.c
bbrfkr Apr 13, 2022
d986094
Update keyboards/bbrfkr/dynamis/keymaps/default/keymap.c
bbrfkr Apr 13, 2022
218683a
Update keyboards/bbrfkr/dynamis/keymaps/iso/keymap.c
bbrfkr Apr 13, 2022
5148383
Update keyboards/bbrfkr/dynamis/dynamis.c
bbrfkr Jun 20, 2022
dde1cf8
Update keyboards/bbrfkr/dynamis/dynamis.c
bbrfkr Jun 20, 2022
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
46 changes: 46 additions & 0 deletions keyboards/bbrfkr/dynamis/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/* Copyright 2022 bbrfkr
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#include "config_common.h"

/* USB Device descriptor parameter */
#define VENDOR_ID 0x6262
#define PRODUCT_ID 0x0001
#define DEVICE_VER 0x0001
#define MANUFACTURER bbrfkr
#define PRODUCT dynamis

/* key matrix */
#define MATRIX_ROWS 10
#define MATRIX_COLS 7
#define MATRIX_ROW_PINS { B6, B4, D6, D5, D1, C6, B5, D7, D4, D0 }
#define MATRIX_COL_PINS { F0, F1, F4, F5, F6, F7, C7 }

/* rgb num */
#define RGBLED_NUM 10
#define RGB_DI_PIN D3
#define RGBLIGHT_ANIMATIONS
drashna marked this conversation as resolved.
Show resolved Hide resolved

/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW

/* rotary encoder */
#define ENCODERS_PAD_A { B7 }
#define ENCODERS_PAD_B { E6 }

#define PMW3360_CS_PIN SPI_SS_PIN
drashna marked this conversation as resolved.
Show resolved Hide resolved
24 changes: 24 additions & 0 deletions keyboards/bbrfkr/dynamis/dynamis.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/* Copyright 2022 bbrfkr
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include "dynamis.h"
drashna marked this conversation as resolved.
Show resolved Hide resolved
#include "pointing_device.h"
extern const pointing_device_driver_t pointing_device_driver;
drashna marked this conversation as resolved.
Show resolved Hide resolved

report_mouse_t pointing_device_task_kb(report_mouse_t mouse_report) {
mouse_report.y = -mouse_report.y;
return mouse_report;
}
drashna marked this conversation as resolved.
Show resolved Hide resolved
59 changes: 59 additions & 0 deletions keyboards/bbrfkr/dynamis/dynamis.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/* Copyright 2022 bbrfkr
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#include "quantum.h"

#define LAYOUT_ALL_ANSI( \
bbrfkr marked this conversation as resolved.
Show resolved Hide resolved
C00, C01, C02, C03, C04, C05, C06, C56, C55, C54, C53, C52, C51, C50, C90, \
C10, C11, C12, C13, C14, C15, C16, C66, C65, C64, C63, C62, C61, C60, \
C20, C21, C22, C23, C24, C25, C26, C76, C75, C74, C73, C72, C70, \
C30, C31, C32, C33, C34, C35, C36, C86, C85, C84, C83, C82, C81, C80, C91, \
C40, C41, C42, C43, C44, C45, C46, C96, C95, C94, C93, C92 \
) \
{ \
{ C00, C01, C02, C03, C04, C05, C06 }, \
{ C10, C11, C12, C13, C14, C15, C16 }, \
{ C20, C21, C22, C23, C24, C25, C26 }, \
{ C30, C31, C32, C33, C34, C35, C36 }, \
{ C40, C41, C42, C43, C44, C45, C46 }, \
{ C50, C51, C52, C53, C54, C55, C56 }, \
{ C60, C61, C62, C63, C64, C65, C66 }, \
{ C70, KC_NO, C72, C73, C74, C75, C76 }, \
{ C80, C81, C82, C83, C84, C85, C86 }, \
{ C90, C91, C92, C93, C94, C95, C96 } \
}

#define LAYOUT_ALL_ISO( \
bbrfkr marked this conversation as resolved.
Show resolved Hide resolved
C00, C01, C02, C03, C04, C05, C06, C56, C55, C54, C53, C52, C51, C50, C90, \
C10, C11, C12, C13, C14, C15, C16, C66, C65, C64, C63, C62, C61, \
C20, C21, C22, C23, C24, C25, C26, C76, C75, C74, C73, C72, C71, C70, \
C30, C31, C32, C33, C34, C35, C36, C86, C85, C84, C83, C82, C81, C80, C91, \
C40, C41, C42, C43, C44, C45, C46, C96, C95, C94, C93, C92 \
) \
{ \
{ C00, C01, C02, C03, C04, C05, C06 }, \
{ C10, C11, C12, C13, C14, C15, C16 }, \
{ C20, C21, C22, C23, C24, C25, C26 }, \
{ C30, C31, C32, C33, C34, C35, C36 }, \
{ C40, C41, C42, C43, C44, C45, C46 }, \
{ C50, C51, C52, C53, C54, C55, C56 }, \
{ KC_NO, C61, C62, C63, C64, C65, C66 }, \
{ C70, C71, C72, C73, C74, C75, C76 }, \
{ C80, C81, C82, C83, C84, C85, C86 }, \
{ C90, C91, C92, C93, C94, C95, C96 } \
}
Loading