aboutsummaryrefslogtreecommitdiff
path: root/keyboards/naked64/rev1
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/naked64/rev1')
-rw-r--r--keyboards/naked64/rev1/config.h82
-rw-r--r--keyboards/naked64/rev1/rev1.c5
-rw-r--r--keyboards/naked64/rev1/rev1.h78
-rw-r--r--keyboards/naked64/rev1/rules.mk0
4 files changed, 165 insertions, 0 deletions
diff --git a/keyboards/naked64/rev1/config.h b/keyboards/naked64/rev1/config.h
new file mode 100644
index 000000000..2e48edbc0
--- /dev/null
+++ b/keyboards/naked64/rev1/config.h
@@ -0,0 +1,82 @@
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/* USB Device descriptor parameter */
22#define VENDOR_ID 0xFEED
23#define PRODUCT_ID 0x3060
24#define DEVICE_VER 0x0003
25#define MANUFACTURER Salicylic_Acid
26#define PRODUCT naked64
27#define DESCRIPTION A custom keyboard
28
29/* key matrix size */
30#define MATRIX_ROWS 16
31#define MATRIX_COLS 8
32
33// wiring of each half
34#define MATRIX_ROW_PINS { D1, D0, D4, C6, D7, E6, B4, B5 }
35#define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, D3 }
36#define MATRIX_ROW_PINS_RIGHT { D4, C6, D7, E6, B4, B5, B2, B2 }
37#define MATRIX_COL_PINS_RIGHT { F4, F5, F6, F7, B1, B3, B2, B6 }
38
39/* Set 0 if debouncing isn't needed */
40#define DEBOUNCE 5
41
42/* serial.c configuration for split keyboard */
43#define SOFT_SERIAL_PIN D2
44
45/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
46#define LOCKING_SUPPORT_ENABLE
47/* Locking resynchronize hack */
48#define LOCKING_RESYNC_ENABLE
49
50/* ws2812 RGB LED */
51#define RGB_DI_PIN B6
52
53#define RGBLED_NUM 12 // Number of LEDs
54#define RGBLIGHT_LED_MAP { 0, 1, 3, 2, 2, 3, 2, 3, 4, 5, 6, 7 }
55
56#ifndef IOS_DEVICE_ENABLE
57 #define RGBLIGHT_LIMIT_VAL 180
58 #define RGBLIGHT_VAL_STEP 17
59#else
60 #define RGBLIGHT_LIMIT_VAL 50
61 #define RGBLIGHT_VAL_STEP 4
62#endif
63#define RGBLIGHT_HUE_STEP 10
64#define RGBLIGHT_SAT_STEP 17
65
66// Selection of RGBLIGHT MODE to use.
67#define RGBLIGHT_EFFECT_BREATHING
68#define RGBLIGHT_EFFECT_SNAKE
69
70#if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE)
71// USB_MAX_POWER_CONSUMPTION value for naked48 keyboard
72// 120 RGBoff, OLEDoff
73// 120 OLED
74// 330 RGB 6
75// 300 RGB 32
76// 310 OLED & RGB 32
77 #define USB_MAX_POWER_CONSUMPTION 400
78#else
79 // fix iPhone and iPad power adapter issue
80 // iOS device need lessthan 100
81 #define USB_MAX_POWER_CONSUMPTION 100
82#endif
diff --git a/keyboards/naked64/rev1/rev1.c b/keyboards/naked64/rev1/rev1.c
new file mode 100644
index 000000000..d851f9782
--- /dev/null
+++ b/keyboards/naked64/rev1/rev1.c
@@ -0,0 +1,5 @@
1#include "rev1.h"
2
3void matrix_init_kb(void) {
4 matrix_init_user();
5};
diff --git a/keyboards/naked64/rev1/rev1.h b/keyboards/naked64/rev1/rev1.h
new file mode 100644
index 000000000..a0f83749d
--- /dev/null
+++ b/keyboards/naked64/rev1/rev1.h
@@ -0,0 +1,78 @@
1#pragma once
2
3#include "naked64.h"
4
5
6//////////////////////////////////////////////////////////////////////////////
7// When only use Naked64.
8//////////////////////////////////////////////////////////////////////////////
9/*
10 * ,------------------------------------------ -----------------------------------------.
11 * | L00 | L20 | L70 | L31 | L02 | L52 | L13 | | L63 | L34 | L05 | L45 | L16 | L66 | L37 |
12 * |------------------------------------------ ------------------------------------------+
13 * | L10 | L30 | L01 | L41 | L12 | L62 | L23 | | L73 | L44 | L15 | L55 | L26 | L76 | L47 |
14 * |------------------------------------------ ------------------------------------------+
15 * | L40 | L11 | L51 | L22 | L72 | L33 | | L04 | L54 | L25 | L65 | L36 | L07 | L57 |
16 * |------------------------------------ ------------------------------------------+
17 * | L50 | L21 | L61 | L32 | L03 | L43 | | L14 | L64 | L35 | L75 | L46 | L17 | L67 |
18 * |------------------------------------ ------------------------------------------+
19 * | L60 | | L71 | L42 | | L53 | | L24 | L74 | | L06 | L56 | L27 | L77 |
20 * |------------------------------------ ------------------------------------------'
21 */
22
23#define LAYOUT( \
24 L00, L20, L70, L31, L02, L52, L13, L63, L34, L05, L45, L16, L66, L37, \
25 L10, L30, L01, L41, L12, L62, L23, L73, L44, L15, L55, L26, L76, L47, \
26 L40, L11, L51, L22, L72, L33, L04, L54, L25, L65, L36, L07, L57, \
27 L50, L21, L61, L32, L03, L43, L14, L64, L35, L75, L46, L17, L67, \
28 L60, L71, L42, L53, L24, L74, L06, L56, L27, L77 \
29 ) \
30 { \
31 { L00, L01, L02, L03, L04, L05, L06, L07 }, \
32 { L10, L11, L12, L13, L14, L15, L16, L17 }, \
33 { L20, L21, L22, L23, L24, L25, L26, L27 }, \
34 { L30, L31, L32, L33, L34, L35, L36, L37 }, \
35 { L40, L41, L42, L43, L44, L45, L46, L47 }, \
36 { L50, L51, L52, L53, L54, L55, L56, L57 }, \
37 { L60, L61, L62, L63, L64, L65, L66, L67 }, \
38 { L70, L71, L72, L73, L74, L75, L76, L77 }, \
39 {KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO }, \
40 {KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO }, \
41 {KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO }, \
42 {KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO }, \
43 {KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO }, \
44 {KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO }, \
45 {KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO }, \
46 {KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO } \
47 }
48
49//////////////////////////////////////////////////////////////////////////////
50// When connecting Setta21 to Naked64.
51//////////////////////////////////////////////////////////////////////////////
52
53#define LAYOUT_with_setta21( \
54 L00, L20, L70, L31, L02, L52, L13, L63, L34, L05, L45, L16, L66, L37, R00, R01, R02, R03, R04, R05, \
55 L10, L30, L01, L41, L12, L62, L23, L73, L44, L15, L55, L26, L76, L47, R11, R12, R13, R14, R15, \
56 L40, L11, L51, L22, L72, L33, L04, L54, L25, L65, L36, L07, L57, R20, R21, R22, R23, R24, R25, \
57 L50, L21, L61, L32, L03, L43, L14, L64, L35, L75, L46, L17, L67, R30, R32, R34, R35, \
58 L60, L71, L42, L53, L24, L74, L06, L56, L27, L77 \
59 ) \
60 { \
61 { L00, L01, L02, L03, L04, L05, L06, L07 }, \
62 { L10, L11, L12, L13, L14, L15, L16, L17 }, \
63 { L20, L21, L22, L23, L24, L25, L26, L27 }, \
64 { L30, L31, L32, L33, L34, L35, L36, L37 }, \
65 { L40, L41, L42, L43, L44, L45, L46, L47 }, \
66 { L50, L51, L52, L53, L54, L55, L56, L57 }, \
67 { L60, L61, L62, L63, L64, L65, L66, L67 }, \
68 { L70, L71, L72, L73, L74, L75, L76, L77 }, \
69 { R00, R01, R02, R03, R04, R05,KC_NO,KC_NO }, \
70 {KC_NO, R11, R12, R13, R14, R15,KC_NO,KC_NO }, \
71 { R20, R21, R22, R23, R24, R25,KC_NO,KC_NO }, \
72 { R30,KC_NO, R32,KC_NO, R34, R35,KC_NO,KC_NO }, \
73 {KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO }, \
74 {KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO }, \
75 {KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO }, \
76 {KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO } \
77 }
78
diff --git a/keyboards/naked64/rev1/rules.mk b/keyboards/naked64/rev1/rules.mk
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/keyboards/naked64/rev1/rules.mk