aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/handwired/tractyl_manuform/5x6_right/5x6_right.h4
-rw-r--r--keyboards/handwired/tractyl_manuform/5x6_right/config.h2
-rw-r--r--keyboards/handwired/tractyl_manuform/5x6_right/elite_c/config.h52
-rw-r--r--keyboards/handwired/tractyl_manuform/5x6_right/elite_c/elite_c.h19
-rw-r--r--keyboards/handwired/tractyl_manuform/5x6_right/elite_c/rules.mk11
-rw-r--r--keyboards/handwired/tractyl_manuform/5x6_right/f411/config.h3
-rw-r--r--keyboards/handwired/tractyl_manuform/5x6_right/f411/readme.md3
-rw-r--r--keyboards/handwired/tractyl_manuform/5x6_right/keymaps/drashna/config.h5
-rw-r--r--keyboards/handwired/tractyl_manuform/5x6_right/keymaps/drashna/keymap.c9
-rw-r--r--keyboards/handwired/tractyl_manuform/5x6_right/teensy2pp/config.h1
10 files changed, 101 insertions, 8 deletions
diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/5x6_right.h b/keyboards/handwired/tractyl_manuform/5x6_right/5x6_right.h
index e481e7841..f171d4118 100644
--- a/keyboards/handwired/tractyl_manuform/5x6_right/5x6_right.h
+++ b/keyboards/handwired/tractyl_manuform/5x6_right/5x6_right.h
@@ -17,13 +17,17 @@
17#pragma once 17#pragma once
18 18
19#include "tractyl_manuform.h" 19#include "tractyl_manuform.h"
20
20#if defined(KEYBOARD_handwired_tractyl_manuform_5x6_right_f411) 21#if defined(KEYBOARD_handwired_tractyl_manuform_5x6_right_f411)
21# include "f411.h" 22# include "f411.h"
22#elif defined(KEYBOARD_handwired_tractyl_manuform_5x6_right_f303) 23#elif defined(KEYBOARD_handwired_tractyl_manuform_5x6_right_f303)
23# include "f303.h" 24# include "f303.h"
24#elif defined(KEYBOARD_handwired_tractyl_manuform_5x6_right_teensy2pp) 25#elif defined(KEYBOARD_handwired_tractyl_manuform_5x6_right_teensy2pp)
25# include "teensy2pp.h" 26# include "teensy2pp.h"
27#elif defined(KEYBOARD_handwired_tractyl_manuform_5x6_right_elite_c)
28# include "elite_c.h"
26#endif 29#endif
30
27#include "quantum.h" 31#include "quantum.h"
28 32
29#define ___ KC_NO 33#define ___ KC_NO
diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/config.h b/keyboards/handwired/tractyl_manuform/5x6_right/config.h
index d1860c337..cd42364b4 100644
--- a/keyboards/handwired/tractyl_manuform/5x6_right/config.h
+++ b/keyboards/handwired/tractyl_manuform/5x6_right/config.h
@@ -50,3 +50,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
50//#define NO_ACTION_ONESHOT 50//#define NO_ACTION_ONESHOT
51#define NO_ACTION_MACRO 51#define NO_ACTION_MACRO
52#define NO_ACTION_FUNCTION 52#define NO_ACTION_FUNCTION
53
54#define OLED_DISPLAY_128X64
diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/elite_c/config.h b/keyboards/handwired/tractyl_manuform/5x6_right/elite_c/config.h
new file mode 100644
index 000000000..9daec0cd8
--- /dev/null
+++ b/keyboards/handwired/tractyl_manuform/5x6_right/elite_c/config.h
@@ -0,0 +1,52 @@
1/*
2Copyright 2012 Jun Wako <wakojun@gmail.com>
3Copyright 2015 Jack Humbert
4
5This program is free software: you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation, either version 2 of the License, or
8(at your option) any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#pragma once
20
21#define PRODUCT Tractyl Manuform(5x6) Elite C
22
23// wiring of each half
24#define MATRIX_COL_PINS \
25 { D4, D7, E6, B4, B5, B7 }
26#define MATRIX_ROW_PINS \
27 { F7, F6, F5, F4, F1, F0 }
28
29#define DIODE_DIRECTION COL2ROW
30
31// WS2812 RGB LED strip input and number of LEDs
32#define RGB_DI_PIN D3
33#define RGBLED_NUM 20
34#define RGBLIGHT_SPLIT
35#define RGBLED_SPLIT \
36 { 10, 10 }
37#define RGBLIGHT_LIMIT_VAL 80
38#define OLED_BRIGHTNESS 50
39
40#define AUDIO_PIN C6
41
42/* serial.c configuration for split keyboard */
43#define SOFT_SERIAL_PIN D2
44#define EE_HANDS
45
46#define ENCODERS_PAD_A \
47 { D5 }
48#define ENCODERS_PAD_B \
49 { C7 }
50
51/* PMW3360 Settings */
52#define PMW3360_CS_PIN B6
diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/elite_c/elite_c.h b/keyboards/handwired/tractyl_manuform/5x6_right/elite_c/elite_c.h
new file mode 100644
index 000000000..525b0378b
--- /dev/null
+++ b/keyboards/handwired/tractyl_manuform/5x6_right/elite_c/elite_c.h
@@ -0,0 +1,19 @@
1/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
2 *
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 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#pragma once
18
19#include "5x6_right.h"
diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/elite_c/rules.mk b/keyboards/handwired/tractyl_manuform/5x6_right/elite_c/rules.mk
new file mode 100644
index 000000000..e594097f8
--- /dev/null
+++ b/keyboards/handwired/tractyl_manuform/5x6_right/elite_c/rules.mk
@@ -0,0 +1,11 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
6
7LTO_ENABLE := yes
8RGBLIGHT_ENABLE = no
9OLED_ENABLE = no
10AUDIO_ENABLE = no
11ENCODER_ENABLE = no
diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/f411/config.h b/keyboards/handwired/tractyl_manuform/5x6_right/f411/config.h
index b2a240f9f..172ccf7bc 100644
--- a/keyboards/handwired/tractyl_manuform/5x6_right/f411/config.h
+++ b/keyboards/handwired/tractyl_manuform/5x6_right/f411/config.h
@@ -39,6 +39,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
39#define WS2812_PWM_DRIVER PWMD2 // default: PWMD2 39#define WS2812_PWM_DRIVER PWMD2 // default: PWMD2
40#define WS2812_PWM_CHANNEL 2 // default: 2 40#define WS2812_PWM_CHANNEL 2 // default: 2
41#define WS2812_PWM_PAL_MODE 1 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 2 41#define WS2812_PWM_PAL_MODE 1 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 2
42#define WS2812_EXTERNAL_PULLUP
42//#define WS2812_PWM_COMPLEMENTARY_OUTPUT // Define for a complementary timer output (TIMx_CHyN); omit for a normal timer output (TIMx_CHy). 43//#define WS2812_PWM_COMPLEMENTARY_OUTPUT // Define for a complementary timer output (TIMx_CHyN); omit for a normal timer output (TIMx_CHy).
43#define WS2812_DMA_STREAM STM32_DMA1_STREAM7 // DMA Stream for TIMx_UP, see the respective reference manual for the appropriate values for your MCU. 44#define WS2812_DMA_STREAM STM32_DMA1_STREAM7 // DMA Stream for TIMx_UP, see the respective reference manual for the appropriate values for your MCU.
44#define WS2812_DMA_CHANNEL 3 // DMA Channel for TIMx_UP, see the respective reference manual for the appropriate values for your MCU. 45#define WS2812_DMA_CHANNEL 3 // DMA Channel for TIMx_UP, see the respective reference manual for the appropriate values for your MCU.
@@ -47,7 +48,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
47#define RGBLIGHT_SPLIT 48#define RGBLIGHT_SPLIT
48#define RGBLED_SPLIT \ 49#define RGBLED_SPLIT \
49 { 10, 10 } 50 { 10, 10 }
50#define RGBLIGHT_LIMIT_VAL 80 51#define RGBLIGHT_LMIT_VAL 80
51 52
52#define DEBUG_LED_PIN C13 53#define DEBUG_LED_PIN C13
53 54
diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/f411/readme.md b/keyboards/handwired/tractyl_manuform/5x6_right/f411/readme.md
index 637761381..5fb2c0fc7 100644
--- a/keyboards/handwired/tractyl_manuform/5x6_right/f411/readme.md
+++ b/keyboards/handwired/tractyl_manuform/5x6_right/f411/readme.md
@@ -9,7 +9,8 @@
9* 8KB SPI EEPROM chip sharing PA5-PA7 on SPI1 with PA4 as CS pin 9* 8KB SPI EEPROM chip sharing PA5-PA7 on SPI1 with PA4 as CS pin
10* Encoder using PA13 and PA14 10* Encoder using PA13 and PA14
11* SSD1306 OLED display (128x64) using PB8-PB9 on I2C1 11* SSD1306 OLED display (128x64) using PB8-PB9 on I2C1
12* Pull-up resistor (22k) on A10 to fix reset issue. 12* Pull-up resistor (22k) on PA10 to fix reset issue.
13* Pull-up resistor (5.1k) on PA1 for WS2812 LED support, and wire it's VCC to the 5V pin.
13 14
14* Keyboard Maintainer: [Drashna Jael're](https://github.com/drashna) 15* Keyboard Maintainer: [Drashna Jael're](https://github.com/drashna)
15* Hardware Supported: [Design files](https://gitlab.com/keyboards1/dm_r_track/-/tree/master/boolean), [WeAct BlackPill (F411)](https://github.com/WeActTC/MiniSTM32F4x1), [PMW3360 Optical Sensor](https://www.tindie.com/products/jkicklighter/pmw3360-motion-sensor/) 16* Hardware Supported: [Design files](https://gitlab.com/keyboards1/dm_r_track/-/tree/master/boolean), [WeAct BlackPill (F411)](https://github.com/WeActTC/MiniSTM32F4x1), [PMW3360 Optical Sensor](https://www.tindie.com/products/jkicklighter/pmw3360-motion-sensor/)
diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/keymaps/drashna/config.h b/keyboards/handwired/tractyl_manuform/5x6_right/keymaps/drashna/config.h
index 21bc8e616..df3e877f9 100644
--- a/keyboards/handwired/tractyl_manuform/5x6_right/keymaps/drashna/config.h
+++ b/keyboards/handwired/tractyl_manuform/5x6_right/keymaps/drashna/config.h
@@ -24,13 +24,8 @@
24 24
25#define TRACKBALL_DPI_OPTIONS { 1200, 1800, 2600, 3400 } 25#define TRACKBALL_DPI_OPTIONS { 1200, 1800, 2600, 3400 }
26 26
27#define RGBLIGHT_MAX_BRIGHTNESS 60
28
29#undef DEBOUNCE 27#undef DEBOUNCE
30#define DEBOUNCE 10 28#define DEBOUNCE 10
31 29
32#define SOLENOID_PIN F1 30#define SOLENOID_PIN F1
33#define SOLENOID_DEFAULT_DWELL 8 31#define SOLENOID_DEFAULT_DWELL 8
34
35#define OLED_DISPLAY_128X64
36#define OLED_BRIGHTNESS 50
diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/keymaps/drashna/keymap.c b/keyboards/handwired/tractyl_manuform/5x6_right/keymaps/drashna/keymap.c
index f20920633..be2938ebf 100644
--- a/keyboards/handwired/tractyl_manuform/5x6_right/keymaps/drashna/keymap.c
+++ b/keyboards/handwired/tractyl_manuform/5x6_right/keymaps/drashna/keymap.c
@@ -348,9 +348,16 @@ void render_kitty(void) {
348 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x06, 0x04, 0x04, 0x04, 0x04, 0x05, 0x04, 0x04, 0x04, 0x07, 0x07, 0x07, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}}; 348 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x06, 0x04, 0x04, 0x04, 0x04, 0x05, 0x04, 0x04, 0x04, 0x07, 0x07, 0x07, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}};
349 349
350 // assumes 1 frame prep stage 350 // assumes 1 frame prep stage
351#ifdef SWAP_HANDS_ENABLE
351 extern bool swap_hands; 352 extern bool swap_hands;
353#endif
352 void animation_phase(void) { 354 void animation_phase(void) {
353 if (tap_toggling) { 355# ifdef SWAP_HANDS_ENABLE
356 if (swap_hands)
357#else
358 if (tap_toggling)
359#endif
360 {
354 anim_frame_duration = 300; 361 anim_frame_duration = 300;
355 current_rtogi_frame = (current_rtogi_frame + 1) % RTOGI_FRAMES; 362 current_rtogi_frame = (current_rtogi_frame + 1) % RTOGI_FRAMES;
356 oled_write_raw_P(rtogi[abs((RTOGI_FRAMES - 1) - current_rtogi_frame)], ANIM_SIZE); 363 oled_write_raw_P(rtogi[abs((RTOGI_FRAMES - 1) - current_rtogi_frame)], ANIM_SIZE);
diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/teensy2pp/config.h b/keyboards/handwired/tractyl_manuform/5x6_right/teensy2pp/config.h
index 239102059..442d47492 100644
--- a/keyboards/handwired/tractyl_manuform/5x6_right/teensy2pp/config.h
+++ b/keyboards/handwired/tractyl_manuform/5x6_right/teensy2pp/config.h
@@ -35,6 +35,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
35#define RGBLED_SPLIT \ 35#define RGBLED_SPLIT \
36 { 10, 10 } 36 { 10, 10 }
37#define RGBLIGHT_LIMIT_VAL 80 37#define RGBLIGHT_LIMIT_VAL 80
38#define OLED_BRIGHTNESS 50
38 39
39#define DEBUG_LED_PIN D6 40#define DEBUG_LED_PIN D6
40 41