aboutsummaryrefslogtreecommitdiff
path: root/keyboards/lets_split/rev1
diff options
context:
space:
mode:
authorclimbalima <climbalima@gmail.com>2016-11-10 20:03:24 -0500
committerclimbalima <climbalima@gmail.com>2016-11-10 20:03:24 -0500
commitb5cecb4cc9df2d541050a9a95f48c1d5fb796ae4 (patch)
tree5603f3ee5774c11b103214a2d8e339291be1b42b /keyboards/lets_split/rev1
parent6e27f6fbde47804035d508eb84690ed7ee9acee7 (diff)
downloadqmk_firmware-b5cecb4cc9df2d541050a9a95f48c1d5fb796ae4.tar.gz
qmk_firmware-b5cecb4cc9df2d541050a9a95f48c1d5fb796ae4.zip
Added both revisions into one folder
Diffstat (limited to 'keyboards/lets_split/rev1')
-rw-r--r--keyboards/lets_split/rev1/config.h98
-rw-r--r--keyboards/lets_split/rev1/rev1.c30
-rw-r--r--keyboards/lets_split/rev1/rev1.h25
3 files changed, 153 insertions, 0 deletions
diff --git a/keyboards/lets_split/rev1/config.h b/keyboards/lets_split/rev1/config.h
new file mode 100644
index 000000000..b609ada07
--- /dev/null
+++ b/keyboards/lets_split/rev1/config.h
@@ -0,0 +1,98 @@
1/*
2Copyright 2012 Jun Wako <wakojun@gmail.com>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#ifndef CONFIG_H
19#define CONFIG_H
20
21#include "config_common.h"
22
23/* USB Device descriptor parameter */
24#define VENDOR_ID 0xFEED
25#define PRODUCT_ID 0x3060
26#define DEVICE_VER 0x0001
27#define MANUFACTURER Wootpatoot
28#define PRODUCT Lets Split v1
29#define DESCRIPTION A split keyboard for the cheap makers
30
31/* key matrix size */
32// Rows are doubled-up
33#define MATRIX_ROWS 8
34#define MATRIX_COLS 6
35
36// wiring of each half
37#define MATRIX_ROW_PINS { B5, B4, E6, D7 }
38#define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3 }
39
40#define CATERINA_BOOTLOADER
41
42// #define USE_I2C
43
44// #define EE_HANDS
45
46#define I2C_MASTER_LEFT
47// #define I2C_MASTER_RIGHT
48
49/* COL2ROW or ROW2COL */
50#define DIODE_DIRECTION COL2ROW
51
52/* define if matrix has ghost */
53//#define MATRIX_HAS_GHOST
54
55/* number of backlight levels */
56// #define BACKLIGHT_LEVELS 3
57
58/* Set 0 if debouncing isn't needed */
59#define DEBOUNCING_DELAY 5
60
61/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
62#define LOCKING_SUPPORT_ENABLE
63/* Locking resynchronize hack */
64#define LOCKING_RESYNC_ENABLE
65
66/* key combination for command */
67#define IS_COMMAND() ( \
68 keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
69)
70
71/* ws2812 RGB LED */
72#define ws2812_PORTREG PORTD
73#define ws2812_DDRREG DDRD
74#define ws2812_pin PD1
75#define RGBLED_NUM 28 // Number of LEDs
76#define RGBLIGHT_HUE_STEP 10
77#define RGBLIGHT_SAT_STEP 17
78#define RGBLIGHT_VAL_STEP 17
79
80/*
81 * Feature disable options
82 * These options are also useful to firmware size reduction.
83 */
84
85/* disable debug print */
86// #define NO_DEBUG
87
88/* disable print */
89// #define NO_PRINT
90
91/* disable action features */
92//#define NO_ACTION_LAYER
93//#define NO_ACTION_TAPPING
94//#define NO_ACTION_ONESHOT
95//#define NO_ACTION_MACRO
96//#define NO_ACTION_FUNCTION
97
98#endif \ No newline at end of file
diff --git a/keyboards/lets_split/rev1/rev1.c b/keyboards/lets_split/rev1/rev1.c
new file mode 100644
index 000000000..574c116a7
--- /dev/null
+++ b/keyboards/lets_split/rev1/rev1.c
@@ -0,0 +1,30 @@
1#include "lets_split.h"
2
3#ifdef AUDIO_ENABLE
4 float tone_startup[][2] = SONG(STARTUP_SOUND);
5 float tone_goodbye[][2] = SONG(GOODBYE_SOUND);
6#endif
7
8void matrix_init_kb(void) {
9
10 #ifdef AUDIO_ENABLE
11 _delay_ms(20); // gets rid of tick
12 PLAY_NOTE_ARRAY(tone_startup, false, 0);
13 #endif
14
15 // // green led on
16 // DDRD |= (1<<5);
17 // PORTD &= ~(1<<5);
18
19 // // orange led on
20 // DDRB |= (1<<0);
21 // PORTB &= ~(1<<0);
22
23 matrix_init_user();
24};
25
26void shutdown_user(void) {
27 PLAY_NOTE_ARRAY(tone_goodbye, false, 0);
28 _delay_ms(150);
29 stop_all_notes();
30}
diff --git a/keyboards/lets_split/rev1/rev1.h b/keyboards/lets_split/rev1/rev1.h
new file mode 100644
index 000000000..04fe0ddeb
--- /dev/null
+++ b/keyboards/lets_split/rev1/rev1.h
@@ -0,0 +1,25 @@
1#ifndef REV1_H
2#define REV1_H
3
4#include "quantum.h"
5
6void promicro_bootloader_jmp(bool program);
7
8#define KEYMAP( \
9 k00, k01, k02, k03, k04, k05, k40, k41, k42, k43, k44, k45, \
10 k10, k11, k12, k13, k14, k15, k50, k51, k52, k53, k54, k55, \
11 k20, k21, k22, k23, k24, k25, k60, k61, k62, k63, k64, k65, \
12 k30, k31, k32, k33, k34, k35, k70, k71, k72, k73, k74, k75 \
13 ) \
14 { \
15 { k00, k01, k02, k03, k04, k05 }, \
16 { k10, k11, k12, k13, k14, k15 }, \
17 { k20, k21, k22, k23, k24, k25 }, \
18 { k30, k31, k32, k33, k34, k35 }, \
19 { k40, k41, k42, k43, k44, k45 }, \
20 { k50, k51, k52, k53, k54, k55 }, \
21 { k60, k61, k62, k63, k64, k65 }, \
22 { k70, k71, k72, k73, k74, k75 } \
23 }
24
25#endif \ No newline at end of file