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

[Keyboard] New kbd 1k #15509

Merged
merged 169 commits into from
Apr 19, 2022
Merged
Show file tree
Hide file tree
Changes from 159 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 Mar 7, 2018
a40c08f
add define USB_MAX_POWER_CONSUMPTION
mtei Mar 7, 2018
c04f36a
Merge pull request #4 from mtei/helix-usb_max_power
MakotoKurauchi Mar 8, 2018
7c2c139
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Mar 9, 2018
cc82fd2
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Mar 11, 2018
c7ee4b3
Helix keyboard OLED, RGBLIGHT enable/disable control integrate into r…
mtei Mar 18, 2018
f323183
HELIX_ROWS define move from config.h to rules.mk
mtei Mar 19, 2018
e0d08f4
add readme.md
mtei Mar 19, 2018
2c10938
rename readme.md to readme_jp.md
mtei Mar 20, 2018
82ed2e1
add readme.md and modify readme_jp.md
mtei Mar 20, 2018
b15303c
Merge pull request #6 from mtei/helix-oled-rgb-compile-sw
MakotoKurauchi Mar 25, 2018
a76f98c
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Mar 25, 2018
277dc5f
change helix/ssd1306.c for select glcdfont.c position
mtei Apr 28, 2018
c5f7a06
add variable LOCAL_GLCDFONT into each keymaps rules.mk
mtei Apr 28, 2018
e12a65f
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Apr 30, 2018
476800d
Merge pull request #8 from mtei/helix-change-glcdfont_c
MakotoKurauchi Apr 30, 2018
838d0a3
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Apr 30, 2018
e8afac3
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi May 8, 2018
9557adc
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi May 8, 2018
d0d8721
Add iPhone/iPad LED support to Helix default keymap
mtei May 9, 2018
ec19ae5
Merge pull request #9 from mtei/helix-default-map-suport_ios
MakotoKurauchi May 9, 2018
1a8e506
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Jun 3, 2018
cf87d0f
renumber _ADJUST for shrink program size
mtei Jun 3, 2018
db05e51
Merge pull request #10 from mtei/helix-default-shrink
MakotoKurauchi Jun 4, 2018
7ff5365
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Jun 16, 2018
8128453
Fix Helix i2c wrong bit rate
mtei Jun 19, 2018
d768cfd
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Jun 21, 2018
cb5937e
Merge pull request #11 from mtei/helix-i2c-bps-fix
MakotoKurauchi Jun 21, 2018
281b7fa
add helix serial debug code
mtei Jun 22, 2018
e0c1a14
serial debug macro move from config.h to serial.h
mtei Jun 23, 2018
8c91470
helix serial.c debugging...
mtei Jun 23, 2018
98c3c85
refine debug macros
mtei Jun 23, 2018
3368406
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Jun 24, 2018
0c6840e
add some comments
mtei Jun 25, 2018
563d0ea
add SELECT_SERIAL_SPEED
mtei Jun 25, 2018
e56a0ae
add comments
mtei Jun 25, 2018
5f79b52
debugging sync_send/sync_recv
mtei Jun 25, 2018
734746f
add very high speed
mtei Jun 25, 2018
982f879
fix sync_send/sync_recv
mtei Jun 26, 2018
4b2a292
fix com. start and switch send/recv
mtei Jun 26, 2018
65b20a2
debug mode off
mtei Jun 26, 2018
4e4b157
remove debug codes
mtei Jun 26, 2018
913e801
Merge pull request #12 from mtei/helix-serial-bugfix
MakotoKurauchi Jun 28, 2018
7fedffe
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Jun 28, 2018
0254257
Merge branch 'master' of github.com:MakotoKurauchi/qmk_firmware
MakotoKurauchi Jun 28, 2018
d60b93d
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Jun 30, 2018
c927440
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Jun 30, 2018
da41928
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Jul 1, 2018
9cf141b
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Jul 1, 2018
7742e20
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Jul 5, 2018
a0018e6
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Jul 5, 2018
348c7c0
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Jul 8, 2018
e9730cb
temporary change, compiling C, C++ and ASM without -g
mtei Jul 10, 2018
1e54c0f
helix config.h refine
mtei Jul 10, 2018
92643bd
Revert "temporary change, compiling C, C++ and ASM without -g"
mtei Jul 11, 2018
475088c
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Jul 11, 2018
1a0f358
Merge pull request #13 from mtei/helix-config_refine
MakotoKurauchi Jul 11, 2018
2de6755
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Jul 14, 2018
7866a84
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Jul 19, 2018
babea44
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Jul 26, 2018
69ff909
txled, rxled off in matrix_init()
mtei Jul 14, 2018
fc08136
add change_reciver2sender()/change_sender2reciver()
mtei Jul 8, 2018
54e0f08
add serial_send_packet() / serial_recive_packet()
mtei Jul 18, 2018
04b552f
add serial_low() at ISR() top
mtei Jul 18, 2018
d26fce7
add __attribute__((always_inline)) to some functions
mtei Jul 19, 2018
518e613
modify serial_send_packet()/serial_recive_packet()
mtei Jul 19, 2018
7f5e5c4
add debug code to helix/serial.c
mtei Jul 19, 2018
4b945ac
Adjust sampling timing of serial signal being received
mtei Jul 19, 2018
8804993
add split_scomm.c/split_scomm.h and change serial.c/serial.h
mtei Jul 21, 2018
bae4bfe
add split_scomm.c/split_scomm.h into helix/rev1
mtei Jul 21, 2018
8ec5499
reduce object size helix/rev2/matrix.c
mtei Jul 21, 2018
f8370ac
remove checksum check, add parity check
mtei Jul 21, 2018
a7e41fe
force occur parity error for test
mtei Jul 21, 2018
1947f3d
parity test ok. remove test code
mtei Jul 21, 2018
7da9081
change some comment & add skip code when buffer_size == 0
mtei Jul 22, 2018
2b4f7d3
serial.c: multiple types of transaction support
mtei Jul 22, 2018
3f4cef6
helix serial master-slave transaction optimize
mtei Jul 22, 2018
d6540fd
add debug code for retry
mtei Jul 23, 2018
55bacb8
add comment into each config.h
mtei Jul 23, 2018
06d0f8a
fix ISR status drop
mtei Jul 24, 2018
0ccb3c7
add a debug macro 'debug_retry_chg()'
mtei Jul 24, 2018
fcb74de
reduce led_test size
mtei Jul 24, 2018
9a1b3ad
remove debug code from helix/serial.c and etc.
mtei Jul 24, 2018
7299d96
helix:five_rows change TAPPING_TERM value 140
mtei Jul 24, 2018
8142a3c
Improved compatibility with let's split of serial.c. Finish helix/ser…
mtei Aug 9, 2018
224b27f
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Aug 10, 2018
fea8037
Merge pull request #16 from mtei/helix-serial-improvement2
MakotoKurauchi Aug 10, 2018
7d33b53
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Aug 10, 2018
d2f3d38
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Aug 14, 2018
4a94b61
fix comment typo
mtei Aug 12, 2018
24c8069
Fix the value of helix:five_rows variable HELIX_ROWS to 5.
mtei Aug 12, 2018
b891c2d
led_test rules.mk some change
mtei Aug 12, 2018
57928b3
Separate common parts of helix/rev2/keymaps/*/rules.mk into helix/rev…
mtei Aug 12, 2018
6c39d96
helix/rev2/keymaps/edvorakjp/rules.mk use helix/rev2/keymaps_common.mk
mtei Aug 12, 2018
5e1dd62
Separate common parts of helix/pico/keymaps/*/rules.mk into helix/pic…
mtei Aug 14, 2018
0978779
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Aug 16, 2018
955dcbc
Merge pull request #17 from mtei/Helix-keymap-rules_mk-refine
MakotoKurauchi Aug 16, 2018
9f83aed
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Aug 24, 2018
d7adee8
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Aug 31, 2018
268602d
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Sep 16, 2018
d3eb984
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Sep 19, 2018
a97dfa2
Helix each keymap's using rgblight mode symbol instead magic number
mtei Oct 6, 2018
177d7fd
Helix pico keymaps: make rgblight modes selectable.
mtei Oct 6, 2018
559f36e
Helix rev2 keymaps: make rgblight modes selectable.
mtei Oct 6, 2018
695f525
fixed Helix froggy/keymap.c: invalid rgblight mode value 0 to 1 (=RGB…
mtei Oct 6, 2018
289e93c
Deselect RGB_TEST and ALTERNATING in Helix rev2,pico keymaps config.h.
mtei Oct 6, 2018
6187060
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Oct 7, 2018
eeb7d22
revert 955dcbc
MakotoKurauchi Oct 7, 2018
6e4c61b
Merge branch 'Helix-rgblight-mode-update' of https://github.com/mtei/…
MakotoKurauchi Oct 7, 2018
8779055
Merge branch 'mtei-Helix-rgblight-mode-update'
MakotoKurauchi Oct 7, 2018
56f95de
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Oct 20, 2018
26b702a
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Nov 6, 2018
20d8916
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Dec 9, 2018
a98eb3e
delete keymaps_common.mk
MakotoKurauchi Dec 9, 2018
12ec20a
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Dec 9, 2018
74f9801
add LAYOUT_kc() to keyboards/helix/pico/pico.h
mtei Dec 18, 2018
100d0d0
Merge pull request #19 from mtei/helixpico_add_LAYOUT_kc
MakotoKurauchi Dec 19, 2018
0e1333a
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Dec 19, 2018
59833fa
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Feb 26, 2019
eea7d42
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Apr 18, 2019
610fe1e
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Apr 22, 2019
04f6aaa
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Apr 27, 2019
85b0f41
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Apr 28, 2019
392263d
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Apr 30, 2019
6e15b10
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi May 21, 2019
48c6ae3
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Jun 10, 2019
5b8a3ec
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Jun 23, 2019
6f00369
Merge branch 'master' of github.com:MakotoKurauchi/qmk_firmware
MakotoKurauchi Jun 23, 2019
3214a3f
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Jun 29, 2019
0168ddd
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Jun 30, 2019
956cf01
Merge branch 'master' of github.com:MakotoKurauchi/qmk_firmware
MakotoKurauchi Sep 22, 2019
b89d362
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Sep 22, 2019
3c79e8e
reload lib/lufa
MakotoKurauchi Sep 22, 2019
80f2143
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Nov 13, 2019
02345a7
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Nov 24, 2019
47dd3fa
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Dec 4, 2019
70a8924
Merge branch 'master' of github.com:MakotoKurauchi/qmk_firmware
MakotoKurauchi Dec 4, 2019
64cf6c2
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Dec 25, 2019
62204d6
Merge branch 'master' of github.com:MakotoKurauchi/qmk_firmware
MakotoKurauchi Jan 8, 2020
6980931
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Feb 16, 2020
0184260
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Mar 8, 2020
ed6d869
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Mar 10, 2020
4952561
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Mar 10, 2020
2d8be1c
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Apr 4, 2020
557a26e
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Apr 22, 2020
535a413
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi May 2, 2020
5ca6bb0
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi May 5, 2020
009e94f
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Jun 2, 2020
b763957
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Jul 9, 2020
af9d4bf
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Oct 24, 2020
53abbd7
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Oct 25, 2020
a0a8e73
Merge branch 'qmk:master' into master
MakotoKurauchi Jul 27, 2021
a7f4598
Merge branch 'master' of https://github.com/qmk/qmk_firmware
MakotoKurauchi Dec 13, 2021
6702a87
add 1k keyboard
MakotoKurauchi Dec 14, 2021
1337033
Merge branch 'qmk:master' into 1k
MakotoKurauchi Dec 18, 2021
579ed2c
add hardware availability
MakotoKurauchi Dec 25, 2021
72e61f6
add a GPL2+ compatible license
MakotoKurauchi Jan 11, 2022
4eb701e
Merge branch '1k' of github.com:MakotoKurauchi/qmk_firmware into 1k
MakotoKurauchi Jan 11, 2022
56109cb
Update keyboards/1k/rules.mk
MakotoKurauchi Jan 11, 2022
2969a80
Update keyboards/1k/1k.h
MakotoKurauchi Jan 11, 2022
a6b6e33
Update keyboards/1k/info.json
MakotoKurauchi Jan 11, 2022
b22cf7a
Update keyboards/1k/keymaps/default/keymap.c
MakotoKurauchi Jan 11, 2022
ab943e2
Update keyboards/1k/keymaps/rgb_lite/keymap.c
MakotoKurauchi Jan 11, 2022
f99b8fd
Update keyboards/1k/keymaps/tap_dance/keymap.c
MakotoKurauchi Jan 11, 2022
27ef792
Changed not to use RGBLIGHT to reduce file size
MakotoKurauchi Jan 17, 2022
52cbc39
Added keymap with EXTRAKEY enabled
MakotoKurauchi Jan 17, 2022
2168a95
Incremental value fix
MakotoKurauchi Jan 17, 2022
295ba32
Merge remote-tracking branch 'upstream/master' into 1k
tzarc Apr 19, 2022
1df123f
Swap to "custom" bootloader.
tzarc Apr 19, 2022
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
16 changes: 16 additions & 0 deletions keyboards/1k/1k.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* Copyright 2020 zvecr<git@zvecr.com>
*
* 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"
33 changes: 33 additions & 0 deletions keyboards/1k/1k.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/* Copyright 2020 zvecr<git@zvecr.com>
*
* 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( \
MakotoKurauchi marked this conversation as resolved.
Show resolved Hide resolved
K01 \
) \
{ \
{ K01 }, \
}
60 changes: 60 additions & 0 deletions keyboards/1k/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/* Copyright 2020 zvecr<git@zvecr.com>
*
* 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
12 changes: 12 additions & 0 deletions keyboards/1k/info.json
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}
]
}
}
}
17 changes: 17 additions & 0 deletions keyboards/1k/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright 2022 Makoto Kurauchi (@MakotoKurauchi)
// SPDX-License-Identifier: GPL-2.0-or-later

#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
}
1 change: 1 addition & 0 deletions keyboards/1k/keymaps/default/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
RGBLIGHT_ENABLE = yes
31 changes: 31 additions & 0 deletions keyboards/1k/keymaps/rgb_lite/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// Copyright 2022 Makoto Kurauchi (@MakotoKurauchi)
// SPDX-License-Identifier: GPL-2.0-or-later

#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();
}
29 changes: 29 additions & 0 deletions keyboards/1k/keymaps/rgb_lite/rgblite.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// Copyright 2022 Makoto Kurauchi (@MakotoKurauchi)
// SPDX-License-Identifier: GPL-2.0-or-later

#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;
}
}
1 change: 1 addition & 0 deletions keyboards/1k/keymaps/rgb_lite/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SRC += ws2812.c
6 changes: 6 additions & 0 deletions keyboards/1k/keymaps/tap_dance/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Copyright 2022 Makoto Kurauchi (@MakotoKurauchi)
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once
MakotoKurauchi marked this conversation as resolved.
Show resolved Hide resolved

#define TAPPING_TERM 500
22 changes: 22 additions & 0 deletions keyboards/1k/keymaps/tap_dance/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Copyright 2022 Makoto Kurauchi (@MakotoKurauchi)
// SPDX-License-Identifier: GPL-2.0-or-later

#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)
)
};
1 change: 1 addition & 0 deletions keyboards/1k/keymaps/tap_dance/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TAP_DANCE_ENABLE = yes
47 changes: 47 additions & 0 deletions keyboards/1k/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# 1k

![1k](https://booth.pximg.net/aaeb2dda-e169-44c0-ba5a-5b42cc5c2627/i/3504781/c1708a8a-061b-4a6c-907d-72d0eab47d4a.png)

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)
26 changes: 26 additions & 0 deletions keyboards/1k/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# MCU name
MCU = attiny85

# Bootloader selection
BOOTLOADER = micronucleus
BOOTLOADER_SIZE = 1862
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