Browse Source

Added the split 3x5_3 layout.

pull/14484/head
Batuhan Başerdem 2 years ago
parent
commit
59040015e4
4 changed files with 191 additions and 0 deletions
  1. +18
    -0
      layouts/community/split_3x5_3/bbaserdem/README.md
  2. +32
    -0
      layouts/community/split_3x5_3/bbaserdem/config.h
  3. +123
    -0
      layouts/community/split_3x5_3/bbaserdem/keymap.c
  4. +18
    -0
      layouts/community/split_3x5_3/bbaserdem/rules.mk

+ 18
- 0
layouts/community/split_3x5_3/bbaserdem/README.md View File

@ -0,0 +1,18 @@
This file contains my [split 3x10](../../../default/split_3x10) board layouts
Check out the [user readme](../../../../users/bbaserdem/README.md) for more info.
# Crkbd
Using a no 6th column crkbd (rev 2.1 choc) as a mobile keyboard.
This version uses Elite-C and ProMicro as controllers; hence no RGB and OLED.
## Build
Build command: `CFLAGS="-Wno-error=deprecated" TBF`
## Todo
* Switch PCB to the Proton-C compatible hotswap switch.
* Or use cable rerouting to make the pcb Proton-C compatible.
* Or find a way to use both OLED and LEDs.

+ 32
- 0
layouts/community/split_3x5_3/bbaserdem/config.h View File

@ -0,0 +1,32 @@
/*
Copyright 2019 Batuhan Başerdem <baserdem.batuhan@gmail.com> @bbaserdem
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
// Split definition; use the following to flash;
// pro-micro: avrdude-split-left/right
// elite-c: dfu-split-left/right
#define EE_HANDS
#ifdef KEYBOARD_crkbd_rev1
// Corne overrides
#include "../../../../keyboards/crkbd/rev1/config.h"
#ifdef RGBLED_NUM
#undef RGBLED_NUM
#endif
#ifdef DRIVER_LED_TOTAL
#undef DRIVER_LED_TOTAL
#endif
#define RGBLED_NUM 48
#define DRIVER_LED_TOTAL RGBLED_NUM
#endif

+ 123
- 0
layouts/community/split_3x5_3/bbaserdem/keymap.c View File

@ -0,0 +1,123 @@
/*
Copyright 2019 Batuhan Başerdem <baserdem.batuhan@gmail.com> @bbaserdem
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 QMK_KEYBOARD_H
#include "bbaserdem.h"
/* D layout
*        
* ' "│, <│. >│ P │ Y │        │ F │ G │ C │ R │ L │
*        
*  A  O  E  U  I          D  H  T  N  S 
*        
* ; : Q  J  K  X          B  M  W  V Z
*  
*            DelTabSpc EntEscBsp
*             
*/
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_BASE] = LAYOUT_split_3x5_3_wrapper(
_BL1_5_,_BR1_5_,
_BL2_5_,_BR2_5_,
_BL3_5_,_BR3_5_,
_BL4_3_,_BR4_3_
),
[_CHAR] = LAYOUT_split_3x5_3_wrapper(
_CL1_5_,_CR1_5_,
_CL2_5_,_CR2_5_,
_CL3_5_,_CR3_5_,
_CL4_3_,_CR4_3_
),
[_GAME] = LAYOUT_split_3x5_3_wrapper(
_GA1_5_,___5___,
_GA2_5_,___5___,
_GA3_5_,___5___,
_GA4_3_,___3___
),
[_MEDI] = LAYOUT_split_3x5_3_wrapper(
___5___,_ME1_5_,
___5___,_ME2_5_,
___5___,_ME3_5_,
___3___,_ME4_3_
),
[_NAVI] = LAYOUT_split_3x5_3_wrapper(
___5___,_NA1_5_,
___5___,_NA2_5_,
___5___,_NA3_5_,
___3___,_NA4_3_
),
[_SYMB] = LAYOUT_split_3x5_3_wrapper(
___5___,_SY1_5_,
___5___,_SY2_5_,
___5___,_SY3_5_,
___3___,_SY4_3_
),
[_NUMB] = LAYOUT_split_3x5_3_wrapper(
_NU1_5_,___5___,
_NU2_5_,___5___,
_NU3_5_,___5___,
_NU4_3_,___3___
),
[_FUNC] = LAYOUT_split_3x5_3_wrapper(
_FU1_5_,___5___,
_FU2_5_,___5___,
_FU3_5_,___5___,
_FU4_3_,___3___
),
[_MOUS] = LAYOUT_split_3x5_3_wrapper(
_MO1_5_,___5___,
_MO2_5_,___5___,
_MO3_5_,___5___,
_MO4_3_,___3___
),
[_MUSI] = LAYOUT_split_3x5_3_wrapper(
_MU_10_,
_MU_10_,
_MU_10_,
_MUL_3_,_MUR_3_
)
};
// RGB Matrix configuration
#ifdef RGB_MATRIX_ENABLE
// crkbd
#if defined(KEYBOARD_crkbd_rev1)
/* This is left-right for crkbd indicator light
*      
* 2318171009      3334414247
* 020100      242526
* 2219161108     3235404346
* 030405      292827
* 2120151207     3136394445
*
*          141306303738
*          
*/
// Sided color-setting
void keylight_set_left(uint8_t red, uint8_t green, uint8_t blue) {
for (int i = 0; i < 24; i++) {
rgb_matrix_set_color(i, red, green, blue);
}
}
void keylight_set_right(uint8_t red, uint8_t green, uint8_t blue) {
for (int i = 24; i < 48; i++) {
rgb_matrix_set_color(i, red, green, blue);
}
}
// End of differentiations
#endif
// End of code for the RGB_MATRIX setup
#endif

+ 18
- 0
layouts/community/split_3x5_3/bbaserdem/rules.mk View File

@ -0,0 +1,18 @@
# Copyright 2019 Batuhan Başerdem <baserdem.batuhan@gmail.com> @bbaserdem
# 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/>.
# Corne keyboard
ifneq (,$(findstring crkbd/rev1,$(KEYBOARD)))
RGBLIGHT_ENABLE = no
RGB_MATRIX_ENABLE = yes
OLED_DRIVER_ENABLE = no
endif

Loading…
Cancel
Save