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 KBDCraft Adam64 Lego board #20503

Merged
merged 25 commits into from
Apr 23, 2023
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
fa6a786
Add KBDCraft Adam
adophoxia Apr 19, 2023
0335ebf
Update copyright headers
adophoxia Apr 19, 2023
1a302f1
Add `readme.md`
adophoxia Apr 19, 2023
14c91bc
Remove extra layers from `via` keymap
adophoxia Apr 19, 2023
91c4674
Remove auto-gen text in `mcuconf.h`
adophoxia Apr 19, 2023
4e8d459
Add `#ifdef RGB_MATRIX_ENABLE` block in `adam64.c`
adophoxia Apr 19, 2023
ceff45e
Remove unused feature rules, and `"val_steps": 50,`
adophoxia Apr 19, 2023
bfe35e9
Re-fix copyright header for `mcuocnf.h` to align with other files
adophoxia Apr 19, 2023
ee6b894
Update keyboards/kbdcraft/adam64/info.json
adophoxia Apr 20, 2023
e627ce9
Update keyboards/kbdcraft/adam64/info.json
adophoxia Apr 20, 2023
bb79854
Update keyboards/kbdcraft/adam64/info.json
adophoxia Apr 20, 2023
69b7906
Remove `TAP_CODE_DELAY` from `config.h`
adophoxia Apr 20, 2023
840ccd3
Merge branch 'master' of https://github.com/qmk/qmk_firmware into kbd…
adophoxia Apr 20, 2023
c996f38
Merge branch 'kbdcraft-adam-lego' of https://github.com/adophoxia/qmk…
adophoxia Apr 20, 2023
7f260b4
Update `LAYOUT` mentions to `64_ansi`
adophoxia Apr 20, 2023
e3c3d03
Update `Keyboard Maintainer`
adophoxia Apr 20, 2023
15144f6
Remove `"community_layouts":` in `info.json`
adophoxia Apr 21, 2023
7474c23
Merge branch 'master' of https://github.com/qmk/qmk_firmware into kbd…
adophoxia Apr 21, 2023
08b80e5
Merge branch 'master' of https://github.com/qmk/qmk_firmware into kbd…
adophoxia Apr 23, 2023
87f27f1
Update keyboards/kbdcraft/adam64/keymaps/default/keymap.c
adophoxia Apr 23, 2023
b265bfe
Merge branch 'master' of https://github.com/qmk/qmk_firmware into kbd…
adophoxia Apr 23, 2023
1219505
Merge branch 'kbdcraft-adam-lego' of https://github.com/adophoxia/qmk…
adophoxia Apr 23, 2023
9bc17a2
Move `NK_TOGG` key to where `N` is actually located at
adophoxia Apr 23, 2023
f7ab3ba
Remove `"force_nkro": true` from `info.json`
adophoxia Apr 23, 2023
b976cf4
Reformatting key-spacing
adophoxia Apr 23, 2023
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
98 changes: 98 additions & 0 deletions keyboards/kbdcraft/adam64/adam64.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
/*
* Copyright 2023 KBDCraft
* Copyright 2023 Adophoxia <[email protected]>
*
* 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 "quantum.h"

#ifdef RGB_MATRIX_ENABLE
const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
adophoxia marked this conversation as resolved.
Show resolved Hide resolved
/* Refer to IS31 manual for these locations
* driver
* | R location
* | | G location
* | | | B location
* | | | | */
{0, CS14_SW1, CS13_SW1, CS15_SW1},
{0, CS14_SW2, CS13_SW2, CS15_SW2},
{0, CS14_SW3, CS13_SW3, CS15_SW3},
{0, CS14_SW4, CS13_SW4, CS15_SW4},
{0, CS14_SW5, CS13_SW5, CS15_SW5},
{0, CS14_SW6, CS13_SW6, CS15_SW6},
{0, CS14_SW7, CS13_SW7, CS15_SW7},
{0, CS32_SW1, CS31_SW1, CS33_SW1},
{0, CS32_SW2, CS31_SW2, CS33_SW2},
{0, CS32_SW3, CS31_SW3, CS33_SW3},
{0, CS32_SW4, CS31_SW4, CS33_SW4},
{0, CS32_SW5, CS31_SW5, CS33_SW5},
{0, CS32_SW6, CS31_SW6, CS33_SW6},
{0, CS32_SW7, CS31_SW7, CS33_SW7},

{0, CS23_SW1, CS24_SW1, CS22_SW1},
{0, CS23_SW2, CS24_SW2, CS22_SW2},
{0, CS23_SW3, CS24_SW3, CS22_SW3},
{0, CS23_SW4, CS24_SW4, CS22_SW4},
{0, CS23_SW5, CS24_SW5, CS22_SW5},
{0, CS23_SW6, CS24_SW6, CS22_SW6},
{0, CS23_SW7, CS24_SW7, CS22_SW7},
{0, CS35_SW1, CS34_SW1, CS36_SW1},
{0, CS35_SW2, CS34_SW2, CS36_SW2},
{0, CS35_SW3, CS34_SW3, CS36_SW3},
{0, CS35_SW4, CS34_SW4, CS36_SW4},
{0, CS35_SW5, CS34_SW5, CS36_SW5},
{0, CS35_SW6, CS34_SW6, CS36_SW6},
{0, CS35_SW7, CS34_SW7, CS36_SW7},

{0, CS17_SW1, CS16_SW1, CS18_SW1},
{0, CS17_SW2, CS16_SW2, CS18_SW2},
{0, CS17_SW3, CS16_SW3, CS18_SW3},
{0, CS17_SW4, CS16_SW4, CS18_SW4},
{0, CS17_SW5, CS16_SW5, CS18_SW5},
{0, CS17_SW6, CS16_SW6, CS18_SW6},
{0, CS17_SW7, CS16_SW7, CS18_SW7},
{0, CS26_SW1, CS25_SW1, CS27_SW1},
{0, CS26_SW2, CS25_SW2, CS27_SW2},
{0, CS26_SW3, CS25_SW3, CS27_SW3},
{0, CS26_SW4, CS25_SW4, CS27_SW4},
{0, CS26_SW5, CS25_SW5, CS27_SW5},
{0, CS26_SW7, CS25_SW7, CS27_SW7},

{0, CS20_SW1, CS19_SW1, CS21_SW1},
{0, CS20_SW2, CS19_SW2, CS21_SW2},
{0, CS20_SW3, CS19_SW3, CS21_SW3},
{0, CS20_SW4, CS19_SW4, CS21_SW4},
{0, CS20_SW5, CS19_SW5, CS21_SW5},
{0, CS20_SW6, CS19_SW6, CS21_SW6},
{0, CS20_SW7, CS19_SW7, CS21_SW7},
{0, CS29_SW1, CS28_SW1, CS30_SW1},
{0, CS29_SW2, CS28_SW2, CS30_SW2},
{0, CS29_SW3, CS28_SW3, CS30_SW3},
{0, CS29_SW4, CS28_SW4, CS30_SW4},
{0, CS29_SW5, CS28_SW5, CS30_SW5},
{0, CS29_SW6, CS28_SW6, CS30_SW6},
{0, CS29_SW7, CS28_SW7, CS30_SW7},

{0, CS9_SW1, CS10_SW1, CS8_SW1},
{0, CS9_SW2, CS10_SW2, CS8_SW2},
{0, CS9_SW3, CS10_SW3, CS8_SW3},
{0, CS9_SW6, CS10_SW6, CS8_SW6},
{0, CS2_SW3, CS1_SW3, CS3_SW3},
{0, CS2_SW4, CS1_SW4, CS3_SW4},
{0, CS2_SW5, CS1_SW5, CS3_SW5},
{0, CS2_SW6, CS1_SW6, CS3_SW6},
{0, CS2_SW7, CS1_SW7, CS3_SW7}
};
#endif
36 changes: 36 additions & 0 deletions keyboards/kbdcraft/adam64/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* Copyright 2023 KBDCraft
* Copyright 2023 Adophoxia <[email protected]>
*
* 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

#define I2C1_SCL_PIN B8
#define I2C1_SDA_PIN B9
#define I2C1_CLOCK_SPEED 400000
#define I2C1_DUTY_CYCLE FAST_DUTY_CYCLE_16_9

#define DRIVER_COUNT 1
#define DRIVER_ADDR_1 0b0110000
#define RGB_MATRIX_LED_COUNT 64

#define TAP_CODE_DELAY 50
waffle87 marked this conversation as resolved.
Show resolved Hide resolved

/* turn off effects when suspended */
#define RGB_DISABLE_WHEN_USB_SUSPENDED

#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
#define RGB_MATRIX_KEYPRESSES
23 changes: 23 additions & 0 deletions keyboards/kbdcraft/adam64/halconf.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* Copyright 2023 KBDCraft
* Copyright 2023 Adophoxia <[email protected]>
*
* 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

#define HAL_USE_I2C TRUE

#include_next <halconf.h>
214 changes: 214 additions & 0 deletions keyboards/kbdcraft/adam64/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,214 @@
{

"keyboard_name": "Adam64",
"manufacturer": "KBDCRAFT",
"url": "https://kbdcraft.store/products/adam",
"maintainer": "KBDCraft",
"usb": {
"vid": "0x586A",
"pid": "0xB001",
"device_version": "0.0.1",
"force_nkro": true
adophoxia marked this conversation as resolved.
Show resolved Hide resolved
},
"processor": "STM32F401",
"bootloader": "stm32-dfu",
"diode_direction": "ROW2COL",
"matrix_pins": {
"rows": ["C8", "C9", "A8", "A10", "B14"],
"cols": ["B15", "C6", "C7", "A15", "B7", "C10", "C11", "C12", "D2", "B3", "B4", "B5", "A0", "A1"]
},
"features":{
"bootmagic": true,
"mousekey": true,
"extrakey": true,
"nkro": true,
"console": false,
"command": false,
"rgb_matrix": true
},
"rgb_matrix":{
"driver": "IS31FL3741",
"max_brightness": 150,
"animations":{
"alphas_mods": true,
"gradient_up_down": true,
"gradient_left_right": true,
"breathing": true,
"band_sat": true,
"band_val": true,
"band_pinwheel_sat": true,
"band_pinwheel_val": true,
"band_spiral_sat": true,
"band_spiral_val": true,
"cycle_all": true,
"cycle_left_right": true,
"cycle_up_down": true,
"rainbow_moving_chevron": true,
"cycle_out_in": true,
"cycle_out_in_dual": true,
"cycle_pinwheel": true,
"cycle_spiral": true,
"dual_beacon": true,
"rainbow_beacon": true,
"rainbow_pinwheels": true,
"raindrops": true,
"jellybean_raindrops": true,
"hue_breathing": true,
"hue_pendulum": true,
"hue_wave": true,
"pixel_rain": true,
"pixel_flow": true,
"pixel_fractal": true,
"typing_heatmap": true,
"digital_rain": true,
"splash": true,
"multisplash": true,
"solid_splash": true,
"solid_multisplash": true
},
"layout": [
{"flags": 4, "matrix": [0, 0], "x": 0, "y": 0 },
{"flags": 4, "matrix": [0, 1], "x": 16, "y": 0 },
{"flags": 4, "matrix": [0, 2], "x": 32, "y": 0 },
{"flags": 4, "matrix": [0, 3], "x": 48, "y": 0 },
{"flags": 4, "matrix": [0, 4], "x": 64, "y": 0 },
{"flags": 4, "matrix": [0, 5], "x": 80, "y": 0 },
{"flags": 4, "matrix": [0, 6], "x": 96, "y": 0 },
{"flags": 4, "matrix": [0, 7], "x": 112, "y": 0 },
{"flags": 4, "matrix": [0, 8], "x": 128, "y": 0 },
{"flags": 4, "matrix": [0, 9], "x": 144, "y": 0 },
{"flags": 4, "matrix": [0, 10], "x": 160, "y": 0 },
{"flags": 4, "matrix": [0, 11], "x": 176, "y": 0 },
{"flags": 4, "matrix": [0, 12], "x": 192, "y": 0 },
{"flags": 4, "matrix": [0, 13], "x": 208, "y": 0 },

{"flags": 4, "matrix": [1, 0], "x": 0, "y": 10 },
{"flags": 4, "matrix": [1, 1], "x": 16, "y": 10 },
{"flags": 4, "matrix": [1, 2], "x": 32, "y": 10 },
{"flags": 4, "matrix": [1, 3], "x": 48, "y": 10 },
{"flags": 4, "matrix": [1, 4], "x": 64, "y": 10 },
{"flags": 4, "matrix": [1, 5], "x": 80, "y": 10 },
{"flags": 4, "matrix": [1, 6], "x": 96, "y": 10 },
{"flags": 4, "matrix": [1, 7], "x": 112, "y": 10 },
{"flags": 4, "matrix": [1, 8], "x": 128, "y": 10 },
{"flags": 4, "matrix": [1, 9], "x": 144, "y": 10 },
{"flags": 4, "matrix": [1, 10], "x": 160, "y": 10 },
{"flags": 4, "matrix": [1, 11], "x": 176, "y": 10 },
{"flags": 4, "matrix": [1, 12], "x": 192, "y": 10 },
{"flags": 4, "matrix": [1, 13], "x": 208, "y": 10 },

{"flags": 4, "matrix": [2, 0], "x": 0, "y": 20 },
{"flags": 4, "matrix": [2, 1], "x": 16, "y": 20 },
{"flags": 4, "matrix": [2, 2], "x": 32, "y": 20 },
{"flags": 4, "matrix": [2, 3], "x": 48, "y": 20 },
{"flags": 4, "matrix": [2, 4], "x": 64, "y": 20 },
{"flags": 4, "matrix": [2, 5], "x": 80, "y": 20 },
{"flags": 4, "matrix": [2, 6], "x": 96, "y": 20 },
{"flags": 4, "matrix": [2, 7], "x": 112, "y": 20 },
{"flags": 4, "matrix": [2, 8], "x": 128, "y": 20 },
{"flags": 4, "matrix": [2, 9], "x": 144, "y": 20 },
{"flags": 4, "matrix": [2, 10], "x": 160, "y": 20 },
{"flags": 4, "matrix": [2, 11], "x": 176, "y": 20 },
{"flags": 4, "matrix": [2, 13], "x": 208, "y": 20 },

{"flags": 4, "matrix": [3, 0], "x": 0, "y": 30 },
{"flags": 4, "matrix": [3, 1], "x": 16, "y": 30 },
{"flags": 4, "matrix": [3, 2], "x": 32, "y": 30 },
{"flags": 4, "matrix": [3, 3], "x": 48, "y": 30 },
{"flags": 4, "matrix": [3, 4], "x": 64, "y": 30 },
{"flags": 4, "matrix": [3, 5], "x": 80, "y": 30 },
{"flags": 4, "matrix": [3, 6], "x": 96, "y": 30 },
{"flags": 4, "matrix": [3, 7], "x": 112, "y": 30 },
{"flags": 4, "matrix": [3, 8], "x": 128, "y": 30 },
{"flags": 4, "matrix": [3, 9], "x": 144, "y": 30 },
{"flags": 4, "matrix": [3, 10], "x": 160, "y": 30 },
{"flags": 4, "matrix": [3, 11], "x": 176, "y": 30 },
{"flags": 4, "matrix": [3, 12], "x": 192, "y": 30 },
{"flags": 4, "matrix": [3, 13], "x": 208, "y": 30 },

{"flags": 4, "matrix": [4, 0], "x": 0, "y": 40 },
{"flags": 4, "matrix": [4, 1], "x": 16, "y": 40 },
{"flags": 4, "matrix": [4, 2], "x": 32, "y": 40 },
{"flags": 4, "matrix": [4, 5], "x": 80, "y": 40 },
{"flags": 4, "matrix": [4, 9], "x": 144, "y": 40 },
{"flags": 4, "matrix": [4, 10], "x": 160, "y": 40 },
{"flags": 4, "matrix": [4, 11], "x": 176, "y": 40 },
{"flags": 4, "matrix": [4, 12], "x": 192, "y": 40 },
{"flags": 4, "matrix": [4, 13], "x": 208, "y": 40 }
]
},
"layouts": {
adophoxia marked this conversation as resolved.
Show resolved Hide resolved
"LAYOUT_60_ansi_arrow": {
"layout": [
{ "matrix": [0, 0], "x": 0, "y": 0 },
{ "matrix": [0, 1], "x": 1, "y": 0 },
{ "matrix": [0, 2], "x": 2, "y": 0 },
{ "matrix": [0, 3], "x": 3, "y": 0 },
{ "matrix": [0, 4], "x": 4, "y": 0 },
{ "matrix": [0, 5], "x": 5, "y": 0 },
{ "matrix": [0, 6], "x": 6, "y": 0 },
{ "matrix": [0, 7], "x": 7, "y": 0 },
{ "matrix": [0, 8], "x": 8, "y": 0 },
{ "matrix": [0, 9], "x": 9, "y": 0 },
{ "matrix": [0, 10], "x": 10, "y": 0 },
{ "matrix": [0, 11], "x": 11, "y": 0 },
{ "matrix": [0, 12], "x": 12, "y": 0 },
{ "matrix": [0, 13], "w": 2, "x": 13, "y": 0 },

{ "matrix": [1, 0], "x": 0, "y": 1 },
adophoxia marked this conversation as resolved.
Show resolved Hide resolved
{ "matrix": [1, 1], "x": 1.5, "y": 1 },
{ "matrix": [1, 2], "x": 2.5, "y": 1 },
{ "matrix": [1, 3], "x": 3.5, "y": 1 },
{ "matrix": [1, 4], "x": 4.5, "y": 1 },
{ "matrix": [1, 5], "x": 5.5, "y": 1 },
{ "matrix": [1, 6], "x": 6.5, "y": 1 },
{ "matrix": [1, 7], "x": 7.5, "y": 1 },
{ "matrix": [1, 8], "x": 8.5, "y": 1 },
{ "matrix": [1, 9], "x": 9.5, "y": 1 },
{ "matrix": [1, 10], "x": 10.5, "y": 1 },
{ "matrix": [1, 11], "x": 11.5, "y": 1 },
{ "matrix": [1, 12], "x": 12.5, "y": 1 },
{ "matrix": [1, 13], "x": 13.5, "y": 1 },
adophoxia marked this conversation as resolved.
Show resolved Hide resolved

{ "matrix": [2, 0], "w": 1.75, "x": 0, "y": 2 },
{ "matrix": [2, 1], "x": 1.75, "y": 2 },
{ "matrix": [2, 2], "x": 2.75, "y": 2 },
{ "matrix": [2, 3], "x": 3.75, "y": 2 },
{ "matrix": [2, 4], "x": 4.75, "y": 2 },
{ "matrix": [2, 5], "x": 5.75, "y": 2 },
{ "matrix": [2, 6], "x": 6.75, "y": 2 },
{ "matrix": [2, 7], "x": 7.75, "y": 2 },
{ "matrix": [2, 8], "x": 8.75, "y": 2 },
{ "matrix": [2, 9], "x": 9.75, "y": 2 },
{ "matrix": [2, 10], "x": 10.75, "y": 2 },
{ "matrix": [2, 11], "x": 11.75, "y": 2 },
{ "matrix": [2, 13], "w": 2.25, "x": 12.75, "y": 2 },

{ "matrix": [3, 0], "w": 2, "x": 0, "y": 3 },
{ "matrix": [3, 1], "x": 2, "y": 3 },
{ "matrix": [3, 2], "x": 3, "y": 3 },
{ "matrix": [3, 3], "x": 4, "y": 3 },
{ "matrix": [3, 4], "x": 5, "y": 3 },
{ "matrix": [3, 5], "x": 6, "y": 3 },
{ "matrix": [3, 6], "x": 7, "y": 3 },
{ "matrix": [3, 7], "x": 8, "y": 3 },
{ "matrix": [3, 8], "x": 9, "y": 3 },
{ "matrix": [3, 9], "x": 10, "y": 3 },
{ "matrix": [3, 10], "x": 11, "y": 3 },
{ "matrix": [3, 11], "x": 12, "y": 3 },
{ "matrix": [3, 12], "x": 13, "y": 3 },
{ "matrix": [3, 13], "x": 14, "y": 3 },

{ "matrix": [4, 0], "w": 1.25, "x": 0, "y": 4 },
{ "matrix": [4, 1], "w": 1.25, "x": 1.25, "y": 4 },
{ "matrix": [4, 2], "w": 1.25, "x": 2.5, "y": 4 },
{ "matrix": [4, 5], "w": 6.25, "x": 3.75, "y": 4 },
{ "matrix": [4, 9], "x": 10, "y": 4 },
{ "matrix": [4, 10], "x": 11, "y": 4 },
{ "matrix": [4, 11], "x": 12, "y": 4 },
{ "matrix": [4, 12], "x": 13, "y": 4 },
{ "matrix": [4, 13], "x": 14, "y": 4 }
]
}
}
}
Loading