Skip to content

Commit

Permalink
bastardkb: split splinky-based keyboards to distinguish between Splin…
Browse files Browse the repository at this point in the history
…ky v2 and v3 pinout
  • Loading branch information
0xcharly authored and Charly Delay committed Nov 14, 2022
1 parent 1a0ef9c commit c80e7de
Show file tree
Hide file tree
Showing 36 changed files with 354 additions and 69 deletions.
16 changes: 0 additions & 16 deletions keyboards/bastardkb/charybdis/3x5/v2/splinky/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@
/* Key matrix configuration. */
#define MATRIX_ROW_PINS \
{ GP26, GP5, GP4, GP9 }
#ifdef SPLINKY_BETA_PINOUT
# define MATRIX_COL_PINS \
{ GP28, GP15, GP6, GP7, GP8 }
#else
# define MATRIX_COL_PINS \
{ GP28, GP21, GP6, GP7, GP8 }
#endif // SPLINKY_BETA_PINOUT

/* Handedness. */
#define MASTER_RIGHT
Expand All @@ -45,15 +38,6 @@
/* SPI & PMW3360 settings. */
#define SPI_DRIVER SPID0
#define SPI_MISO_PIN GP20
#ifdef SPLINKY_BETA_PINOUT
# define SPI_SCK_PIN GP18
# define SPI_MOSI_PIN GP19
# define POINTING_DEVICE_CS_PIN GP14
#else
# define SPI_SCK_PIN GP22
# define SPI_MOSI_PIN GP23
# define POINTING_DEVICE_CS_PIN GP16
#endif // SPLINKY_BETA_PINOUT

/* Reset. */
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
Expand Down
6 changes: 6 additions & 0 deletions keyboards/bastardkb/charybdis/3x5/v2/splinky/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Splinky controller

The splinky is a Pro-Micro/Elite-C replacement with USB-C and RP2040.

See https://github.com/plut0nium/0xB2/#releases to figure out the right version
for you (v2 and v3) supported.
27 changes: 27 additions & 0 deletions keyboards/bastardkb/charybdis/3x5/v2/splinky/v2/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* Copyright 2022 Charly Delay <charly@codesink.dev> (@0xcharly)
*
* 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

/* Key matrix configuration. */
#define MATRIX_COL_PINS \
{ GP28, GP15, GP6, GP7, GP8 }

/* SPI & PMW3360 settings. */
#define SPI_SCK_PIN GP18
#define SPI_MOSI_PIN GP19
#define POINTING_DEVICE_CS_PIN GP14
2 changes: 2 additions & 0 deletions keyboards/bastardkb/charybdis/3x5/v2/splinky/v2/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Intentionally blank so that QMK detects this folder as a valid keyboard
# parameter.
27 changes: 27 additions & 0 deletions keyboards/bastardkb/charybdis/3x5/v2/splinky/v3/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* Copyright 2022 Charly Delay <charly@codesink.dev> (@0xcharly)
*
* 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

/* Key matrix configuration. */
#define MATRIX_COL_PINS \
{ GP28, GP21, GP6, GP7, GP8 }

/* SPI & PMW3360 settings. */
#define SPI_SCK_PIN GP22
#define SPI_MOSI_PIN GP23
#define POINTING_DEVICE_CS_PIN GP16
2 changes: 2 additions & 0 deletions keyboards/bastardkb/charybdis/3x5/v2/splinky/v3/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Intentionally blank so that QMK detects this folder as a valid keyboard
# parameter.
16 changes: 0 additions & 16 deletions keyboards/bastardkb/charybdis/3x6/v2/splinky/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@
/* Key matrix configuration. */
#define MATRIX_ROW_PINS \
{ GP26, GP5, GP4, GP9 }
#ifdef SPLINKY_BETA_PINOUT
# define MATRIX_COL_PINS \
{ GP27, GP28, GP15, GP6, GP7, GP8 }
#else
# define MATRIX_COL_PINS \
{ GP27, GP28, GP21, GP6, GP7, GP8 }
#endif // SPLINKY_BETA_PINOUT

/* Handedness. */
#define MASTER_RIGHT
Expand All @@ -45,15 +38,6 @@
/* SPI & PMW3360 settings. */
#define SPI_DRIVER SPID0
#define SPI_MISO_PIN GP20
#ifdef SPLINKY_BETA_PINOUT
# define SPI_SCK_PIN GP18
# define SPI_MOSI_PIN GP19
# define POINTING_DEVICE_CS_PIN GP14
#else
# define SPI_SCK_PIN GP22
# define SPI_MOSI_PIN GP23
# define POINTING_DEVICE_CS_PIN GP16
#endif // SPLINKY_BETA_PINOUT

/* Reset. */
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
Expand Down
6 changes: 6 additions & 0 deletions keyboards/bastardkb/charybdis/3x6/v2/splinky/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Splinky controller

The splinky is a Pro-Micro/Elite-C replacement with USB-C and RP2040.

See https://github.com/plut0nium/0xB2/#releases to figure out the right version
for you (v2 and v3) supported.
27 changes: 27 additions & 0 deletions keyboards/bastardkb/charybdis/3x6/v2/splinky/v2/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* Copyright 2022 Charly Delay <charly@codesink.dev> (@0xcharly)
*
* 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

/* Key matrix configuration. */
#define MATRIX_COL_PINS \
{ GP27, GP28, GP15, GP6, GP7, GP8 }

/* SPI & PMW3360 settings. */
#define SPI_SCK_PIN GP18
#define SPI_MOSI_PIN GP19
#define POINTING_DEVICE_CS_PIN GP14
2 changes: 2 additions & 0 deletions keyboards/bastardkb/charybdis/3x6/v2/splinky/v2/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Intentionally blank so that QMK detects this folder as a valid keyboard
# parameter.
27 changes: 27 additions & 0 deletions keyboards/bastardkb/charybdis/3x6/v2/splinky/v3/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* Copyright 2022 Charly Delay <charly@codesink.dev> (@0xcharly)
*
* 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

/* Key matrix configuration. */
#define MATRIX_COL_PINS \
{ GP27, GP28, GP21, GP6, GP7, GP8 }

/* SPI & PMW3360 settings. */
#define SPI_SCK_PIN GP22
#define SPI_MOSI_PIN GP23
#define POINTING_DEVICE_CS_PIN GP16
2 changes: 2 additions & 0 deletions keyboards/bastardkb/charybdis/3x6/v2/splinky/v3/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Intentionally blank so that QMK detects this folder as a valid keyboard
# parameter.
16 changes: 0 additions & 16 deletions keyboards/bastardkb/charybdis/4x6/v2/splinky/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@
/* Key matrix configuration. */
#define MATRIX_ROW_PINS \
{ GP29, GP26, GP5, GP4, GP9 }
#ifdef SPLINKY_BETA_PINOUT
# define MATRIX_COL_PINS \
{ GP27, GP28, GP15, GP6, GP7, GP8 }
#else
# define MATRIX_COL_PINS \
{ GP27, GP28, GP21, GP6, GP7, GP8 }
#endif // SPLINKY_BETA_PINOUT

/* Handedness. */
#define MASTER_RIGHT
Expand All @@ -45,15 +38,6 @@
/* SPI & PMW3360 settings. */
#define SPI_DRIVER SPID0
#define SPI_MISO_PIN GP20
#ifdef SPLINKY_BETA_PINOUT
# define SPI_SCK_PIN GP18
# define SPI_MOSI_PIN GP19
# define POINTING_DEVICE_CS_PIN GP14
#else
# define SPI_SCK_PIN GP22
# define SPI_MOSI_PIN GP23
# define POINTING_DEVICE_CS_PIN GP16
#endif // SPLINKY_BETA_PINOUT

/* Reset. */
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
Expand Down
6 changes: 6 additions & 0 deletions keyboards/bastardkb/charybdis/4x6/v2/splinky/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Splinky controller

The splinky is a Pro-Micro/Elite-C replacement with USB-C and RP2040.

See https://github.com/plut0nium/0xB2/#releases to figure out the right version
for you (v2 and v3) supported.
27 changes: 27 additions & 0 deletions keyboards/bastardkb/charybdis/4x6/v2/splinky/v2/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* Copyright 2022 Charly Delay <charly@codesink.dev> (@0xcharly)
*
* 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

/* Key matrix configuration. */
#define MATRIX_COL_PINS \
{ GP27, GP28, GP15, GP6, GP7, GP8 }

/* SPI & PMW3360 settings. */
#define SPI_SCK_PIN GP18
#define SPI_MOSI_PIN GP19
#define POINTING_DEVICE_CS_PIN GP14
2 changes: 2 additions & 0 deletions keyboards/bastardkb/charybdis/4x6/v2/splinky/v2/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Intentionally blank so that QMK detects this folder as a valid keyboard
# parameter.
27 changes: 27 additions & 0 deletions keyboards/bastardkb/charybdis/4x6/v2/splinky/v3/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* Copyright 2022 Charly Delay <charly@codesink.dev> (@0xcharly)
*
* 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

/* Key matrix configuration. */
#define MATRIX_COL_PINS \
{ GP27, GP28, GP21, GP6, GP7, GP8 }

/* SPI & PMW3360 settings. */
#define SPI_SCK_PIN GP22
#define SPI_MOSI_PIN GP23
#define POINTING_DEVICE_CS_PIN GP16
2 changes: 2 additions & 0 deletions keyboards/bastardkb/charybdis/4x6/v2/splinky/v3/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Intentionally blank so that QMK detects this folder as a valid keyboard
# parameter.
7 changes: 0 additions & 7 deletions keyboards/bastardkb/scylla/v2/splinky/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@
/* Key matrix configuration. */
#define MATRIX_ROW_PINS \
{ GP29, GP26, GP5, GP4, GP9 }
#ifdef SPLINKY_BETA_PINOUT
# define MATRIX_COL_PINS \
{ GP27, GP28, GP15, GP6, GP7, GP8 }
#else
# define MATRIX_COL_PINS \
{ GP27, GP28, GP21, GP6, GP7, GP8 }
#endif // SPLINKY_BETA_PINOUT

/* Handedness. */
#define MASTER_RIGHT
Expand Down
6 changes: 6 additions & 0 deletions keyboards/bastardkb/scylla/v2/splinky/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Splinky controller

The splinky is a Pro-Micro/Elite-C replacement with USB-C and RP2040.

See https://github.com/plut0nium/0xB2/#releases to figure out the right version
for you (v2 and v3) supported.
22 changes: 22 additions & 0 deletions keyboards/bastardkb/scylla/v2/splinky/v2/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* Copyright 2022 Charly Delay <charly@codesink.dev> (@0xcharly)
*
* 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

/* Key matrix configuration. */
#define MATRIX_COL_PINS \
{ GP27, GP28, GP15, GP6, GP7, GP8 }
2 changes: 2 additions & 0 deletions keyboards/bastardkb/scylla/v2/splinky/v2/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Intentionally blank so that QMK detects this folder as a valid keyboard
# parameter.
22 changes: 22 additions & 0 deletions keyboards/bastardkb/scylla/v2/splinky/v3/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* Copyright 2022 Charly Delay <charly@codesink.dev> (@0xcharly)
*
* 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

/* Key matrix configuration. */
#define MATRIX_COL_PINS \
{ GP27, GP28, GP21, GP6, GP7, GP8 }
2 changes: 2 additions & 0 deletions keyboards/bastardkb/scylla/v2/splinky/v3/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Intentionally blank so that QMK detects this folder as a valid keyboard
# parameter.
7 changes: 0 additions & 7 deletions keyboards/bastardkb/skeletyl/v2/splinky/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@
/* Key matrix configuration. */
#define MATRIX_ROW_PINS \
{ GP26, GP5, GP4, GP9 }
#ifdef SPLINKY_BETA_PINOUT
# define MATRIX_COL_PINS \
{ GP28, GP15, GP6, GP7, GP8 }
#else
# define MATRIX_COL_PINS \
{ GP28, GP21, GP6, GP7, GP8 }
#endif // SPLINKY_BETA_PINOUT

/* Handedness. */
#define MASTER_RIGHT
Expand Down
6 changes: 6 additions & 0 deletions keyboards/bastardkb/skeletyl/v2/splinky/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Splinky controller

The splinky is a Pro-Micro/Elite-C replacement with USB-C and RP2040.

See https://github.com/plut0nium/0xB2/#releases to figure out the right version
for you (v2 and v3) supported.
Loading

0 comments on commit c80e7de

Please sign in to comment.