Skip to content

Commit fe9c1d8

Browse files
authoredSep 24, 2022
[Keyboard] add CherryB CB65 (qmk#18356)
1 parent 6cf4af9 commit fe9c1d8

File tree

10 files changed

+333
-0
lines changed

10 files changed

+333
-0
lines changed
 

‎keyboards/cherrybstudio/cb65/cb65.c

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
This program is free software: you can redistribute it and/or modify
3+
it under the terms of the GNU General Public License as published by
4+
the Free Software Foundation, either version 2 of the License, or
5+
(at your option) any later version.
6+
This program is distributed in the hope that it will be useful,
7+
but WITHOUT ANY WARRANTY; without even the implied warranty of
8+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9+
GNU General Public License for more details.
10+
You should have received a copy of the GNU General Public License
11+
along with this program. If not, see <http://www.gnu.org/licenses/>.
12+
*/
13+
14+
#include "cb65.h"

‎keyboards/cherrybstudio/cb65/cb65.h

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
This program is free software: you can redistribute it and/or modify
3+
it under the terms of the GNU General Public License as published by
4+
the Free Software Foundation, either version 2 of the License, or
5+
(at your option) any later version.
6+
This program is distributed in the hope that it will be useful,
7+
but WITHOUT ANY WARRANTY; without even the implied warranty of
8+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9+
GNU General Public License for more details.
10+
You should have received a copy of the GNU General Public License
11+
along with this program. If not, see <http://www.gnu.org/licenses/>.
12+
*/
13+
14+
#pragma once
15+
16+
#include "quantum.h"
17+
18+
#define LAYOUT_all( \
19+
K000, K001, K002, K003, K004, K005, K006, K007, K100, K101, K102, K103, K104, K105, K106, K107, \
20+
K200, K201, K202, K203, K204, K205, K206, K207, K300, K301, K302, K303, K304, K305, K306, \
21+
K307, K400, K401, K402, K403, K404, K405, K406, K407, K500, K501, K502, K503, K504, K505, \
22+
K506, K507, K600, K601, K602, K603, K604, K605, K606, K607, K700, K701, K702, K703, K704, \
23+
K705, K706, K707, K800, K801, K802, K803, K804, K805 \
24+
) { \
25+
{ K000, K001, K002, K003, K004, K005, K006, K007 }, \
26+
{ K100, K101, K102, K103, K104, K105, K106, K107 }, \
27+
{ K200, K201, K202, K203, K204, K205, K206, K207 }, \
28+
{ K300, K301, K302, K303, K304, K305, K306, K307 }, \
29+
{ K400, K401, K402, K403, K404, K405, K406, K407 }, \
30+
{ K500, K501, K502, K503, K504, K505, K506, K507 }, \
31+
{ K600, K601, K602, K603, K604, K605, K606, K607 }, \
32+
{ K700, K701, K702, K703, K704, K705, K706, K707 }, \
33+
{ K800, K801, K802, K803, K804, K805 } \
34+
}
35+

‎keyboards/cherrybstudio/cb65/config.h

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
/*
2+
This program is free software: you can redistribute it and/or modify
3+
it under the terms of the GNU General Public License as published by
4+
the Free Software Foundation, either version 2 of the License, or
5+
(at your option) any later version.
6+
This program is distributed in the hope that it will be useful,
7+
but WITHOUT ANY WARRANTY; without even the implied warranty of
8+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9+
GNU General Public License for more details.
10+
You should have received a copy of the GNU General Public License
11+
along with this program. If not, see <http://www.gnu.org/licenses/>.
12+
*/
13+
14+
#pragma once
15+
16+
#include "config_common.h"
17+
18+
/* key matrix size */
19+
#define MATRIX_ROWS 9
20+
#define MATRIX_COLS 8
21+
22+
/*
23+
* Keyboard Matrix Assignments
24+
*
25+
* Change this to how you wired your keyboard
26+
* COLS: AVR pins used for columns, left to right
27+
* ROWS: AVR pins used for rows, top to bottom
28+
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
29+
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
30+
*
31+
* 0 1 2 3 4 5 6 7 8
32+
*/
33+
#define MATRIX_ROW_PINS { B0, B1, B2, B3, B7, D0, D1, D2, D3 }
34+
#define MATRIX_COL_PINS { D5, D4, D6, D7, F7, B5, B6, C6 }
35+
36+
/* Encoder configuration */
37+
//#define ENCODERS_PAD_A { F5 }
38+
//#define ENCODERS_PAD_B { F6 }
39+
//#define ENCODER_RESOLUTION 4
40+
41+
/* COL2ROW, ROW2COL*/
42+
#define DIODE_DIRECTION COL2ROW
43+
44+
#define LED_CAPS_LOCK_PIN F1
45+
#define LED_SCROLL_LOCK_PIN F4
46+
#define LED_PIN_ON_STATE 0
47+
48+
/* Set 0 if debouncing isn't needed */
49+
#define DEBOUNCE 5
50+
51+
/* RGB Lighting */
52+
#define RGB_DI_PIN F0
53+
#ifdef RGB_DI_PIN
54+
#define RGBLIGHT_EFFECT_BREATHING
55+
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
56+
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
57+
#define RGBLIGHT_EFFECT_SNAKE
58+
#define RGBLIGHT_EFFECT_KNIGHT
59+
#define RGBLIGHT_EFFECT_CHRISTMAS
60+
#define RGBLIGHT_EFFECT_STATIC_GRADIENT
61+
#define RGBLIGHT_EFFECT_RGB_TEST
62+
#define RGBLIGHT_EFFECT_ALTERNATING
63+
#define RGBLIGHT_EFFECT_TWINKLE
64+
#define RGBLED_NUM 24
65+
#define RGBLIGHT_HUE_STEP 8
66+
#define RGBLIGHT_SAT_STEP 8
67+
#define RGBLIGHT_VAL_STEP 8
68+
#endif
+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"keyboard_name": "CherryB CB65",
3+
"manufacturer": "CherryB Works",
4+
"url": "https://discord.gg/qVwv3gcq83",
5+
"maintainer": "lunaticwhat",
6+
"usb": {
7+
"vid": "0x4342",
8+
"pid": "0x6565",
9+
"device_version": "0.0.1"
10+
},
11+
"layouts": {
12+
"LAYOUT_all": {
13+
"layout": [
14+
{"x":0, "y":0},
15+
{"x":1, "y":0},
16+
{"x":2, "y":0},
17+
{"x":3, "y":0},
18+
{"x":4, "y":0},
19+
{"x":5, "y":0},
20+
{"x":6, "y":0},
21+
{"x":7, "y":0},
22+
{"x":8, "y":0},
23+
{"x":9, "y":0},
24+
{"x":10, "y":0},
25+
{"x":11, "y":0},
26+
{"x":12, "y":0},
27+
{"x":13, "y":0},
28+
{"x":14, "y":0},
29+
{"x":15, "y":0},
30+
{"x":0, "y":1, "w":1.5},
31+
{"x":1.5, "y":1},
32+
{"x":2.5, "y":1},
33+
{"x":3.5, "y":1},
34+
{"x":4.5, "y":1},
35+
{"x":5.5, "y":1},
36+
{"x":6.5, "y":1},
37+
{"x":7.5, "y":1},
38+
{"x":8.5, "y":1},
39+
{"x":9.5, "y":1},
40+
{"x":10.5, "y":1},
41+
{"x":11.5, "y":1},
42+
{"x":12.5, "y":1},
43+
{"x":13.5, "y":1, "w":1.5},
44+
{"x":15, "y":1},
45+
{"x":0, "y":2, "w":1.75},
46+
{"x":1.75, "y":2},
47+
{"x":2.75, "y":2},
48+
{"x":3.75, "y":2},
49+
{"x":4.75, "y":2},
50+
{"x":5.75, "y":2},
51+
{"x":6.75, "y":2},
52+
{"x":7.75, "y":2},
53+
{"x":8.75, "y":2},
54+
{"x":9.75, "y":2},
55+
{"x":10.75, "y":2},
56+
{"x":11.75, "y":2},
57+
{"x":12.75, "y":2},
58+
{"x":13.75, "y":2, "w":1.25},
59+
{"x":15, "y":2},
60+
{"x":0, "y":3, "w":1.25},
61+
{"x":1.25, "y":3},
62+
{"x":2.25, "y":3},
63+
{"x":3.25, "y":3},
64+
{"x":4.25, "y":3},
65+
{"x":5.25, "y":3},
66+
{"x":6.25, "y":3},
67+
{"x":7.25, "y":3},
68+
{"x":8.25, "y":3},
69+
{"x":9.25, "y":3},
70+
{"x":10.25, "y":3},
71+
{"x":11.25, "y":3},
72+
{"x":12.25, "y":3, "w":1.75},
73+
{"x":14, "y":3},
74+
{"x":15, "y":3},
75+
{"x":0, "y":4, "w":1.25},
76+
{"x":1.25, "y":4, "w":1.25},
77+
{"x":2.5, "y":4, "w":1.25},
78+
{"x":3.75, "y":4, "w":6.25},
79+
{"x":10, "y":4, "w":1.25},
80+
{"x":11.25, "y":4, "w":1.25},
81+
{"x":13, "y":4},
82+
{"x":14, "y":4},
83+
{"x":15, "y":4}
84+
]
85+
}
86+
}
87+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
This program is free software: you can redistribute it and/or modify
3+
it under the terms of the GNU General Public License as published by
4+
the Free Software Foundation, either version 2 of the License, or
5+
(at your option) any later version.
6+
This program is distributed in the hope that it will be useful,
7+
but WITHOUT ANY WARRANTY; without even the implied warranty of
8+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9+
GNU General Public License for more details.
10+
You should have received a copy of the GNU General Public License
11+
along with this program. If not, see <http://www.gnu.org/licenses/>.
12+
*/
13+
14+
#include QMK_KEYBOARD_H
15+
16+
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
17+
[0] = LAYOUT_all(
18+
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_BSPC, QK_BOOT,
19+
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL,
20+
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, KC_HOME,
21+
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END,
22+
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT
23+
),
24+
[1] = LAYOUT_all(
25+
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_TRNS, KC_TRNS, KC_TRNS,
26+
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_DEL,
27+
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PGUP,
28+
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLU, KC_PGDN,
29+
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPRV, KC_VOLD, KC_MNXT
30+
),
31+
32+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# The default keymap for CB65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/*
2+
Copyright 2020 Tybera
3+
This program is free software: you can redistribute it and/or modify
4+
it under the terms of the GNU General Public License as published by
5+
the Free Software Foundation, either version 2 of the License, or
6+
(at your option) any later version.
7+
This program is distributed in the hope that it will be useful,
8+
but WITHOUT ANY WARRANTY; without even the implied warranty of
9+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10+
GNU General Public License for more details.
11+
You should have received a copy of the GNU General Public License
12+
along with this program. If not, see <http://www.gnu.org/licenses/>.
13+
*/
14+
15+
#include QMK_KEYBOARD_H
16+
17+
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
18+
[0] = LAYOUT_all(
19+
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_BSPC, QK_BOOT,
20+
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL,
21+
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, KC_HOME,
22+
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END,
23+
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT
24+
),
25+
[1] = LAYOUT_all(
26+
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_TRNS, KC_TRNS, KC_TRNS,
27+
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_DEL,
28+
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PGUP,
29+
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLU, KC_PGDN,
30+
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPRV, KC_VOLD, KC_MNXT
31+
),
32+
[2] = LAYOUT_all(
33+
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
34+
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
35+
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
36+
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
37+
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
38+
),
39+
[3] = LAYOUT_all(
40+
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
41+
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
42+
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
43+
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
44+
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
45+
),
46+
};
47+
48+
49+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
LTO_ENABLE = yes
2+
VIA_ENABLE = yes
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# CherryB Works CB65
2+
3+
![CB65](https://i.imgur.com/3qopFIWh.jpg)
4+
5+
An universal 65 percents PCB for many keyboard with USB daughterboard
6+
Board has a rotary encoder but disabled for VIA support.
7+
8+
* Keyboard Maintainer: lunaticwhat
9+
* Hardware Supported: CB65, atmega32u4
10+
* Hardware Availability: [CherryB Studio](https://discord.gg/qVwv3gcq83)
11+
12+
Make example for this keyboard (after setting up your build environment):
13+
14+
make cherrybstudio/cb65:default
15+
16+
Flashing example for this keyboard:
17+
18+
make cherrybstudio/cb65:default:flash
19+
20+
## Accessing Bootloader Mode
21+
22+
To access Bootloader Mode, do one of the following:
23+
24+
* Hold the top left key of the keyboard while connecting the USB cable
25+
26+
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).

‎keyboards/cherrybstudio/cb65/rules.mk

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# MCU name
2+
MCU = atmega32u4
3+
4+
# Bootloader selection
5+
BOOTLOADER = atmel-dfu
6+
7+
# Build Options
8+
# change yes to no to disable
9+
#
10+
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
11+
MOUSEKEY_ENABLE = yes # Mouse keys
12+
EXTRAKEY_ENABLE = yes # Audio control and System control
13+
CONSOLE_ENABLE = no # Console for debug
14+
COMMAND_ENABLE = no # Commands for debug and configuration
15+
NKRO_ENABLE = yes # Enable N-Key Rollover
16+
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17+
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
18+
AUDIO_ENABLE = no # Audio output
19+
ENCODER_ENABLE = no # Encoder support

0 commit comments

Comments
 (0)
Please sign in to comment.