forked from Bastardkb/bastardkb-qmk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0608ea1
commit 3f7d26f
Showing
11 changed files
with
566 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
/* Copyright 2023 David Hoelscher (@customMK) | ||
* | ||
* 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 | ||
|
||
// No VBUS sense needed | ||
#define BOARD_OTG_NOVBUSSENS 1 | ||
|
||
#define STM32_LSECLK 32768 | ||
|
||
#define MATRIX_ROWS 5 | ||
#define MATRIX_COLS 16 | ||
#define MATRIX_ROW_PINS { A8, A1, A2, B1, A7 } | ||
|
||
// FRAM configuration | ||
#define EXTERNAL_EEPROM_SPI_SLAVE_SELECT_PIN A0 | ||
#define EXTERNAL_EEPROM_SPI_CLOCK_DIVISOR 4 // 48MHz / 4 = 12MHz; max supported by MB85R64 is 20MHz | ||
|
||
// External flash configuration | ||
#define EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN B12 | ||
#define EXTERNAL_FLASH_SPI_CLOCK_DIVISOR 1 // 48MHz; max supported by W25Q128JV is 133MHz | ||
#define EXTERNAL_FLASH_SIZE (16 * 1024 * 1024) //128Mbit or 16MByte | ||
#define EXTERNAL_FLASH_SPI_TIMEOUT 200000 //datasheet max is 200seconds for flash chip erase | ||
|
||
// SPI Configuration | ||
#define SPI_DRIVER SPID1 | ||
#define SPI_SCK_PIN B3 | ||
#define SPI_SCK_PAL_MODE 5 | ||
#define SPI_MOSI_PIN B5 | ||
#define SPI_MOSI_PAL_MODE 5 | ||
#define SPI_MISO_PIN B4 | ||
#define SPI_MISO_PAL_MODE 5 | ||
|
||
|
||
// SPI LCD Configuration | ||
#define LCD_RST_PIN B2 | ||
#define LCD_CS_PIN A9 | ||
#define LCD_DC_PIN B0 | ||
#ifndef LCD_ACTIVITY_TIMEOUT | ||
#define LCD_ACTIVITY_TIMEOUT 30000 | ||
#endif | ||
|
||
// I2C OLED Configuration | ||
#define I2C1_SCL_PIN B6 | ||
#define I2C1_SDA_PIN B9 | ||
|
||
#define I2C1_CLOCK_SPEED 400000 | ||
#define I2C1_DUTY_CYCLE FAST_DUTY_CYCLE_2 | ||
|
||
#define OLED_DISABLE_TIMEOUT | ||
|
||
#define COL_SHIFT_IN_PIN B14 | ||
#define COL_SHIFT_CLK_PIN B15 | ||
|
||
#define QUANTUM_PAINTER_SUPPORTS_256_PALETTE TRUE | ||
#define QUANTUM_PAINTER_SUPPORTS_NATIVE_COLORS TRUE | ||
|
||
#define OLED_UPDATE_INTERVAL 66 | ||
|
||
#define BACKLIGHT_PWM_DRIVER PWMD3 | ||
#define BACKLIGHT_PWM_CHANNEL 1 | ||
#define BACKLIGHT_PAL_MODE 2 | ||
|
||
#define WS2812_PWM_DRIVER PWMD1 | ||
#define WS2812_PWM_CHANNEL 3 | ||
#define WS2812_PWM_PAL_MODE 1 | ||
#define WS2812_DMA_STREAM STM32_DMA2_STREAM5 | ||
#define WS2812_DMA_CHANNEL 6 | ||
|
||
#define TAP_CODE_DELAY 10 | ||
|
||
#define AUDIO_PIN B8 | ||
#define AUDIO_PWM_DRIVER PWMD4 | ||
#define AUDIO_PWM_CHANNEL 3 | ||
#define AUDIO_PWM_PAL_MODE 2 | ||
#define AUDIO_STATE_TIMER GPTD5 | ||
#define AUDIO_INIT_DELAY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* Copyright 2023 David Hoelscher (@customMK) | ||
* | ||
* 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 | ||
|
||
#define HAL_USE_I2C TRUE | ||
|
||
#define HAL_USE_PWM TRUE | ||
|
||
#define HAL_USE_RTC TRUE | ||
|
||
#define HAL_USE_SPI TRUE | ||
|
||
#define HAL_USE_GPT TRUE | ||
|
||
#define SPI_SELECT_MODE SPI_SELECT_MODE_PAD | ||
|
||
#define SERIAL_BUFFERS_SIZE 256 | ||
|
||
// This enables interrupt-driven mode | ||
#define SPI_USE_WAIT TRUE | ||
|
||
#include_next <halconf.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
{ | ||
"keyboard_name": "EVO70 R2", | ||
"url": "https://shop.custommk.com/collections/evo70/products/evo70", | ||
"maintainer": "customMK", | ||
"manufacturer": "customMK", | ||
"tags": ["70%", "encoder", "underglow", "backlight"], | ||
"features": { | ||
"bootmagic": true, | ||
"command": false, | ||
"console": false, | ||
"extrakey": true, | ||
"mousekey": true, | ||
"nkro": true, | ||
"encoder": true, | ||
"quantum_painter": true, | ||
"oled": true, | ||
"rgblight": true, | ||
"backlight": true, | ||
"audio": true | ||
}, | ||
"usb": { | ||
"vid": "0xF35B", | ||
"pid": "0xFAB6", | ||
"device_version": "1.0.0" | ||
}, | ||
"diode_direction": "ROW2COL", | ||
"processor": "STM32F411", | ||
"bootloader": "stm32-dfu", | ||
"rgblight": { | ||
"led_count": 48, | ||
"hue_steps": 4, | ||
"saturation_steps": 8, | ||
"brightness_steps": 4, | ||
"max_brightness": 128, | ||
"layers": { | ||
"enabled": true | ||
}, | ||
"animations": { | ||
"alternating": true, | ||
"breathing": true, | ||
"christmas": true, | ||
"knight": true, | ||
"rainbo_mood": true, | ||
"rainbow_swirl": true, | ||
"rgb_test": true, | ||
"snake": true, | ||
"static_gradient": true, | ||
"twinkle": true | ||
} | ||
}, | ||
"ws2812": { | ||
"driver": "pwm", | ||
"pin": "A10" | ||
}, | ||
"backlight": { | ||
"driver": "pwm", | ||
"breathing": true, | ||
"breathing_period": 6, | ||
"levels": 17, | ||
"pin": "A6" | ||
}, | ||
"layouts": { | ||
"LAYOUT": { | ||
"layout": [ | ||
{"label":"Encoder", "matrix": [1, 0], "x":0.5, "y":0}, | ||
{"label":"Esc", "matrix": [0, 0], "x":2.5, "y":0}, | ||
{"label":"1", "matrix": [0, 2], "x":3.5, "y":0}, | ||
{"label":"2", "matrix": [0, 3], "x":4.5, "y":0}, | ||
{"label":"3", "matrix": [0, 4], "x":5.5, "y":0}, | ||
{"label":"4", "matrix": [0, 5], "x":6.5, "y":0}, | ||
{"label":"5", "matrix": [0, 6], "x":7.5, "y":0}, | ||
{"label":"6", "matrix": [0, 7], "x":8.5, "y":0}, | ||
{"label":"7", "matrix": [0, 8], "x":9.5, "y":0}, | ||
{"label":"8", "matrix": [0, 9], "x":10.5, "y":0}, | ||
{"label":"9", "matrix": [0, 10], "x":11.5, "y":0}, | ||
{"label":"0", "matrix": [0, 11], "x":12.5, "y":0}, | ||
{"label":"-", "matrix": [0, 12], "x":13.5, "y":0}, | ||
{"label":"=", "matrix": [0, 13], "x":14.5, "y":0}, | ||
{"label":"Backspace", "matrix": [0, 14], "x":15.5, "y":0, "w":2}, | ||
{"label":"Delete", "matrix": [0, 15], "x":17.5, "y":0}, | ||
|
||
{"label":"Tab", "matrix": [1, 1], "x":2.5, "y":1, "w":1.5}, | ||
{"label":"Q", "matrix": [1, 2], "x":4, "y":1}, | ||
{"label":"W", "matrix": [1, 3], "x":5, "y":1}, | ||
{"label":"E", "matrix": [1, 4], "x":6, "y":1}, | ||
{"label":"R", "matrix": [1, 5], "x":7, "y":1}, | ||
{"label":"T", "matrix": [1, 6], "x":8, "y":1}, | ||
{"label":"Y", "matrix": [1, 7], "x":9, "y":1}, | ||
{"label":"U", "matrix": [1, 8], "x":10, "y":1}, | ||
{"label":"I", "matrix": [1, 9], "x":11, "y":1}, | ||
{"label":"O", "matrix": [1, 10], "x":12, "y":1}, | ||
{"label":"P", "matrix": [1, 11], "x":13, "y":1}, | ||
{"label":"[", "matrix": [1, 12], "x":14, "y":1}, | ||
{"label":"]", "matrix": [1, 13], "x":15, "y":1}, | ||
{"label":"\\", "matrix": [1, 14], "x":16, "y":1, "w":1.5}, | ||
{"label":"PgUp", "matrix": [1, 15], "x":17.5, "y":1}, | ||
|
||
{"label":"F1", "matrix": [2, 2], "x":0, "y":2}, | ||
{"label":"F2", "matrix": [2, 0], "x":1, "y":2}, | ||
{"label":"Caps Lock", "matrix": [2, 1], "x":2.5, "y":2, "w":1.75}, | ||
{"label":"A", "matrix": [2, 3], "x":4.25, "y":2}, | ||
{"label":"S", "matrix": [2, 4], "x":5.25, "y":2}, | ||
{"label":"D", "matrix": [2, 5], "x":6.25, "y":2}, | ||
{"label":"F", "matrix": [2, 6], "x":7.25, "y":2}, | ||
{"label":"G", "matrix": [2, 7], "x":8.25, "y":2}, | ||
{"label":"H", "matrix": [2, 8], "x":9.25, "y":2}, | ||
{"label":"J", "matrix": [2, 9], "x":10.25, "y":2}, | ||
{"label":"K", "matrix": [2, 10], "x":11.25, "y":2}, | ||
{"label":"L", "matrix": [2, 11], "x":12.25, "y":2}, | ||
{"label":";", "matrix": [2, 12], "x":13.25, "y":2}, | ||
{"label":"'", "matrix": [2, 13], "x":14.25, "y":2}, | ||
{"label":"Enter", "matrix": [2, 14], "x":15.25, "y":2, "w":2.25}, | ||
{"label":"PgDn", "matrix": [2, 15], "x":17.5, "y":2}, | ||
|
||
{"label":"F3", "matrix": [3, 1], "x":0, "y":3}, | ||
{"label":"F4", "matrix": [3, 0], "x":1, "y":3}, | ||
{"label":"Shift", "matrix": [3, 2], "x":2.5, "y":3, "w":1.25}, | ||
{"label":"\u2298", "matrix": [0, 1], "x":3.75, "y":3, "w":1}, | ||
{"label":"Z", "matrix": [3, 3], "x":4.75, "y":3}, | ||
{"label":"X", "matrix": [3, 4], "x":5.75, "y":3}, | ||
{"label":"C", "matrix": [3, 5], "x":6.75, "y":3}, | ||
{"label":"V", "matrix": [3, 6], "x":7.75, "y":3}, | ||
{"label":"B", "matrix": [3, 7], "x":8.75, "y":3}, | ||
{"label":"N", "matrix": [3, 8], "x":9.75, "y":3}, | ||
{"label":"M", "matrix": [3, 9], "x":10.75, "y":3}, | ||
{"label":",", "matrix": [3, 10], "x":11.75, "y":3}, | ||
{"label":".", "matrix": [3, 11], "x":12.75, "y":3}, | ||
{"label":"/", "matrix": [3, 12], "x":13.75, "y":3}, | ||
{"label":"Shift", "matrix": [3, 13], "x":14.75, "y":3, "w":1.75}, | ||
{"label":"Up", "matrix": [3, 14], "x":16.5, "y":3}, | ||
{"label":"End", "matrix": [3, 15], "x":17.5, "y":3}, | ||
|
||
{"label":"F5", "matrix": [4, 3], "x":0, "y":4}, | ||
{"label":"F6", "matrix": [4, 0], "x":1, "y":4}, | ||
{"label":"Ctrl", "matrix": [4, 1], "x":2.5, "y":4, "w":1.25}, | ||
{"label":"GUI", "matrix": [4, 2], "x":3.75, "y":4, "w":1.25}, | ||
{"label":"Alt", "matrix": [4, 4], "x":5, "y":4, "w":1.25}, | ||
{"label":"Space", "matrix": [4, 7], "x":6.25, "y":4, "w":6.25}, | ||
{"label":"Alt", "matrix": [4, 10], "x":12.5, "y":4, "w":1.25}, | ||
{"label":"Ctrl", "matrix": [4, 11], "x":13.75, "y":4, "w":1.25}, | ||
{"label":"Left", "matrix": [4, 13], "x":15.5, "y":4}, | ||
{"label":"Down", "matrix": [4, 14], "x":16.5, "y":4}, | ||
{"label":"Right", "matrix": [4, 15], "x":17.5, "y":4} | ||
] | ||
} | ||
}, | ||
"encoder": { | ||
"rotary": [ | ||
{ "pin_a": "B7", "pin_b": "A4", "resolution": 2} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* Copyright 2023 David Hoelscher (@customMK) | ||
* | ||
* 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 | ||
|
||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
|
||
[0] = LAYOUT( | ||
KC_ESC, 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_DEL, | ||
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_PGUP, | ||
KC_F1, KC_F2, 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_ENT, KC_PGDN, | ||
KC_F3, KC_F4, 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, | ||
KC_F5, KC_F6, KC_LCTL, KC_LWIN, KC_LALT, KC_SPACE, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT), | ||
}; | ||
|
||
#if defined(ENCODER_MAP_ENABLE) | ||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { | ||
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), | ||
}; | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright 2023 David Hoelscher (@customMK) | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#pragma once | ||
|
||
// With 8k FRAM, max out dynamic keymap layers and macros | ||
// 5x16 matrix (160 bytes) and one encoder (4 bytes) consume 164 bytes per layer | ||
// 32 layers consumes 5248 bytes | ||
#define DYNAMIC_KEYMAP_LAYER_COUNT 32 | ||
|
||
// Most of the remaining space can be used for macros | ||
// QMK Macro keycode range allows up to 128 macros | ||
#define DYNAMIC_KEYMAP_MACRO_COUNT 128 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* Copyright 2023 David Hoelscher (@customMK) | ||
* | ||
* 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 | ||
|
||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
|
||
[0] = LAYOUT( | ||
KC_ESC, 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_DEL, | ||
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_PGUP, | ||
KC_F1, KC_F2, 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_ENT, KC_PGDN, | ||
KC_F3, KC_F4, 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, | ||
KC_F5, KC_F6, KC_LCTL, KC_LWIN, KC_LALT, KC_SPACE, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT), | ||
}; | ||
|
||
#if defined(ENCODER_MAP_ENABLE) | ||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { | ||
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) } | ||
}; | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
VIA_ENABLE = yes | ||
ENCODER_MAP_ENABLE = yes |
Oops, something went wrong.