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

More tidying #1

Merged
merged 1 commit into from
Sep 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 2 additions & 8 deletions keyboards/tkw/grandiceps/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,17 @@

#include "config_common.h"


/* USB Device descriptor parameter */
#define VENDOR_ID 0xFEED
#define PRODUCT_ID 0x7812
#define DEVICE_VER 0x0002
#define DEVICE_VER 0x0001
#define MANUFACTURER tkw
#define PRODUCT Grandiceps Split rev2
#define PRODUCT Grandiceps Split

/* key matrix size */
#define MATRIX_ROWS 10
#define MATRIX_COLS 6

#define SPLIT_HAND_PIN B3

#define EEPROM_I2C_24LC64

#define MATRIX_COL_PINS { B0, A7, A3, A5, A4, A2 }
#define MATRIX_ROW_PINS { B12, A6, B13, B9, B8 }
#define MATRIX_COL_PINS_RIGHT { B0, A7, A3, A5, A4, A2 }
Expand Down Expand Up @@ -64,7 +59,6 @@
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
#define DEBOUNCE 5


/* disable these deprecated features by default */
#define NO_ACTION_MACRO
#define NO_ACTION_FUNCTION
151 changes: 0 additions & 151 deletions keyboards/tkw/grandiceps/pimoroni_trackball.c

This file was deleted.

35 changes: 0 additions & 35 deletions keyboards/tkw/grandiceps/pimoroni_trackball.h

This file was deleted.

15 changes: 15 additions & 0 deletions keyboards/tkw/grandiceps/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,27 @@ ARM split keyboard with RGB underglow and encoders.
* Hardware Supported: f411 blackpill
* Hardware Availability: [grandiceps](https://github.com/vattern/grandiceps)

There are two versions of the Grandiceps. Please use the appropriate firmware for your board.

* Revision 2 has I2C eeprom and support for a Pimoroni trackball.

Make example for this keyboard (after setting up your build environment):

make tkw/grandiceps:default
make tkw/grandiceps/rev2:default


Flashing example for this keyboard:

make tkw/grandiceps:default:flash
make tkw/grandiceps/rev2:default:flash

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).

## Bootloader

Enter the bootloader in 3 ways:

* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
* **Keycode in layout**: Press the key mapped to `RESET` if it is available
24 changes: 24 additions & 0 deletions keyboards/tkw/grandiceps/rev2/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/* Copyright 2021 Thys de Wet
*
* 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

#undef DEVICE_VER
#define DEVICE_VER 0x0002
#undef PRODUCT
#define PRODUCT Grandiceps Split rev2

#define SPLIT_HAND_PIN B3
#define EEPROM_I2C_24LC64
5 changes: 5 additions & 0 deletions keyboards/tkw/grandiceps/rev2/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
EEPROM_DRIVER = i2c

POINTING_DEVICE_ENABLE = yes
SRC += drivers/sensors/pimoroni_trackball.c
QUANTUM_LIB_SRC += i2c_master.c
7 changes: 0 additions & 7 deletions keyboards/tkw/grandiceps/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,3 @@ OLED_ENABLE = yes
OLED_DRIVER = SSD1306
WS2812_DRIVER = pwm
OPT_DEFS += -DSTM32_DMA_REQUIRED=TRUE

EEPROM_DRIVER = i2c

POINTING_DEVICE_ENABLE = yes
OPT_DEFS += -DPIMORONI_TRACKBALL_ENABLE
SRC += pimoroni_trackball.c
QUANTUM_LIB_SRC += i2c_master.c
2 changes: 1 addition & 1 deletion lib/chibios
Submodule chibios updated 347 files
2 changes: 1 addition & 1 deletion lib/chibios-contrib
Submodule chibios-contrib updated 348 files
2 changes: 1 addition & 1 deletion lib/googletest
Submodule googletest updated 392 files
2 changes: 1 addition & 1 deletion lib/lufa
Submodule lufa updated 1219 files