Skip to content

Commit e8aa5c1

Browse files
committed
squish qmk org since we only have one btrfly
1 parent 917a45d commit e8aa5c1

File tree

12 files changed

+45
-108
lines changed

12 files changed

+45
-108
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ C9 = B5 B6 = R4
3939
## Build QMK
4040
copy qmk/microdactyl to a new qmk checkout, under the keybaords/handwired directory
4141
```
42-
cp -a qmk/dactyl_squish $QMK_DIR/keyboards/handwired/
42+
cp -a qmk/btrfly $QMK_DIR/keyboards/handwired/
4343
```
4444
then flash by running the following from your qmk checkout
4545
```
46-
make handwired/dactyl_squish/squish:default:flash
46+
make handwired/btrfly:default:flash
4747
```
4848

4949
## Features

qmk/btrfly/btrfly.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
11
#include "btrfly.h"
2+
3+
4+
#ifdef SSD1306OLED
5+
void led_set_kb(uint8_t usb_led) {
6+
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
7+
led_set_user(usb_led);
8+
}
9+
#endif
10+
11+
void matrix_init_kb(void) {
12+
matrix_init_user();
13+
};

qmk/btrfly/btrfly.h

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,28 @@
11
#pragma once
22

3-
#ifdef KEYBOARD_handwired_btrfly
4-
#include "btrfly.h
5-
#endif
6-
73
#include "quantum.h"
84

9-
105
#ifdef USE_I2C
116
#include <stddef.h>
12-
#ifdef __AVR__
7+
#ifdef __AVK__
138
#include <avr/io.h>
149
#include <avr/interrupt.h>
1510
#endif
1611
#endif
12+
13+
#define LAYOUT(\
14+
K01, K02, K03, K04, K05, K06, K07, K08, K09, K10, \
15+
K11, K12, K13, K14, K15, K16, K17, K18, K19, K20, \
16+
K21, K22, K23, K24, K25, K26, K27, K28, K29, K30, \
17+
K31, K32, K35, K36, \
18+
K33, K34, \
19+
K40, K41, K42, K43, \
20+
K44, K45, K46, K47 \
21+
) \
22+
{ \
23+
{ K01, K02, K03, K04, K05, K06, K07, K08, K09, K10 }, \
24+
{ K11, K12, K13, K14, K15, K16, K17, K18, K19, K20 }, \
25+
{ K21, K22, K23, K24, K25, K26, K27, K28, K29, K30 }, \
26+
{ KC_NO, K31, K32, K33, KC_NO, KC_NO, K34, K35, K36, KC_NO }, \
27+
{ KC_NO, K44, K45, K40, K41, K42, K43, K46, K47, KC_NO } \
28+
}

qmk/btrfly/btrfly/btrfly.c

Lines changed: 0 additions & 14 deletions
This file was deleted.

qmk/btrfly/btrfly/btrfly.h

Lines changed: 0 additions & 29 deletions
This file was deleted.

qmk/btrfly/btrfly/config.h

Lines changed: 0 additions & 36 deletions
This file was deleted.

qmk/btrfly/btrfly/readme.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

qmk/btrfly/btrfly/rules.mk

Lines changed: 0 additions & 20 deletions
This file was deleted.

qmk/btrfly/config.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2323
/* USB Device descriptor parameter */
2424
#define VENDOR_ID 0x444D
2525
#define MANUFACTURER tshort
26+
#define PRODUCT_ID 0x3436
27+
#define DEVICE_VER 0x0001
2628

2729
/* mouse config */
2830
#define MOUSEKEY_INTERVAL 20
@@ -45,6 +47,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
4547
/* Enables This makes it easier for fast typists to use dual-function keys */
4648
#define PERMISSIVE_HOLD
4749

50+
/* key matrix size */
51+
#define MATRIX_ROWS 5
52+
#define MATRIX_COLS 10
53+
54+
// row-driven
55+
#define MATRIX_ROW_PINS { F7, B1, B3, B2, B6 }
56+
#define MATRIX_COL_PINS { D3, D2, D1, D0, D4, C6, D7, E6, B4, B5 }
57+
58+
/* COL2ROW or ROW2COL */
59+
#define DIODE_DIRECTION COL2ROW
60+
4861
/*
4962
* Feature disable options
5063
* These options are also useful to firmware size reduction.
File renamed without changes.

0 commit comments

Comments
 (0)