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 keyboard Projectd/75/Projectd_75_ ansi #21628

Merged
merged 93 commits into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from 89 commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
d9588c0
Add files via upload
gskygithub Jun 7, 2022
8c7aff1
[keyboard]
gskygithub Jun 8, 2022
1dd4c87
[Keyboard]
gskygithub Jun 10, 2022
74e52d3
Delete flash_spi.c
gskygithub Jun 10, 2022
19b7d38
Delete flash_spi.h
gskygithub Jun 10, 2022
7f77d7a
Delete wb32_spi_master.c
gskygithub Jun 10, 2022
2c0fe84
Delete wb32_spi_master.h
gskygithub Jun 10, 2022
ecbff72
[Keyboard]
gskygithub Jun 10, 2022
9c423d1
Resolved requested changes
gskygithub Jun 15, 2022
318c463
Resolved requested changes
gskygithub Jun 15, 2022
dd42220
Changed rules.mk file accordingly.
gskygithub Jun 21, 2022
52a3301
Resolved changes accordingly.
gskygithub Jun 21, 2022
1c3f1e6
Update config.h file and rules.mk file
gskygithub Jul 1, 2022
8db03c1
Removed eeprom_flash.c file
gskygithub Jul 1, 2022
6b050ac
Update default/keymap.c file
gskygithub Jul 19, 2022
03ff34c
Delete keyboards/darkproject/kd83a_bfg_edition directory
gskygithub Sep 19, 2022
da0a8e5
Add keyboard
gskygithub Sep 19, 2022
733cf2c
Merge branch 'qmk:master' into master
gskygithub Sep 19, 2022
273d1da
Add keyboard
gskygithub Sep 19, 2022
4f3f6c9
Delete darkproject/kd83a_bfg_edition directory
gskygithub Sep 19, 2022
4773980
Resolved Changes
gskygithub Sep 26, 2022
ded388f
Merge branch 'qmk:master' into master
gskygithub Sep 30, 2022
e79a657
Resolved requested changes
gskygithub Sep 30, 2022
5fedd8a
Merge branch 'qmk:master' into master
gskygithub Nov 3, 2022
c89ae6b
keyboard
gskygithub Nov 3, 2022
45d803f
Add keyboard
gskygithub Nov 3, 2022
11e36a3
Delete keyboard
gskygithub Nov 3, 2022
1dce29e
Merge branch 'qmk:master' into master
gskygithub Nov 4, 2022
71157f0
Merge branch 'qmk:master' into master
gskygithub Nov 7, 2022
5d9043d
Add keyboard
gskygithub Nov 7, 2022
712df8c
Delete keyboards/darkproject/kd87a_bfg_edition directory
gskygithub Nov 7, 2022
f7d14f2
update keymap.c file
gskygithub Nov 7, 2022
49e07ef
Merge branch 'qmk:master' into master
gskygithub Nov 10, 2022
fbf66d7
update via/keymap.c, config.h and kd83a_bfg_edition.c files
gskygithub Nov 10, 2022
8b0e3a2
Delete keymap.c
gskygithub Nov 10, 2022
171acdf
Update via/keymap.c, config.h and kd83a_bfg_edition.c files
gskygithub Nov 10, 2022
0e82542
Merge branch 'qmk:master' into master
gskygithub Nov 22, 2022
9fcc0c5
update config.h file
gskygithub Nov 22, 2022
9665c9c
update keymap.c file
gskygithub Nov 22, 2022
947f2aa
Merge branch 'qmk:master' into master
gskygithub Dec 22, 2022
ca944bd
update keymap.c file
gskygithub Dec 22, 2022
91b85f5
update config.h
gskygithub Dec 22, 2022
de4ae9d
update kd83a_bfg_edition.c
gskygithub Dec 22, 2022
79e7bb4
Merge branch 'qmk:master' into master
gskygithub Jan 16, 2023
c2da280
Merge branch 'qmk:master' into master
gskygithub Jan 16, 2023
3b9f458
Resolved requested changes.
gskygithub Jan 16, 2023
ef2f4e0
Merge branch 'qmk:master' into master
gskygithub Jan 17, 2023
a495cc0
Merge branch 'qmk:master' into master
gskygithub Jan 17, 2023
8a643ea
Merge branch 'qmk:master' into master
gskygithub Feb 1, 2023
2d54c2a
Delete folder which was added accidentally.
gskygithub Feb 1, 2023
57300e8
Update keyboards/darkproject/kd83a_bfg_edition/config.h
gskygithub Feb 1, 2023
927ad23
Update keyboards/darkproject/kd83a_bfg_edition/keymaps/via/keymap.c
gskygithub Feb 1, 2023
fdbb969
Update keyboards/darkproject/kd83a_bfg_edition/keymaps/via/keymap.c
gskygithub Feb 1, 2023
177935c
Update keyboards/darkproject/kd83a_bfg_edition/keymaps/via/keymap.c
gskygithub Feb 1, 2023
0ccdcfb
Update keyboards/darkproject/kd83a_bfg_edition/keymaps/via/keymap.c
gskygithub Feb 1, 2023
5721c5f
Update keyboards/darkproject/kd83a_bfg_edition/info.json
gskygithub Feb 1, 2023
68e72f3
Update keyboards/darkproject/kd83a_bfg_edition/rules.mk
gskygithub Feb 1, 2023
9cf9f44
Update keyboards/darkproject/kd83a_bfg_edition/info.json
gskygithub Feb 1, 2023
01b9124
update info.json file
gskygithub Feb 1, 2023
504f1fc
Merge branch 'qmk:master' into master
gskygithub Feb 8, 2023
d6ab5e2
update config.h file
gskygithub Feb 8, 2023
86a5632
Merge branch 'qmk:master' into master
gskygithub Feb 14, 2023
219392e
Updated requested changes
gskygithub Feb 14, 2023
3c8d93e
update readme.md
gskygithub Apr 26, 2023
a121955
Merge branch 'qmk:master' into master
gskygithub Apr 26, 2023
6c6fe56
Merge branch 'qmk:master' into master
gskygithub Jun 12, 2023
bd3cc26
Resolved requested changes
gskygithub Jun 12, 2023
826a18d
Merge branch 'qmk:master' into master
gskygithub Jun 27, 2023
e0ad10a
Update info.json file
gskygithub Jun 27, 2023
91852f3
Merge branch 'qmk:master' into master
gskygithub Jul 13, 2023
d4ba14e
Merge branch 'qmk:master' into master
gskygithub Jul 14, 2023
d4d0ade
Merge branch 'qmk:master' into master
gskygithub Jul 18, 2023
58b568e
Merge branch 'qmk:master' into master
gskygithub Jul 20, 2023
d2188c1
Merge branch 'qmk:master' into master
gskygithub Jul 21, 2023
104faac
Merge branch 'qmk:master' into master
gskygithub Jul 24, 2023
43daae8
Delete kd83a_bfg_edition.h
gskygithub Jul 24, 2023
879c2b9
Merge branch 'qmk:master' into master
gskygithub Jul 28, 2023
f6fcf7c
Add keyboard
gskygithub Jul 28, 2023
5aedbd3
Delete keyboards/darkproject/kd83a_bfg_edition directory
gskygithub Jul 28, 2023
98af8d5
Merge branch 'qmk:master' into projectd_75_ansi
gskygithub Aug 4, 2023
92a4dce
Resolved requested changes
gskygithub Aug 4, 2023
2c1784b
Merge branch 'qmk:master' into projectd_75_ansi
gskygithub Sep 8, 2023
b719d6e
Resolved requested changes
gskygithub Sep 8, 2023
6d31d87
Delete keyboards/projectd/75/projectd_75_ansi directory
gskygithub Sep 8, 2023
63714eb
Merge branch 'qmk:master' into projectd_75_ansi
gskygithub Sep 11, 2023
cf7c863
update info.json
gskygithub Sep 11, 2023
f9acc34
Merge branch 'qmk:master' into projectd_75_ansi
gskygithub Sep 14, 2023
9a0085a
Change file name
gskygithub Sep 14, 2023
472e562
Delete keyboards/projectd/75/ansi/projectd_75_ansi.c
gskygithub Sep 14, 2023
1a6bb6e
Merge branch 'qmk:master' into projectd_75_ansi
gskygithub Sep 23, 2023
715ac7c
Resolved requested changes
gskygithub Sep 23, 2023
419ad34
Merge branch 'qmk:master' into projectd_75_ansi
gskygithub Oct 2, 2023
00749b9
Resolved requested changes
gskygithub Oct 2, 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
162 changes: 162 additions & 0 deletions keyboards/projectd/75/ansi/ansi.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
/* Copyright 2023 GSKY <[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 aw_led g_aw_leds[RGB_MATRIX_LED_COUNT] = {
/* Refer to IS31 manual for these locations
* driver
* | R location
* | | G location
* | | | B location
* | | | | */
//{0, CS1_SW4, CS2_SW4, CS3_SW4}, // 0, k00, Esc

{0, CS1_SW1, CS2_SW1, CS3_SW1}, // Esc
{0, CS1_SW2, CS2_SW2, CS3_SW2}, // F1
{0, CS1_SW3, CS2_SW3, CS3_SW3}, // F2
{0, CS1_SW4, CS2_SW4, CS3_SW4}, // F3
{0, CS1_SW5, CS2_SW5, CS3_SW5}, // F4
{0, CS1_SW6, CS2_SW6, CS3_SW6}, // F5
{0, CS1_SW7, CS2_SW7, CS3_SW7}, // F6
{0, CS1_SW8, CS2_SW8, CS3_SW8}, // F7
{0, CS1_SW9, CS2_SW9, CS3_SW9}, // F8
{0, CS1_SW10, CS2_SW10, CS3_SW10}, // F9
{0, CS1_SW11, CS2_SW11, CS3_SW11}, // F10
{0, CS1_SW12, CS2_SW12, CS3_SW12}, // F11
{1, CS1_SW1, CS2_SW1, CS3_SW1}, // F12
{1, CS4_SW1, CS5_SW1, CS6_SW1}, // Printscreen
{1, CS4_SW3, CS5_SW3, CS6_SW3}, // Delete

{0, CS4_SW1, CS5_SW1, CS6_SW1}, // `
{0, CS4_SW2, CS5_SW2, CS6_SW2}, // 1
{0, CS4_SW3, CS5_SW3, CS6_SW3}, // 2
{0, CS4_SW4, CS5_SW4, CS6_SW4}, // 3
{0, CS4_SW5, CS5_SW5, CS6_SW5}, // 4
{0, CS4_SW6, CS5_SW6, CS6_SW6}, // 5
{0, CS4_SW7, CS5_SW7, CS6_SW7}, // 6
{0, CS4_SW8, CS5_SW8, CS6_SW8}, // 7
{0, CS4_SW9, CS5_SW9, CS6_SW9}, // 8
{0, CS4_SW10, CS5_SW10, CS6_SW10}, // 9
{0, CS4_SW11, CS5_SW11, CS6_SW11}, // 0
{0, CS4_SW12, CS5_SW12, CS6_SW12}, // -
{1, CS1_SW5, CS2_SW5, CS3_SW5}, // =
{1, CS1_SW7, CS2_SW7, CS3_SW7}, // Backspace
{1, CS4_SW5, CS5_SW5, CS6_SW5}, // Home

{0, CS7_SW1, CS8_SW1, CS9_SW1}, // Tab
{0, CS7_SW2, CS8_SW2, CS9_SW2}, // Q
{0, CS7_SW3, CS8_SW3, CS9_SW3}, // W
{0, CS7_SW4, CS8_SW4, CS9_SW4}, // E
{0, CS7_SW5, CS8_SW5, CS9_SW5}, // R
{0, CS7_SW6, CS8_SW6, CS9_SW6}, // T
{0, CS7_SW7, CS8_SW7, CS9_SW7}, // Y
{0, CS7_SW8, CS8_SW8, CS9_SW8}, // U
{0, CS7_SW9, CS8_SW9, CS9_SW9}, // I
{0, CS7_SW10, CS8_SW10, CS9_SW10}, // O
{0, CS7_SW11, CS8_SW11, CS9_SW11}, // P
{0, CS7_SW12, CS8_SW12, CS9_SW12}, // [
{1, CS1_SW8, CS2_SW8, CS3_SW8}, // ]
{1, CS1_SW9, CS2_SW9, CS3_SW9}, // "\\"
{1, CS4_SW4, CS5_SW4, CS6_SW4}, // PGUP

{0, CS10_SW1, CS11_SW1, CS12_SW1}, // Caps Lock
{0, CS10_SW2, CS11_SW2, CS12_SW2}, // A
{0, CS10_SW3, CS11_SW3, CS12_SW3}, // S
{0, CS10_SW4, CS11_SW4, CS12_SW4}, // D
{0, CS10_SW5, CS11_SW5, CS12_SW5}, // F
{0, CS10_SW6, CS11_SW6, CS12_SW6}, // G
{0, CS10_SW7, CS11_SW7, CS12_SW7}, // H
{0, CS10_SW8, CS11_SW8, CS12_SW8}, // J
{0, CS10_SW9, CS11_SW9, CS12_SW9}, // K
{0, CS10_SW10, CS11_SW10, CS12_SW10}, // L
{0, CS10_SW11, CS11_SW11, CS12_SW11}, // ;
{0, CS10_SW12, CS11_SW12, CS12_SW12}, // '
{1, CS1_SW11, CS2_SW11, CS3_SW11}, // Enter
{1, CS4_SW7, CS5_SW7, CS6_SW7}, // PGDN

{0, CS13_SW1, CS14_SW1, CS15_SW1}, // L Shift
{0, CS13_SW2, CS14_SW2, CS15_SW2}, // Z
{0, CS13_SW3, CS14_SW3, CS15_SW3}, // X
{0, CS13_SW4, CS14_SW4, CS15_SW4}, // C
{0, CS13_SW5, CS14_SW5, CS15_SW5}, // V
{0, CS13_SW6, CS14_SW6, CS15_SW6}, // B
{0, CS13_SW7, CS14_SW7, CS15_SW7}, // N
{0, CS13_SW8, CS14_SW8, CS15_SW8}, // M
{0, CS13_SW9, CS14_SW9, CS15_SW9}, // ,
{0, CS13_SW10, CS14_SW10, CS15_SW10}, // .
{0, CS13_SW11, CS14_SW11, CS15_SW11}, // "/""
{1, CS4_SW8, CS5_SW8, CS6_SW8}, // R Shift
{1, CS4_SW9, CS5_SW9, CS6_SW9}, // Up
{1, CS4_SW6, CS5_SW6, CS6_SW6}, // END

{0, CS16_SW1, CS17_SW1, CS18_SW1}, // L Ctrl
{0, CS16_SW2, CS17_SW2, CS18_SW2}, // L Win
{0, CS16_SW3, CS17_SW3, CS18_SW3}, // L Alt
{0, CS16_SW4, CS17_SW4, CS18_SW4}, // LED1
{0, CS16_SW5, CS17_SW5, CS18_SW5}, // LED2
{0, CS16_SW6, CS17_SW6, CS18_SW6}, // Space
{0, CS16_SW7, CS17_SW7, CS18_SW7}, // LED3
{0, CS16_SW8, CS17_SW8, CS18_SW8}, // LED4
{0, CS16_SW9, CS17_SW9, CS18_SW9}, // R Alt
{0, CS16_SW10, CS17_SW10, CS18_SW10}, // FN
{0, CS16_SW12, CS17_SW12, CS18_SW12}, // R Ctrl

{1, CS4_SW10, CS5_SW10, CS6_SW10}, // Left
{1, CS4_SW11, CS5_SW11, CS6_SW11}, // Down
{1, CS10_SW5, CS11_SW5, CS12_SW5}, // Right
};

#endif

#ifdef EEPROM_ENABLE

#include "spi_master.h"

void spi_init(void) {
static bool is_initialised = false;
if (!is_initialised) {
is_initialised = true;

// Try releasing special pins for a short time
setPinInput(SPI_SCK_PIN);
setPinInput(SPI_MOSI_PIN);
setPinInput(SPI_MISO_PIN);

chThdSleepMilliseconds(10);

palSetPadMode(PAL_PORT(SPI_SCK_PIN), PAL_PAD(SPI_SCK_PIN), PAL_MODE_ALTERNATE(SPI_SCK_PAL_MODE) | PAL_OUTPUT_TYPE_PUSHPULL | PAL_OUTPUT_SPEED_HIGHEST | PAL_WB32_CURRENT_LEVEL3);
palSetPadMode(PAL_PORT(SPI_MOSI_PIN), PAL_PAD(SPI_MOSI_PIN), PAL_MODE_ALTERNATE(SPI_MOSI_PAL_MODE) | PAL_OUTPUT_TYPE_PUSHPULL | PAL_OUTPUT_SPEED_HIGHEST);
palSetPadMode(PAL_PORT(SPI_MISO_PIN), PAL_PAD(SPI_MISO_PIN), PAL_MODE_ALTERNATE(SPI_MISO_PAL_MODE) | PAL_OUTPUT_TYPE_PUSHPULL | PAL_OUTPUT_SPEED_HIGHEST);
}
}

#endif

bool rgb_matrix_indicators_advanced_kb(uint8_t led_min, uint8_t led_max) {

if (!rgb_matrix_indicators_advanced_user(led_min, led_max)) {
return false;
}
if (host_keyboard_led_state().caps_lock) {
RGB_MATRIX_INDICATOR_SET_COLOR(45, 255, 255, 255);
}

return false;

}
44 changes: 44 additions & 0 deletions keyboards/projectd/75/ansi/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/* Copyright 2023 GSKY <[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

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE

#define RGB_DISABLE_WHEN_USB_SUSPENDED

/* External spi flash */
#define EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN B14
#define WEAR_LEVELING_BACKING_SIZE (4 * 1024)

/* SPI Config for LED Driver */
#define SPI_DRIVER SPIDQ
#define SPI_SCK_PIN A5
#define SPI_MOSI_PIN A7
#define SPI_MISO_PIN A6

#define DRIVER_1_CS A15
#define DRIVER_2_CS B15
#define DRIVER_1_EN C13
#define DRIVER_2_EN C13

#define DRIVER_COUNT 2
#define DRIVER_1_LED_TOTAL 70
#define DRIVER_2_LED_TOTAL 17
#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
23 changes: 23 additions & 0 deletions keyboards/projectd/75/ansi/halconf.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* Copyright (C) 2023 Westberry Technology (ChangZhou) Corp., Ltd
*
* 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_SPI TRUE
#define SPI_USE_WAIT TRUE
#define SPI_SELECT_MODE SPI_SELECT_MODE_PAD

#include_next <halconf.h>
Loading