Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tokyo Keyboard alix40 initial commit #11918

Merged
merged 25 commits into from
Feb 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
559220f
Enable battery BLE GATT service and introduced linear li-ion battery …
quadcube Mar 4, 2020
7b37cf6
Merge branch 'master' of git://github.com/qmk/qmk_firmware
Feb 3, 2021
14ff77f
Updated with alix40 source code. Rearranged into tokyokeyboard/
quadcube Feb 3, 2021
bf3566f
Updated readme with more info.
quadcube Feb 3, 2021
3822ab0
Added support for VIA.
quadcube Feb 3, 2021
bfd9888
Merge branch 'master' of https://github.com/quadcube/qmk_firmware
quadcube Feb 3, 2021
1f2744b
Updated readme with battery toggle switch indication
quadcube Feb 10, 2021
b64d812
Added VIA support for alix40
quadcube Feb 15, 2021
85d5d74
Merge branch 'master' of https://github.com/quadcube/qmk_firmware
quadcube Feb 15, 2021
5b8c41d
Removed modification for adafruit_ble.cpp
quadcube Feb 15, 2021
4924ba3
Revert "Removed modification for adafruit_ble.cpp"
quadcube Feb 15, 2021
a4f543e
Revert tmk_core/protocol/lufa/adafruit_ble.cpp back to qmk:master
quadcube Feb 15, 2021
e929e30
Removed not related keymap folder.
quadcube Feb 15, 2021
ebfacda
Updated info.json with correct keymap
quadcube Feb 15, 2021
551ab4f
Fixed lint check regarding missing layout issue
quadcube Feb 15, 2021
ae790b5
Added missing BATTERY_LEVEL_PIN declaration
quadcube Feb 17, 2021
85a9852
Resolved all requested change.
quadcube Feb 19, 2021
f311b8c
Revert tokyo60 files to ori.
quadcube Feb 19, 2021
5763e49
Added GPL2+ compatible license headers in all .h, .c files.
quadcube Feb 20, 2021
a380b25
Removed unused backup files.
quadcube Feb 20, 2021
72cb64a
Remove "/" from keymap files, clean up rules.mk, removed unused confi…
quadcube Feb 20, 2021
d18ea3e
Merge branch 'master' of https://github.com/quadcube/qmk_firmware
quadcube Feb 20, 2021
7f6121e
Removed redundant code in alix40,c, clean up rules.mk
quadcube Feb 20, 2021
60161f1
Update keyboards/tokyokeyboard/alix40/config.h
quadcube Feb 20, 2021
a14dc81
Remove description in config.h
quadcube Feb 20, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions keyboards/tokyokeyboard/alix40/alix40.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
Copyright 2021 quadcube <james@quadcube.xyz>
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 "alix40.h"
29 changes: 29 additions & 0 deletions keyboards/tokyokeyboard/alix40/alix40.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
Copyright 2021 quadcube <james@quadcube.xyz>
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

#include "quantum.h"

#define LAYOUT_40_alix( \
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \
K30, K31, K33, K34, K35, K36, K37, K38, K3A, K3B \
) { \
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \
{ K30, K31, KC_NO, K33, K34, K35, K36, K37, K38, KC_NO, K3A, K3B } \
}
71 changes: 71 additions & 0 deletions keyboards/tokyokeyboard/alix40/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
/*
Copyright 2021 quadcube <james@quadcube.xyz>
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
quadcube marked this conversation as resolved.
Show resolved Hide resolved

#include "config_common.h"

/* USB Device descriptor parameter */
#define VENDOR_ID 0x5143 // QC
#define PRODUCT_ID 0x4134 // A4
#define DEVICE_VER 0x0001
#define MANUFACTURER quadcube
#define PRODUCT alix40

/* key matrix size */
#define MATRIX_ROWS 4
#define MATRIX_COLS 12

/* number of backlight levels */
#define BACKLIGHT_PIN B7
#ifdef BACKLIGHT_PIN
#define BACKLIGHT_LEVELS 31
#define BACKLIGHT_BREATHING
#endif

/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION ROW2COL

/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
#define DEBOUNCE 5

/* key matrix pins */
#define MATRIX_ROW_PINS { D7, C6, C7, B5 }
#define MATRIX_COL_PINS { F7, F6, F5, F4, F1, F0, D0, D1, D2, D3, D5, D6 }
#define UNUSED_PINS

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE

/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE

#define RGB_DI_PIN B0
#ifdef RGB_DI_PIN
#define RGBLIGHT_ANIMATIONS
#define RGBLED_NUM 12
#define RGBLIGHT_HUE_STEP 10
#define RGBLIGHT_SAT_STEP 10
#define RGBLIGHT_VAL_STEP 10
#endif

/* For Production */
#define QMK_ESC_OUTPUT F7 // usually COL
#define QMK_ESC_INPUT D7 // usually ROW

/* Bluetooth */
#define AdafruitBleResetPin D4
#define AdafruitBleCSPin B4
#define AdafruitBleIRQPin E6
#define BATTERY_LEVEL_PIN B6
242 changes: 242 additions & 0 deletions keyboards/tokyokeyboard/alix40/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,242 @@
{
"keyboard_name": "alix40",
"url": "https://tokyokeyboard.com/",
"maintainer": "qmk",
"width": 12,
"height": 4,
"layouts": {
"LAYOUT_40_alix": {
"layout": [{
"label": "Tab",
"x": 0,
"y": 0
},
{
"label": "Q",
"x": 1,
"y": 0
},
{
"label": "W",
"x": 2,
"y": 0
},
{
"label": "E",
"x": 3,
"y": 0
},
{
"label": "R",
"x": 4,
"y": 0
},
{
"label": "T",
"x": 5,
"y": 0
},
{
"label": "Y",
"x": 7.5,
"y": 0
},
{
"label": "U",
"x": 8.5,
"y": 0
},
{
"label": "I",
"x": 9.5,
"y": 0
},
{
"label": "O",
"x": 10.5,
"y": 0
},
{
"label": "P",
"x": 11.5,
"y": 0
},
{
"label": "`",
"x": 12.5,
"y": 0
},
{
"label": "Esc",
"x": 0.25,
"y": 1
},
{
"label": "A",
"x": 1.25,
"y": 1
},
{
"label": "S",
"x": 2.25,
"y": 1
},
{
"label": "D",
"x": 3.25,
"y": 1
},
{
"label": "F",
"x": 4.25,
"y": 1
},
{
"label": "G",
"x": 5.25,
"y": 1
},
{
"label": "H",
"x": 7.75,
"y": 1
},
{
"label": "J",
"x": 8.75,
"y": 1
},
{
"label": "K",
"x": 9.75,
"y": 1
},
{
"label": "L",
"x": 10.75,
"y": 1
},
{
"label": ";",
"x": 11.75,
"y": 1
},
{
"label": "'",
"x": 12.75,
"y": 1
},
{
"label": "Shift",
"x": 0.75,
"y": 2
},
{
"label": "Z",
"x": 1.75,
"y": 2
},
{
"label": "X",
"x": 2.75,
"y": 2
},
{
"label": "C",
"x": 3.75,
"y": 2
},
{
"label": "V",
"x": 4.75,
"y": 2
},
{
"label": "B",
"x": 5.75,
"y": 2
},
{
"label": "Enter",
"x": 7.25,
"y": 2
},
{
"label": "N",
"x": 7.25,
"y": 2
},
{
"label": "M",
"x": 7.25,
"y": 2
},
{
"label": ",",
"x": 7.25,
"y": 2
},
{
"label": ".",
"x": 7.25,
"y": 2
},
{
"label": "/",
"x": 7.25,
"y": 2
},
{
"label": "Ctrl",
"x": 0.5,
"y": 3
},
{
"label": "Alt",
"x": 1.5,
"y": 3
},
{
"label": "Gui",
"x": 3.75,
"y": 3
},
{
"label": "NO",
"x": 4.75,
"y": 3
},
{
"label": "Bksp",
"x": 5.75,
"y": 3
},
{
"label": "Space",
"x": 7.25,
"y": 3
},
{
"label": "NO",
"x": 8.25,
"y": 3
},
{
"label": "Gui",
"x": 9.25,
"y": 3
},
{
"label": "[",
"x": 11.5,
"y": 3
},
{
"label": "]",
"x": 12.5,
"y": 3
}
]
}
}
}
Loading