forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Keyboard: Add HelixPico keyboard (qmk#3502)
- Loading branch information
1 parent
a7f6dd4
commit 9a7a76d
Showing
15 changed files
with
1,591 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
/* | ||
Copyright 2012 Jun Wako <[email protected]> | ||
Copyright 2015 Jack Humbert | ||
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/>. | ||
*/ | ||
|
||
#ifndef PICO_CONFIG_H | ||
#define PICO_CONFIG_H | ||
|
||
/* USB Device descriptor parameter */ | ||
#define VENDOR_ID 0xFEED | ||
#define PRODUCT_ID 0x3060 | ||
#define DEVICE_VER 0x0002 | ||
#define MANUFACTURER Yushakobo | ||
#define PRODUCT HelixPico | ||
#define DESCRIPTION A split keyboard for the cheap makers | ||
|
||
|
||
#define PREVENT_STUCK_MODIFIERS | ||
#define TAPPING_FORCE_HOLD | ||
#define TAPPING_TERM 100 | ||
|
||
/* Use I2C or Serial */ | ||
#define USE_I2C | ||
#define USE_SERIAL | ||
//#define USE_MATRIX_I2C | ||
|
||
/* Select hand configuration */ | ||
#define MASTER_LEFT | ||
// #define MASTER_RIGHT | ||
// #define EE_HANDS | ||
|
||
// Helix keyboard OLED support | ||
// see ./rules.mk: OLED_ENABLE=yes or no | ||
#ifdef OLED_ENABLE | ||
#define SSD1306OLED | ||
#endif | ||
|
||
/* key matrix size */ | ||
// Rows are doubled-up | ||
#define MATRIX_ROWS 8 | ||
#define MATRIX_ROW_PINS { D4, C6, D7, E6 } | ||
|
||
// wiring of each half | ||
#define MATRIX_COLS 7 | ||
#define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2 } | ||
// #define MATRIX_COL_PINS { B2, B3, B1, F7, F6, F5, F4 } //uncomment this line and comment line above if you need to reverse left-to-right key order | ||
|
||
/* define if matrix has ghost */ | ||
//#define MATRIX_HAS_GHOST | ||
|
||
/* number of backlight levels */ | ||
// #define BACKLIGHT_LEVELS 3 | ||
|
||
/* Set 0 if debouncing isn't needed */ | ||
#define DEBOUNCING_DELAY 5 | ||
|
||
/* 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 | ||
|
||
/* key combination for command */ | ||
#define IS_COMMAND() ( \ | ||
keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | ||
) | ||
|
||
/* Audio */ | ||
#ifdef AUDIO_ENABLE | ||
#define B5_AUDIO | ||
#endif | ||
|
||
/* ws2812 RGB LED */ | ||
#define RGB_DI_PIN D3 | ||
#define RGBLIGHT_TIMER | ||
//#define RGBLED_NUM 12 // Number of LEDs. see ./keymaps/default/config.h | ||
#define ws2812_PORTREG PORTD | ||
#define ws2812_DDRREG DDRD | ||
|
||
// Helix keyboard RGB LED support | ||
//#define RGBLIGHT_ANIMATIONS : see ./rules.mk: LED_ANIMATIONS = yes or no | ||
// see ./rules.mk: LED_BACK_ENABLE or LED_UNDERGLOW_ENABLE set yes | ||
#ifdef RGBLED_BACK | ||
#define RGBLED_NUM 25 | ||
#else | ||
#define RGBLED_NUM 6 | ||
#endif | ||
|
||
#ifndef IOS_DEVICE_ENABLE | ||
#if RGBLED_NUM <= 6 | ||
#define RGBLIGHT_LIMIT_VAL 255 | ||
#else | ||
#define RGBLIGHT_LIMIT_VAL 130 | ||
#endif | ||
#define RGBLIGHT_VAL_STEP 17 | ||
#else | ||
#if RGBLED_NUM <= 6 | ||
#define RGBLIGHT_LIMIT_VAL 90 | ||
#else | ||
#define RGBLIGHT_LIMIT_VAL 45 | ||
#endif | ||
#define RGBLIGHT_VAL_STEP 4 | ||
#endif | ||
#define RGBLIGHT_HUE_STEP 10 | ||
#define RGBLIGHT_SAT_STEP 17 | ||
|
||
#if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE) | ||
// USB_MAX_POWER_CONSUMPTION value for Helix keyboard | ||
// 120 RGBoff, OLEDoff | ||
// 120 OLED | ||
// 330 RGB 6 | ||
// 300 RGB 32 | ||
// 310 OLED & RGB 32 | ||
#define USB_MAX_POWER_CONSUMPTION 400 | ||
#else | ||
// fix iPhone and iPad power adapter issue | ||
// iOS device need lessthan 100 | ||
#define USB_MAX_POWER_CONSUMPTION 100 | ||
#endif | ||
|
||
/* | ||
* Feature disable options | ||
* These options are also useful to firmware size reduction. | ||
*/ | ||
|
||
/* disable debug print */ | ||
// #define NO_DEBUG | ||
|
||
/* disable print */ | ||
// #define NO_PRINT | ||
|
||
/* disable action features */ | ||
//#define NO_ACTION_LAYER | ||
//#define NO_ACTION_TAPPING | ||
//#define NO_ACTION_ONESHOT | ||
//#define NO_ACTION_MACRO | ||
//#define NO_ACTION_FUNCTION | ||
|
||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"keyboard_name": "HelixPico", | ||
"url": "https://github.com/MakotoKurauchi/helix", | ||
"maintainer": "MakotoKurauchi", | ||
"width": 15, | ||
"height": 4, | ||
"layouts": { | ||
"LAYOUT": { | ||
"key_count": 50, | ||
"layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":9, "y":0}, {"x":10, "y":0}, {"x":11, "y":0}, {"x":12, "y":0}, {"x":13, "y":0}, {"x":14, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1}, {"x":4, "y":1}, {"x":5, "y":1}, {"x":9, "y":1}, {"x":10, "y":1}, {"x":11, "y":1}, {"x":12, "y":1}, {"x":13, "y":1}, {"x":14, "y":1}, {"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}, {"x":3, "y":2}, {"x":4, "y":2}, {"x":5, "y":2}, {"x":9, "y":2}, {"x":10, "y":2}, {"x":11, "y":2}, {"x":12, "y":2}, {"x":13, "y":2}, {"x":14, "y":2}, {"x":0, "y":3}, {"x":1, "y":3}, {"x":2, "y":3}, {"x":3, "y":3}, {"x":4, "y":3}, {"x":5, "y":3}, {"x":6, "y":3}, {"x":8, "y":3}, {"x":9, "y":3}, {"x":10, "y":3}, {"x":11, "y":3}, {"x":12, "y":3}, {"x":13, "y":3}, {"x":14, "y":3}] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
This is the c configuration file for the keymap | ||
Copyright 2012 Jun Wako <[email protected]> | ||
Copyright 2015 Jack Humbert | ||
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/>. | ||
*/ | ||
|
||
#ifndef CONFIG_USER_H | ||
#define CONFIG_USER_H | ||
|
||
// place overrides here | ||
|
||
#ifdef AUDIO_ENABLE | ||
#define STARTUP_SONG SONG(STARTUP_SOUND) | ||
#define AUDIO_CLICKY | ||
#endif | ||
|
||
#endif /* CONFIG_USER_H */ |
Oops, something went wrong.