From 7e6ad6d28cedfea7a019fa60175af87e5c2c08e7 Mon Sep 17 00:00:00 2001 From: Danny Date: Thu, 18 May 2023 06:29:06 -0400 Subject: Add Cepstrum Rev. 1 Keyboard (#20721) Co-authored-by: Drashna Jaelre --- keyboards/keebio/cepstrum/rev1/config.h | 65 ++++++++++ keyboards/keebio/cepstrum/rev1/halconf.h | 21 +++ keyboards/keebio/cepstrum/rev1/info.json | 212 +++++++++++++++++++++++++++++++ keyboards/keebio/cepstrum/rev1/mcuconf.h | 9 ++ keyboards/keebio/cepstrum/rev1/rules.mk | 2 + 5 files changed, 309 insertions(+) create mode 100644 keyboards/keebio/cepstrum/rev1/config.h create mode 100644 keyboards/keebio/cepstrum/rev1/halconf.h create mode 100644 keyboards/keebio/cepstrum/rev1/info.json create mode 100644 keyboards/keebio/cepstrum/rev1/mcuconf.h create mode 100644 keyboards/keebio/cepstrum/rev1/rules.mk (limited to 'keyboards/keebio/cepstrum/rev1') diff --git a/keyboards/keebio/cepstrum/rev1/config.h b/keyboards/keebio/cepstrum/rev1/config.h new file mode 100644 index 0000000000..1dedcef2b0 --- /dev/null +++ b/keyboards/keebio/cepstrum/rev1/config.h @@ -0,0 +1,65 @@ +// Copyright 2022 Danny Nguyen (danny@keeb.io) +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#define SPLIT_HAND_PIN GP4 +#define USB_VBUS_PIN GP12 +#define SERIAL_USART_FULL_DUPLEX +#define SERIAL_USART_TX_PIN GP0 +#define SERIAL_USART_RX_PIN GP1 +#define SERIAL_USART_PIN_SWAP +#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET +#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 1000U +#define I2C_DRIVER I2CD2 +#define I2C1_SCL_PIN GP22 +#define I2C1_SDA_PIN GP23 + +// RGB Matrix +#define ENABLE_RGB_MATRIX_ALPHAS_MODS +#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN +#define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT +#define ENABLE_RGB_MATRIX_BREATHING +#define ENABLE_RGB_MATRIX_BAND_SAT +#define ENABLE_RGB_MATRIX_BAND_VAL +#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT +#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL +#define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT +#define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL +#define ENABLE_RGB_MATRIX_CYCLE_ALL +#define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT +#define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN +#define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON +#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN +#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL +#define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL +#define ENABLE_RGB_MATRIX_CYCLE_SPIRAL +#define ENABLE_RGB_MATRIX_DUAL_BEACON +#define ENABLE_RGB_MATRIX_RAINBOW_BEACON +#define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS +// enabled only if RGB_MATRIX_FRAMEBUFFER_EFFECTS is defined +#define ENABLE_RGB_MATRIX_TYPING_HEATMAP +#define ENABLE_RGB_MATRIX_DIGITAL_RAIN +// enabled only of RGB_MATRIX_KEYPRESSES or RGB_MATRIX_KEYRELEASES is defined +#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE +#define ENABLE_RGB_MATRIX_SOLID_REACTIVE +#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE +#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE +#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS +#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS +#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS +#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS +#define ENABLE_RGB_MATRIX_SPLASH +#define ENABLE_RGB_MATRIX_MULTISPLASH +#define ENABLE_RGB_MATRIX_SOLID_SPLASH +#define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH + +#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120 +#define RGB_MATRIX_DEFAULT_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS +#define WS2812_DI_PIN GP18 +#define RGB_DI_PIN WS2812_DI_PIN +#define RGB_MATRIX_LED_COUNT 96 +#define RGB_DISABLE_WHEN_USB_SUSPENDED +#define RGB_MATRIX_FRAMEBUFFER_EFFECTS +#define RGB_MATRIX_KEYPRESSES +#define SPLIT_TRANSPORT_MIRROR diff --git a/keyboards/keebio/cepstrum/rev1/halconf.h b/keyboards/keebio/cepstrum/rev1/halconf.h new file mode 100644 index 0000000000..2e098f5113 --- /dev/null +++ b/keyboards/keebio/cepstrum/rev1/halconf.h @@ -0,0 +1,21 @@ +/* Copyright 2022 QMK + * + * 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 . + */ + +#pragma once + +#define HAL_USE_I2C TRUE + +#include_next diff --git a/keyboards/keebio/cepstrum/rev1/info.json b/keyboards/keebio/cepstrum/rev1/info.json new file mode 100644 index 0000000000..a9f8c83d12 --- /dev/null +++ b/keyboards/keebio/cepstrum/rev1/info.json @@ -0,0 +1,212 @@ +{ + "keyboard_name": "Cepstrum Rev. 1", + "usb": {"pid": "0x1557", "device_version": "1.0.0"}, + "processor": "RP2040", + "bootloader": "rp2040", + "diode_direction": "COL2ROW", + "features": { + "rgb_matrix": true + }, + "split": { + "enabled": true, + "matrix_pins": { + "right": { + "cols": ["GP29", "GP28", "GP27", "GP26", "GP25", "GP21", "GP15", "GP9", "GP10"], + "rows": ["GP2", "GP3", "GP5", "GP8", "GP19"] + } + } + }, + "matrix_pins": { + "cols": ["GP29", "GP28", "GP27", "GP2", "GP3", "GP5", "GP6", "GP7", "GP8"], + "rows": ["GP26", "GP25", "GP21", "GP20", "GP19"] + }, + "layouts": { + "LAYOUT_65xt": { + "layout": [ + { "label": "F1", "matrix": [0, 0], "w": 1, "x": 0, "y": 0 }, + { "label": "F2", "matrix": [0, 1], "w": 1, "x": 1, "y": 0 }, + { "label": "Esc", "matrix": [0, 2], "w": 1, "x": 2.25, "y": 0 }, + { "label": "1", "matrix": [0, 3], "w": 1, "x": 3.25, "y": 0 }, + { "label": "2", "matrix": [0, 4], "w": 1, "x": 4.25, "y": 0 }, + { "label": "3", "matrix": [0, 5], "w": 1, "x": 5.25, "y": 0 }, + { "label": "4", "matrix": [0, 6], "w": 1, "x": 6.25, "y": 0 }, + { "label": "5", "matrix": [0, 7], "w": 1, "x": 7.25, "y": 0 }, + { "label": "6", "matrix": [0, 8], "w": 1, "x": 8.25, "y": 0 }, + { "label": "7", "matrix": [5, 0], "w": 1, "x": 10.25, "y": 0 }, + { "label": "8", "matrix": [5, 1], "w": 1, "x": 11.25, "y": 0 }, + { "label": "9", "matrix": [5, 2], "w": 1, "x": 12.25, "y": 0 }, + { "label": "0", "matrix": [5, 3], "w": 1, "x": 13.25, "y": 0 }, + { "label": "-", "matrix": [5, 4], "w": 1, "x": 14.25, "y": 0 }, + { "label": "=", "matrix": [5, 5], "w": 1, "x": 15.25, "y": 0 }, + { "label": "Bksp", "matrix": [5, 7], "w": 2, "x": 17.25, "y": 0 }, + { "label": "Del", "matrix": [5, 8], "w": 1, "x": 18.25, "y": 0 }, + { "label": "F3", "matrix": [1, 0], "w": 1, "x": 0, "y": 1 }, + { "label": "F4", "matrix": [1, 1], "w": 1, "x": 1, "y": 1 }, + { "label": "Tab", "matrix": [1, 2], "w": 1.5, "x": 2.25, "y": 1 }, + { "label": "Q", "matrix": [1, 3], "w": 1, "x": 3.75, "y": 1 }, + { "label": "W", "matrix": [1, 4], "w": 1, "x": 4.75, "y": 1 }, + { "label": "E", "matrix": [1, 5], "w": 1, "x": 5.75, "y": 1 }, + { "label": "R", "matrix": [1, 6], "w": 1, "x": 6.75, "y": 1 }, + { "label": "T", "matrix": [1, 7], "w": 1, "x": 7.75, "y": 1 }, + { "label": "Y", "matrix": [6, 0], "w": 1, "x": 9.75, "y": 1 }, + { "label": "U", "matrix": [6, 1], "w": 1, "x": 10.75, "y": 1 }, + { "label": "I", "matrix": [6, 2], "w": 1, "x": 11.75, "y": 1 }, + { "label": "O", "matrix": [6, 3], "w": 1, "x": 12.75, "y": 1 }, + { "label": "P", "matrix": [6, 4], "w": 1, "x": 13.75, "y": 1 }, + { "label": "{", "matrix": [6, 5], "w": 1, "x": 14.75, "y": 1 }, + { "label": "}", "matrix": [6, 6], "w": 1, "x": 15.75, "y": 1 }, + { "label": "|", "matrix": [6, 7], "w": 1.5, "x": 16.75, "y": 1 }, + { "label": "Home", "matrix": [6, 8], "w": 1, "x": 18.25, "y": 1 }, + { "label": "F5", "matrix": [2, 0], "w": 1, "x": 0, "y": 2 }, + { "label": "F6", "matrix": [2, 1], "w": 1, "x": 1, "y": 2 }, + { "label": "Caps Lock", "matrix": [2, 2], "w": 1.75, "x": 2.25, "y": 2 }, + { "label": "A", "matrix": [2, 3], "w": 1, "x": 4, "y": 2 }, + { "label": "S", "matrix": [2, 4], "w": 1, "x": 5, "y": 2 }, + { "label": "D", "matrix": [2, 5], "w": 1, "x": 6, "y": 2 }, + { "label": "F", "matrix": [2, 6], "w": 1, "x": 7, "y": 2 }, + { "label": "G", "matrix": [2, 7], "w": 1, "x": 8, "y": 2 }, + { "label": "H", "matrix": [7, 0], "w": 1, "x": 10, "y": 2 }, + { "label": "J", "matrix": [7, 1], "w": 1, "x": 11, "y": 2 }, + { "label": "K", "matrix": [7, 2], "w": 1, "x": 12, "y": 2 }, + { "label": "L", "matrix": [7, 3], "w": 1, "x": 13, "y": 2 }, + { "label": ":", "matrix": [7, 4], "w": 1, "x": 14, "y": 2 }, + { "label": "\"", "matrix": [7, 5], "w": 1, "x": 15, "y": 2 }, + { "label": "Enter", "matrix": [7, 7], "w": 2.25, "x": 16, "y": 2 }, + { "label": "PgUp", "matrix": [7, 8], "w": 1, "x": 18.25, "y": 2 }, + { "label": "F7", "matrix": [3, 0], "w": 1, "x": 0, "y": 3 }, + { "label": "F8", "matrix": [3, 1], "w": 1, "x": 1, "y": 3 }, + { "label": "Shift", "matrix": [3, 2], "w": 2.25, "x": 2.25, "y": 3 }, + { "label": "Z", "matrix": [3, 4], "w": 1, "x": 4.5, "y": 3 }, + { "label": "X", "matrix": [3, 5], "w": 1, "x": 5.5, "y": 3 }, + { "label": "C", "matrix": [3, 6], "w": 1, "x": 6.5, "y": 3 }, + { "label": "V", "matrix": [3, 7], "w": 1, "x": 7.5, "y": 3 }, + { "label": "B", "matrix": [3, 8], "w": 1, "x": 8.5, "y": 3 }, + { "label": "N", "matrix": [8, 0], "w": 1, "x": 10.5, "y": 3 }, + { "label": "M", "matrix": [8, 1], "w": 1, "x": 11.5, "y": 3 }, + { "label": ",", "matrix": [8, 2], "w": 1, "x": 12.5, "y": 3 }, + { "label": ".", "matrix": [8, 3], "w": 1, "x": 13.5, "y": 3 }, + { "label": "/", "matrix": [8, 4], "w": 1, "x": 14.5, "y": 3 }, + { "label": "Shift", "matrix": [8, 6], "w": 1.75, "x": 15.5, "y": 3 }, + { "label": "Up", "matrix": [8, 7], "w": 1, "x": 17.25, "y": 3 }, + { "label": "PgDn", "matrix": [8, 8], "w": 1, "x": 18.25, "y": 3 }, + { "label": "F9", "matrix": [4, 0], "w": 1, "x": 0, "y": 4 }, + { "label": "F10", "matrix": [4, 1], "w": 1, "x": 1, "y": 4 }, + { "label": "Ctrl", "matrix": [4, 2], "w": 1.25, "x": 2.25, "y": 4 }, + { "label": "Win", "matrix": [4, 3], "w": 1.25, "x": 3.5, "y": 4 }, + { "label": "Alt", "matrix": [4, 4], "w": 1.25, "x": 4.75, "y": 4 }, + { "label": "Fn", "matrix": [4, 5], "w": 1.25, "x": 6, "y": 4 }, + { "label": "Space", "matrix": [4, 7], "w": 1, "x": 7.25, "y": 4 }, + { "label": "Space", "matrix": [9, 1], "w": 1.5, "x": 11.75, "y": 4 }, + { "label": "Alt", "matrix": [9, 2], "w": 1, "x": 13.25, "y": 4 }, + { "label": "Fn", "matrix": [9, 3], "w": 1, "x": 14.25, "y": 4 }, + { "label": "Ctrl", "matrix": [9, 4], "w": 1, "x": 15.25, "y": 4 }, + { "label": "Left", "matrix": [9, 6], "w": 1, "x": 16.25, "y": 4 }, + { "label": "Down", "matrix": [9, 7], "w": 1, "x": 17.25, "y": 4 }, + { "label": "Right", "matrix": [9, 8], "w": 1, "x": 18.25, "y": 4 } + ] + } + }, + "rgb_matrix": { + "driver": "WS2812", + "split_count": [48, 48], + "layout": [ + {"flags":2, "x":46, "y":0}, + {"flags":2, "x":71, "y":0}, + {"flags":2, "x":95, "y":0}, + {"flags":2, "x":83, "y":57}, + {"flags":2, "x":68, "y":57}, + {"flags":2, "x":37, "y":57}, + {"matrix": [0,2], "flags":4, "x":28, "y":4}, + {"matrix": [0,3], "flags":4, "x":40, "y":4}, + {"matrix": [0,4], "flags":4, "x":52, "y":4}, + {"matrix": [0,5], "flags":4, "x":64, "y":4}, + {"matrix": [0,6], "flags":4, "x":77, "y":4}, + {"matrix": [0,7], "flags":4, "x":89, "y":4}, + {"matrix": [0,8], "flags":4, "x":101, "y":4}, + {"matrix": [1,7], "flags":4, "x":95, "y":18}, + {"matrix": [1,6], "flags":4, "x":83, "y":18}, + {"matrix": [1,5], "flags":4, "x":71, "y":18}, + {"matrix": [1,4], "flags":4, "x":58, "y":18}, + {"matrix": [1,3], "flags":4, "x":46, "y":18}, + {"matrix": [1,2], "flags":4, "x":31, "y":18}, + {"matrix": [2,2], "flags":4, "x":32, "y":32}, + {"matrix": [2,3], "flags":4, "x":49, "y":32}, + {"matrix": [2,4], "flags":4, "x":61, "y":32}, + {"matrix": [2,5], "flags":4, "x":74, "y":32}, + {"matrix": [2,6], "flags":4, "x":86, "y":32}, + {"matrix": [2,7], "flags":4, "x":98, "y":32}, + {"matrix": [3,8], "flags":4, "x":104, "y":46}, + {"matrix": [3,7], "flags":4, "x":92, "y":46}, + {"matrix": [3,6], "flags":4, "x":80, "y":46}, + {"matrix": [3,5], "flags":4, "x":68, "y":46}, + {"matrix": [3,4], "flags":4, "x":55, "y":46}, + {"matrix": [3,2], "flags":4, "x":35, "y":46}, + {"matrix": [4,2], "flags":4, "x":29, "y":60}, + {"matrix": [4,3], "flags":4, "x":44, "y":60}, + {"matrix": [4,4], "flags":4, "x":60, "y":60}, + {"matrix": [4,5], "flags":4, "x":75, "y":60}, + {"matrix": [4,7], "flags":4, "x":97, "y":60}, + {"matrix": [4,1], "flags":4, "x":12, "y":60}, + {"matrix": [4,0], "flags":4, "x":0, "y":60}, + {"flags":2, "x":6, "y":53}, + {"matrix": [3,1], "flags":4, "x":12, "y":46}, + {"matrix": [3,0], "flags":4, "x":0, "y":46}, + {"matrix": [2,0], "flags":4, "x":0, "y":32}, + {"matrix": [2,1], "flags":4, "x":12, "y":32}, + {"matrix": [1,1], "flags":4, "x":12, "y":18}, + {"matrix": [1,0], "flags":4, "x":0, "y":18}, + {"flags":2, "x":6, "y":14}, + {"matrix": [0,1], "flags":4, "x":12, "y":4}, + {"matrix": [0,0], "flags":4, "x":0, "y":4}, + + {"flags":2, "x":221, "y":11}, + {"matrix": [5,8], "flags":4, "x":224, "y":4}, + {"matrix": [5,7], "flags":4, "x":206, "y":4}, + {"flags":2, "x":193, "y":0}, + {"matrix": [5,5], "flags":4, "x":187, "y":4}, + {"matrix": [5,4], "flags":4, "x":175, "y":4}, + {"flags":2, "x":169, "y":0}, + {"matrix": [5,3], "flags":4, "x":163, "y":4}, + {"matrix": [5,2], "flags":4, "x":150, "y":4}, + {"flags":2, "x":144, "y":0}, + {"matrix": [5,1], "flags":4, "x":138, "y":4}, + {"matrix": [5,0], "flags":4, "x":126, "y":4}, + {"matrix": [6,0], "flags":4, "x":120, "y":18}, + {"matrix": [6,1], "flags":4, "x":132, "y":18}, + {"matrix": [6,2], "flags":4, "x":144, "y":18}, + {"matrix": [6,3], "flags":4, "x":156, "y":18}, + {"matrix": [6,4], "flags":4, "x":169, "y":18}, + {"matrix": [6,5], "flags":4, "x":181, "y":18}, + {"matrix": [6,6], "flags":4, "x":193, "y":18}, + {"matrix": [6,7], "flags":4, "x":209, "y":18}, + {"matrix": [6,8], "flags":4, "x":224, "y":18}, + {"matrix": [7,8], "flags":4, "x":224, "y":32}, + {"matrix": [7,7], "flags":4, "x":204, "y":32}, + {"matrix": [7,5], "flags":4, "x":184, "y":32}, + {"matrix": [7,4], "flags":4, "x":172, "y":32}, + {"matrix": [7,3], "flags":4, "x":160, "y":32}, + {"matrix": [7,2], "flags":4, "x":147, "y":32}, + {"matrix": [7,1], "flags":4, "x":135, "y":32}, + {"matrix": [7,0], "flags":4, "x":123, "y":32}, + {"matrix": [8,0], "flags":4, "x":129, "y":46}, + {"matrix": [8,1], "flags":4, "x":141, "y":46}, + {"matrix": [8,2], "flags":4, "x":153, "y":46}, + {"matrix": [8,3], "flags":4, "x":166, "y":46}, + {"matrix": [8,4], "flags":4, "x":178, "y":46}, + {"matrix": [8,6], "flags":4, "x":195, "y":46}, + {"matrix": [8,7], "flags":4, "x":212, "y":46}, + {"matrix": [8,8], "flags":4, "x":224, "y":46}, + {"matrix": [9,8], "flags":4, "x":224, "y":60}, + {"flags":2, "x":218, "y":57}, + {"matrix": [9,7], "flags":4, "x":212, "y":60}, + {"matrix": [9,6], "flags":4, "x":199, "y":60}, + {"flags":2, "x":193, "y":57}, + {"matrix": [9,4], "flags":4, "x":187, "y":60}, + {"matrix": [9,3], "flags":4, "x":173, "y":60}, + {"flags":2, "x":166, "y":64}, + {"matrix": [9,2], "flags":4, "x":158, "y":60}, + {"matrix": [9,1], "flags":4, "x":137, "y":60}, + {"flags":2, "x":126, "y":64}, + ] + } +} diff --git a/keyboards/keebio/cepstrum/rev1/mcuconf.h b/keyboards/keebio/cepstrum/rev1/mcuconf.h new file mode 100644 index 0000000000..c8a510784c --- /dev/null +++ b/keyboards/keebio/cepstrum/rev1/mcuconf.h @@ -0,0 +1,9 @@ +// Copyright 2022 Danny Nguyen (danny@keeb.io) +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#include_next + +#undef RP_I2C_USE_I2C1 +#define RP_I2C_USE_I2C1 TRUE diff --git a/keyboards/keebio/cepstrum/rev1/rules.mk b/keyboards/keebio/cepstrum/rev1/rules.mk new file mode 100644 index 0000000000..8fb51ec82d --- /dev/null +++ b/keyboards/keebio/cepstrum/rev1/rules.mk @@ -0,0 +1,2 @@ +SERIAL_DRIVER = vendor +WS2812_DRIVER = vendor -- cgit v1.2.3