-
-
Notifications
You must be signed in to change notification settings - Fork 42.1k
[Keyboard] New kbd 1k #15509
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
Merged
Merged
[Keyboard] New kbd 1k #15509
Changes from 156 commits
Commits
Show all changes
169 commits
Select commit
Hold shift + click to select a range
655ed16
add some comment about Helix customize and auto-setup RGBLIGHT_LIMIT_VAL
mtei a40c08f
add define USB_MAX_POWER_CONSUMPTION
mtei c04f36a
Merge pull request #4 from mtei/helix-usb_max_power
MakotoKurauchi 7c2c139
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi cc82fd2
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi c7ee4b3
Helix keyboard OLED, RGBLIGHT enable/disable control integrate into r…
mtei f323183
HELIX_ROWS define move from config.h to rules.mk
mtei e0d08f4
add readme.md
mtei 2c10938
rename readme.md to readme_jp.md
mtei 82ed2e1
add readme.md and modify readme_jp.md
mtei b15303c
Merge pull request #6 from mtei/helix-oled-rgb-compile-sw
MakotoKurauchi a76f98c
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 277dc5f
change helix/ssd1306.c for select glcdfont.c position
mtei c5f7a06
add variable LOCAL_GLCDFONT into each keymaps rules.mk
mtei e12a65f
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 476800d
Merge pull request #8 from mtei/helix-change-glcdfont_c
MakotoKurauchi 838d0a3
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi e8afac3
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 9557adc
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi d0d8721
Add iPhone/iPad LED support to Helix default keymap
mtei ec19ae5
Merge pull request #9 from mtei/helix-default-map-suport_ios
MakotoKurauchi 1a8e506
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi cf87d0f
renumber _ADJUST for shrink program size
mtei db05e51
Merge pull request #10 from mtei/helix-default-shrink
MakotoKurauchi 7ff5365
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 8128453
Fix Helix i2c wrong bit rate
mtei d768cfd
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi cb5937e
Merge pull request #11 from mtei/helix-i2c-bps-fix
MakotoKurauchi 281b7fa
add helix serial debug code
mtei e0c1a14
serial debug macro move from config.h to serial.h
mtei 8c91470
helix serial.c debugging...
mtei 98c3c85
refine debug macros
mtei 3368406
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 0c6840e
add some comments
mtei 563d0ea
add SELECT_SERIAL_SPEED
mtei e56a0ae
add comments
mtei 5f79b52
debugging sync_send/sync_recv
mtei 734746f
add very high speed
mtei 982f879
fix sync_send/sync_recv
mtei 4b2a292
fix com. start and switch send/recv
mtei 65b20a2
debug mode off
mtei 4e4b157
remove debug codes
mtei 913e801
Merge pull request #12 from mtei/helix-serial-bugfix
MakotoKurauchi 7fedffe
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 0254257
Merge branch 'master' of github.com:MakotoKurauchi/qmk_firmware
MakotoKurauchi d60b93d
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi c927440
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi da41928
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 9cf141b
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 7742e20
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi a0018e6
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 348c7c0
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi e9730cb
temporary change, compiling C, C++ and ASM without -g
mtei 1e54c0f
helix config.h refine
mtei 92643bd
Revert "temporary change, compiling C, C++ and ASM without -g"
mtei 475088c
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 1a0f358
Merge pull request #13 from mtei/helix-config_refine
MakotoKurauchi 2de6755
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 7866a84
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi babea44
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 69ff909
txled, rxled off in matrix_init()
mtei fc08136
add change_reciver2sender()/change_sender2reciver()
mtei 54e0f08
add serial_send_packet() / serial_recive_packet()
mtei 04b552f
add serial_low() at ISR() top
mtei d26fce7
add __attribute__((always_inline)) to some functions
mtei 518e613
modify serial_send_packet()/serial_recive_packet()
mtei 7f5e5c4
add debug code to helix/serial.c
mtei 4b945ac
Adjust sampling timing of serial signal being received
mtei 8804993
add split_scomm.c/split_scomm.h and change serial.c/serial.h
mtei bae4bfe
add split_scomm.c/split_scomm.h into helix/rev1
mtei 8ec5499
reduce object size helix/rev2/matrix.c
mtei f8370ac
remove checksum check, add parity check
mtei a7e41fe
force occur parity error for test
mtei 1947f3d
parity test ok. remove test code
mtei 7da9081
change some comment & add skip code when buffer_size == 0
mtei 2b4f7d3
serial.c: multiple types of transaction support
mtei 3f4cef6
helix serial master-slave transaction optimize
mtei d6540fd
add debug code for retry
mtei 55bacb8
add comment into each config.h
mtei 06d0f8a
fix ISR status drop
mtei 0ccb3c7
add a debug macro 'debug_retry_chg()'
mtei fcb74de
reduce led_test size
mtei 9a1b3ad
remove debug code from helix/serial.c and etc.
mtei 7299d96
helix:five_rows change TAPPING_TERM value 140
mtei 8142a3c
Improved compatibility with let's split of serial.c. Finish helix/ser…
mtei 224b27f
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi fea8037
Merge pull request #16 from mtei/helix-serial-improvement2
MakotoKurauchi 7d33b53
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi d2f3d38
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 4a94b61
fix comment typo
mtei 24c8069
Fix the value of helix:five_rows variable HELIX_ROWS to 5.
mtei b891c2d
led_test rules.mk some change
mtei 57928b3
Separate common parts of helix/rev2/keymaps/*/rules.mk into helix/rev…
mtei 6c39d96
helix/rev2/keymaps/edvorakjp/rules.mk use helix/rev2/keymaps_common.mk
mtei 5e1dd62
Separate common parts of helix/pico/keymaps/*/rules.mk into helix/pic…
mtei 0978779
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 955dcbc
Merge pull request #17 from mtei/Helix-keymap-rules_mk-refine
MakotoKurauchi 9f83aed
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi d7adee8
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 268602d
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi d3eb984
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi a97dfa2
Helix each keymap's using rgblight mode symbol instead magic number
mtei 177d7fd
Helix pico keymaps: make rgblight modes selectable.
mtei 559f36e
Helix rev2 keymaps: make rgblight modes selectable.
mtei 695f525
fixed Helix froggy/keymap.c: invalid rgblight mode value 0 to 1 (=RGB…
mtei 289e93c
Deselect RGB_TEST and ALTERNATING in Helix rev2,pico keymaps config.h.
mtei 6187060
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi eeb7d22
revert 955dcbc
MakotoKurauchi 6e4c61b
Merge branch 'Helix-rgblight-mode-update' of https://github.com/mtei/…
MakotoKurauchi 8779055
Merge branch 'mtei-Helix-rgblight-mode-update'
MakotoKurauchi 56f95de
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 26b702a
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 20d8916
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi a98eb3e
delete keymaps_common.mk
MakotoKurauchi 12ec20a
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 74f9801
add LAYOUT_kc() to keyboards/helix/pico/pico.h
mtei 100d0d0
Merge pull request #19 from mtei/helixpico_add_LAYOUT_kc
MakotoKurauchi 0e1333a
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 59833fa
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi eea7d42
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 610fe1e
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 04f6aaa
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 85b0f41
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 392263d
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 6e15b10
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 48c6ae3
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 5b8a3ec
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 6f00369
Merge branch 'master' of github.com:MakotoKurauchi/qmk_firmware
MakotoKurauchi 3214a3f
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 0168ddd
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 956cf01
Merge branch 'master' of github.com:MakotoKurauchi/qmk_firmware
MakotoKurauchi b89d362
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 3c79e8e
reload lib/lufa
MakotoKurauchi 80f2143
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 02345a7
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 47dd3fa
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 70a8924
Merge branch 'master' of github.com:MakotoKurauchi/qmk_firmware
MakotoKurauchi 64cf6c2
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 62204d6
Merge branch 'master' of github.com:MakotoKurauchi/qmk_firmware
MakotoKurauchi 6980931
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 0184260
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi ed6d869
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 4952561
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 2d8be1c
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 557a26e
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 535a413
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 5ca6bb0
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 009e94f
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi b763957
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi af9d4bf
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 53abbd7
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi a0a8e73
Merge branch 'qmk:master' into master
MakotoKurauchi a7f4598
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi 6702a87
add 1k keyboard
MakotoKurauchi 1337033
Merge branch 'qmk:master' into 1k
MakotoKurauchi 579ed2c
add hardware availability
MakotoKurauchi 72e61f6
add a GPL2+ compatible license
MakotoKurauchi 4eb701e
Merge branch '1k' of github.com:MakotoKurauchi/qmk_firmware into 1k
MakotoKurauchi 56109cb
Update keyboards/1k/rules.mk
MakotoKurauchi 2969a80
Update keyboards/1k/1k.h
MakotoKurauchi a6b6e33
Update keyboards/1k/info.json
MakotoKurauchi b22cf7a
Update keyboards/1k/keymaps/default/keymap.c
MakotoKurauchi ab943e2
Update keyboards/1k/keymaps/rgb_lite/keymap.c
MakotoKurauchi f99b8fd
Update keyboards/1k/keymaps/tap_dance/keymap.c
MakotoKurauchi 27ef792
Changed not to use RGBLIGHT to reduce file size
MakotoKurauchi 52cbc39
Added keymap with EXTRAKEY enabled
MakotoKurauchi 2168a95
Incremental value fix
MakotoKurauchi 295ba32
Merge remote-tracking branch 'upstream/master' into 1k
tzarc 1df123f
Swap to "custom" bootloader.
tzarc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,16 @@ | ||
/* Copyright 2020 zvecr<[email protected]> | ||
* | ||
* 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 "1k.h" |
This file contains hidden or 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,33 @@ | ||
/* Copyright 2020 zvecr<[email protected]> | ||
* | ||
* 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" | ||
|
||
/* This a shortcut to help you visually see your layout. | ||
* | ||
* The first section contains all of the arguments representing the physical | ||
* layout of the board and position of the keys. | ||
* | ||
* The second converts the arguments into a two-dimensional array which | ||
* represents the switch matrix. | ||
*/ | ||
#define LAYOUT( \ | ||
K01 \ | ||
) \ | ||
{ \ | ||
{ K01 }, \ | ||
} |
This file contains hidden or 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,60 @@ | ||
/* Copyright 2020 zvecr<[email protected]> | ||
* | ||
* 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 "config_common.h" | ||
|
||
/* USB Device descriptor parameter */ | ||
#define VENDOR_ID 0x0009 | ||
#define PRODUCT_ID 0x0001 | ||
#define DEVICE_VER 0x0001 | ||
#define MANUFACTURER MakotoKurauchi | ||
#define PRODUCT 1K | ||
|
||
/* matrix size */ | ||
#define MATRIX_ROWS 1 | ||
#define MATRIX_COLS 1 | ||
|
||
/* | ||
* Keyboard Matrix Assignments | ||
* | ||
* On this board we have direct connection: no diodes. | ||
*/ | ||
#define DIRECT_PINS {{ B0 }} | ||
|
||
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
#define DEBOUNCE 5 | ||
|
||
#define RGBLED_NUM 1 | ||
#define RGB_DI_PIN B2 | ||
|
||
// Save as much space as we can... | ||
#define LAYER_STATE_8BIT | ||
#define NO_ACTION_LAYER | ||
#define NO_ACTION_TAPPING | ||
#define NO_ACTION_ONESHOT | ||
#define NO_RESET | ||
|
||
// usbconfig.h overrides | ||
#define USB_CFG_IOPORTNAME B | ||
#define USB_CFG_DMINUS_BIT 3 | ||
#define USB_CFG_DPLUS_BIT 4 | ||
#define USB_COUNT_SOF 0 | ||
#define USB_INTR_CFG PCMSK | ||
#define USB_INTR_CFG_SET (1<<USB_CFG_DPLUS_BIT) | ||
#define USB_INTR_ENABLE_BIT PCIE | ||
#define USB_INTR_PENDING_BIT PCIF | ||
#define USB_INTR_VECTOR SIG_PIN_CHANGE |
This file contains hidden or 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,12 @@ | ||
{ | ||
"keyboard_name": "1k", | ||
"url": "", | ||
"maintainer": "MakotoKurauchi", | ||
"layouts": { | ||
"LAYOUT": { | ||
MakotoKurauchi marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"layout": [ | ||
{"x":0, "y":0} | ||
] | ||
} | ||
} | ||
} |
This file contains hidden or 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,14 @@ | ||
#include QMK_KEYBOARD_H | ||
MakotoKurauchi marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
|
||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
[0] = LAYOUT( | ||
MakotoKurauchi marked this conversation as resolved.
Show resolved
Hide resolved
|
||
RGB_HUI | ||
) | ||
}; | ||
|
||
void keyboard_post_init_user(void) { | ||
rgblight_enable_noeeprom(); // enables Rgb, without saving settings | ||
rgblight_sethsv_noeeprom(180, 255, 255); // sets the color to teal/cyan without saving | ||
rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_LIGHT); // sets mode to Fast breathing without saving | ||
} |
This file contains hidden or 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 @@ | ||
RGBLIGHT_ENABLE = yes |
This file contains hidden or 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,28 @@ | ||
#include QMK_KEYBOARD_H | ||
MakotoKurauchi marked this conversation as resolved.
Show resolved
Hide resolved
|
||
#include "rgblite.h" | ||
|
||
// Defines the keycodes used by our macros in process_record_user | ||
enum custom_keycodes { | ||
QMKURL = SAFE_RANGE, | ||
}; | ||
|
||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
[0] = LAYOUT( | ||
MakotoKurauchi marked this conversation as resolved.
Show resolved
Hide resolved
|
||
RGB_HUI | ||
) | ||
}; | ||
|
||
bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
if (record->event.pressed) { | ||
switch (keycode) { | ||
case RGB_HUI: | ||
rgblite_increase_hue(); | ||
break; | ||
} | ||
} | ||
return true; | ||
} | ||
|
||
void keyboard_post_init_user(void) { | ||
rgblite_increase_hue(); | ||
} |
This file contains hidden or 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,26 @@ | ||
#pragma once | ||
MakotoKurauchi marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
#include "ws2812.h" | ||
#include "color.h" | ||
|
||
static inline void rgblite_setrgb(uint8_t _r, uint8_t _g, uint8_t _b) { | ||
LED_TYPE leds[RGBLED_NUM] = {{.r = _r, .g = _g, .b = _b}}; | ||
ws2812_setleds(leds, RGBLED_NUM); | ||
} | ||
|
||
static void rgblite_increase_hue(void) { | ||
static uint8_t state = 0; | ||
|
||
state = (state + 1) % 3; | ||
switch (state) { | ||
case 1: | ||
rgblite_setrgb(RGB_RED); | ||
break; | ||
case 2: | ||
rgblite_setrgb(RGB_BLUE); | ||
break; | ||
default: | ||
rgblite_setrgb(RGB_GREEN); | ||
break; | ||
} | ||
} |
This file contains hidden or 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 @@ | ||
SRC += ws2812.c |
This file contains hidden or 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,3 @@ | ||
#pragma once | ||
MakotoKurauchi marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
#define TAPPING_TERM 500 |
This file contains hidden or 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,19 @@ | ||
#include QMK_KEYBOARD_H | ||
MakotoKurauchi marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
enum layers { | ||
_BASE = 0, | ||
}; | ||
|
||
enum { | ||
TD_AB = 0 | ||
}; | ||
|
||
qk_tap_dance_action_t tap_dance_actions[] = { | ||
[TD_AB] = ACTION_TAP_DANCE_DOUBLE(KC_A, KC_B) | ||
}; | ||
|
||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
[_BASE] = LAYOUT( | ||
MakotoKurauchi marked this conversation as resolved.
Show resolved
Hide resolved
|
||
TD(TD_AB) | ||
) | ||
}; |
This file contains hidden or 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 @@ | ||
TAP_DANCE_ENABLE = yes |
This file contains hidden or 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,47 @@ | ||
# 1k | ||
|
||
 | ||
|
||
1% Custom mechanical keyboard. ATtiny85 powered, with 1*WS2812 LED, and the micronucleus bootloader. | ||
|
||
**Note**: Due to limited firmware space, a _**lot**_ of features have to be disabled to get a functioning QMK based keyboard. | ||
|
||
* Keyboard Maintainer: [MakotoKurauchi](https://github.com/MakotoKurauchi) | ||
* Hardware Supported: 1k | ||
* Hardware Availability: [booth](https://ninep.booth.pm/items/3504781) | ||
|
||
Make example for this keyboard (after setting up your build environment): | ||
|
||
make 1k:default | ||
|
||
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). | ||
|
||
## Flashing | ||
### Prerequisites | ||
|
||
```bash | ||
git clone https://github.com/micronucleus/micronucleus.git | ||
cd micronucleus/commandline/ | ||
sudo make install | ||
``` | ||
|
||
On Linux, you’ll need proper privileges to access the MCU. You can either use sudo when flashing firmware, or place [these files](https://github.com/micronucleus/micronucleus/blob/master/commandline/49-micronucleus.rules) in /etc/udev/rules.d/. Once added run the following: | ||
|
||
```bash | ||
sudo udevadm control --reload-rules | ||
sudo udevadm trigger | ||
``` | ||
|
||
### Instructions | ||
|
||
```bash | ||
make 1k:default:flash | ||
|
||
# or directly with... | ||
micronucleus --run <firmware.hex> | ||
``` | ||
|
||
### Recovery | ||
|
||
* [Original Firmware](https://github.com/xiudi/Attiny85_vusb_pad_test) | ||
* [Bootloader Repair](https://digistump.com/wiki/digispark/tutorials/proisp) |
This file contains hidden or 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,26 @@ | ||
# MCU name | ||
MCU = attiny85 | ||
|
||
# Bootloader selection | ||
BOOTLOADER = micronucleus | ||
OPT_DEFS += -DBOOTLOADER_SIZE=1862 | ||
MakotoKurauchi marked this conversation as resolved.
Show resolved
Hide resolved
|
||
PROGRAM_CMD = micronucleus --run $(BUILD_DIR)/$(TARGET).hex | ||
|
||
# Build Options | ||
# change yes to no to disable | ||
# | ||
BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite | ||
MOUSEKEY_ENABLE = no # Mouse keys | ||
EXTRAKEY_ENABLE = no # Audio control and System control | ||
CONSOLE_ENABLE = no # Console for debug | ||
COMMAND_ENABLE = no # Commands for debug and configuration | ||
NKRO_ENABLE = no # Enable N-Key Rollover | ||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
AUDIO_ENABLE = no # Audio output | ||
|
||
# Save as much space as we can... | ||
LTO_ENABLE = yes | ||
GRAVE_ESC_ENABLE = no | ||
MAGIC_ENABLE = no | ||
SPACE_CADET_ENABLE = no |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.