mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-08-05 05:52:08 +00:00
Compare commits
290 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
b2d0e8a491 | ||
![]() |
18babeae49 | ||
![]() |
59bf018e9f | ||
![]() |
445ea64699 | ||
![]() |
237dd23491 | ||
![]() |
58f8c7f9c3 | ||
![]() |
1d49076b81 | ||
![]() |
f69b652127 | ||
![]() |
fe686570ca | ||
![]() |
0bf0644aa2 | ||
![]() |
2c94f98995 | ||
![]() |
69315cb643 | ||
![]() |
09f9bdd3d1 | ||
![]() |
908b20313c | ||
![]() |
59d499edd3 | ||
![]() |
758891aa44 | ||
![]() |
780ca5565d | ||
![]() |
420f6c4b2e | ||
![]() |
63f4345f4c | ||
![]() |
c5e29b25c4 | ||
![]() |
faa6c93648 | ||
![]() |
4779e2d56c | ||
![]() |
c0de49e393 | ||
![]() |
3bb66d1585 | ||
![]() |
8fa2d43b38 | ||
![]() |
80a9649c4f | ||
![]() |
7db826dce8 | ||
![]() |
d712670922 | ||
![]() |
588fd8c2d0 | ||
![]() |
3f91b2b8f8 | ||
![]() |
72f9c4c0d3 | ||
![]() |
6bec7fb3fe | ||
![]() |
c1361005fa | ||
![]() |
6ce6a94216 | ||
![]() |
d02c4c5241 | ||
![]() |
92a787ca4c | ||
![]() |
4c4b4b6e0d | ||
![]() |
42045f5b17 | ||
![]() |
64da7413a0 | ||
![]() |
53b35052ee | ||
![]() |
5691f1341d | ||
![]() |
bad9592a18 | ||
![]() |
162842f16e | ||
![]() |
c27f16158d | ||
![]() |
6937f1d70e | ||
![]() |
a0d9221dcc | ||
![]() |
7e8d97f8f0 | ||
![]() |
0e7e52c820 | ||
![]() |
88ca4ec2cb | ||
![]() |
2a34e07ff9 | ||
![]() |
bd5d3c879e | ||
![]() |
c1e1166991 | ||
![]() |
50690b2d5c | ||
![]() |
ffb85b1f5d | ||
![]() |
c65aecc53a | ||
![]() |
66836effda | ||
![]() |
711f861d83 | ||
![]() |
bf7e19e997 | ||
![]() |
deea6a9826 | ||
![]() |
eda8c94c60 | ||
![]() |
829075ffef | ||
![]() |
8ab6efdc80 | ||
![]() |
5d0cc13fcf | ||
![]() |
92543a7cb5 | ||
![]() |
944cf6476e | ||
![]() |
29c9c6bf56 | ||
![]() |
78693dfa31 | ||
![]() |
d6701b3ac7 | ||
![]() |
05a4583ce8 | ||
![]() |
7d774fa1dc | ||
![]() |
3a7573436a | ||
![]() |
7e77c2361f | ||
![]() |
188c0bacb0 | ||
![]() |
a7d79f4c00 | ||
![]() |
3b663ee495 | ||
![]() |
7a08b9d374 | ||
![]() |
c16a3dcb54 | ||
![]() |
71d8e72b80 | ||
![]() |
c03ad0f802 | ||
![]() |
b79ee92a12 | ||
![]() |
111eb8990d | ||
![]() |
4e8166750b | ||
![]() |
1328ab7c7d | ||
![]() |
9a070475ef | ||
![]() |
eacb596d8b | ||
![]() |
1bb9f155a6 | ||
![]() |
6db22011a5 | ||
![]() |
45bec2d281 | ||
![]() |
eba512596a | ||
![]() |
d28d474dc0 | ||
![]() |
c0728bd189 | ||
![]() |
71f067a60e | ||
![]() |
974d3f1ffd | ||
![]() |
e6a90c8b04 | ||
![]() |
2cdc3699e1 | ||
![]() |
e0ed2c950d | ||
![]() |
4ed67d666e | ||
![]() |
1e1b469fa2 | ||
![]() |
49dcc824db | ||
![]() |
62f304a225 | ||
![]() |
d24fe4f1ca | ||
![]() |
677789df77 | ||
![]() |
1dc466d22b | ||
![]() |
993982a985 | ||
![]() |
01bc8e3b52 | ||
![]() |
dfb8a29718 | ||
![]() |
3bb1897bdc | ||
![]() |
03bacec87d | ||
![]() |
cc3f2e2865 | ||
![]() |
e524e0a397 | ||
![]() |
da40242dbc | ||
![]() |
f0f6174136 | ||
![]() |
d9785ec313 | ||
![]() |
c628408688 | ||
![]() |
3d70766327 | ||
![]() |
0bf0977c02 | ||
![]() |
fe14907039 | ||
![]() |
d72f5435fb | ||
![]() |
8cf5f72aad | ||
![]() |
6009a91514 | ||
![]() |
84e2f1ec17 | ||
![]() |
f519a9908e | ||
![]() |
f1b06d0ae7 | ||
![]() |
345a041cf5 | ||
![]() |
e9f73e5454 | ||
![]() |
f325bd6eb2 | ||
![]() |
3525a61baf | ||
![]() |
c46619d8fb | ||
![]() |
b323ab89e0 | ||
![]() |
1f633c027b | ||
![]() |
1f38221ec5 | ||
![]() |
68c3773c8e | ||
![]() |
5dfb6459df | ||
![]() |
d97d4794e0 | ||
![]() |
b48a5b573f | ||
![]() |
eb0ce0abc7 | ||
![]() |
501f3ed419 | ||
![]() |
8ea28429e9 | ||
![]() |
214528b1e7 | ||
![]() |
523c8315a2 | ||
![]() |
73235e7ca0 | ||
![]() |
72ca319bee | ||
![]() |
b5c2e5e8fd | ||
![]() |
6e931cc90b | ||
![]() |
6368a5697d | ||
![]() |
09835033da | ||
![]() |
b297f1ce8d | ||
![]() |
c81e07fef5 | ||
![]() |
1eaad6dd65 | ||
![]() |
5e46f72f75 | ||
![]() |
16d43af493 | ||
![]() |
68f321f24b | ||
![]() |
8729afece5 | ||
![]() |
5127ef1f02 | ||
![]() |
e941f04891 | ||
![]() |
11bd51441b | ||
![]() |
76e88e228b | ||
![]() |
554b937d21 | ||
![]() |
b113888ec5 | ||
![]() |
f8cbad20ab | ||
![]() |
6b2f9e3015 | ||
![]() |
d8b9825a8b | ||
![]() |
aa0e33eca0 | ||
![]() |
407e5be34d | ||
![]() |
4d96b85b6f | ||
![]() |
d877f40b70 | ||
![]() |
ebfe668fff | ||
![]() |
e71f7a1c9f | ||
![]() |
2e0f4d7e2a | ||
![]() |
83176b748a | ||
![]() |
0728200e28 | ||
![]() |
8e70c4d943 | ||
![]() |
68b58624d6 | ||
![]() |
4ae5c3a905 | ||
![]() |
4c48518a4e | ||
![]() |
135d28d2fb | ||
![]() |
fd80b2581e | ||
![]() |
beace23bca | ||
![]() |
abda419f5a | ||
![]() |
29fcd5418a | ||
![]() |
3f6de1ef54 | ||
![]() |
b1419742a5 | ||
![]() |
65d8ac4759 | ||
![]() |
8657f54f9e | ||
![]() |
466424c3c2 | ||
![]() |
efbaf68d5a | ||
![]() |
e688f2286f | ||
![]() |
ffd8ff642d | ||
![]() |
6edbd845eb | ||
![]() |
46b3245d66 | ||
![]() |
d58d7dd192 | ||
![]() |
acdcc62202 | ||
![]() |
9d10c66cf0 | ||
![]() |
6caef353a5 | ||
![]() |
c85e2a8822 | ||
![]() |
3dc5e5af38 | ||
![]() |
0500a2e0f1 | ||
![]() |
d54289db58 | ||
![]() |
95a1496ebc | ||
![]() |
06a6b23e60 | ||
![]() |
1be7485fa4 | ||
![]() |
19e2bb272e | ||
![]() |
6d9b4c7b4f | ||
![]() |
b609a07b45 | ||
![]() |
2574bc2791 | ||
![]() |
985b8cab7c | ||
![]() |
581368596e | ||
![]() |
832a6e150a | ||
![]() |
8b735d35aa | ||
![]() |
b7b82d509b | ||
![]() |
bf959d79dc | ||
![]() |
bca88177d3 | ||
![]() |
515cea4b78 | ||
![]() |
748b3ac82a | ||
![]() |
634eac82e8 | ||
![]() |
11599bea93 | ||
![]() |
115aa95788 | ||
![]() |
340fc9dce3 | ||
![]() |
db8e88aae0 | ||
![]() |
495a61ad7a | ||
![]() |
dd356f90b0 | ||
![]() |
6009e7d8b5 | ||
![]() |
3edfb93d5d | ||
![]() |
34513b4665 | ||
![]() |
3d1e7bd36f | ||
![]() |
375ef0b8c3 | ||
![]() |
f03b10b6c1 | ||
![]() |
810eafad12 | ||
![]() |
c38fe49242 | ||
![]() |
d1e10a067b | ||
![]() |
acec174fde | ||
![]() |
070240f212 | ||
![]() |
f3ac792c09 | ||
![]() |
b3de903a3d | ||
![]() |
c07543133a | ||
![]() |
2e9d091960 | ||
![]() |
13efa8290e | ||
![]() |
988715910c | ||
![]() |
8da9219c16 | ||
![]() |
d321cb3f8b | ||
![]() |
8ed9eb9c7f | ||
![]() |
1d2a9a1cdb | ||
![]() |
fcd921f3aa | ||
![]() |
e11d3d524d | ||
![]() |
c01a8b030e | ||
![]() |
b5fc6f0682 | ||
![]() |
08fdf086b7 | ||
![]() |
aab056a4a6 | ||
![]() |
565a038a3d | ||
![]() |
53e9213a22 | ||
![]() |
a68d289fa5 | ||
![]() |
4ef4347543 | ||
![]() |
028d2c91dc | ||
![]() |
9f690c94b8 | ||
![]() |
6169b47e82 | ||
![]() |
10096fc42e | ||
![]() |
5e5ee3f8de | ||
![]() |
7071900407 | ||
![]() |
6f6e28b4c7 | ||
![]() |
411b92e206 | ||
![]() |
1aa8a3b424 | ||
![]() |
0f5f6a6a75 | ||
![]() |
a038b712d0 | ||
![]() |
ca8df55858 | ||
![]() |
fda514bbd7 | ||
![]() |
c9156b50d9 | ||
![]() |
992380a5dd | ||
![]() |
b4ea0a70be | ||
![]() |
c89930ca01 | ||
![]() |
a94044c15c | ||
![]() |
457042f179 | ||
![]() |
944feb2da5 | ||
![]() |
b49c657ac1 | ||
![]() |
ac433b218d | ||
![]() |
8ee03f6a6b | ||
![]() |
0c4663a802 | ||
![]() |
5d0c0e7c12 | ||
![]() |
bea897caf1 | ||
![]() |
e85d904fe1 | ||
![]() |
12568fb5a9 | ||
![]() |
824e1cd95d | ||
![]() |
2573ed8c6b | ||
![]() |
25d9cdc88f | ||
![]() |
962b8d3814 | ||
![]() |
122cf3ad0f | ||
![]() |
5edfdeff50 | ||
![]() |
221d8fd866 | ||
![]() |
3300164065 | ||
![]() |
55843480ff | ||
![]() |
5fde2d730c |
73
Makefile
73
Makefile
@@ -68,37 +68,8 @@ PATH_ELEMENTS := $(subst /, ,$(STARTING_DIR))
|
|||||||
# Initialize the path elements list for further processing
|
# Initialize the path elements list for further processing
|
||||||
$(eval $(call NEXT_PATH_ELEMENT))
|
$(eval $(call NEXT_PATH_ELEMENT))
|
||||||
|
|
||||||
# This function sets the KEYBOARD; KEYMAP and SUBPROJECT to the correct
|
|
||||||
# variables depending on which directory you stand in.
|
|
||||||
# It's really a very simple if else chain, if you squint enough,
|
|
||||||
# but the makefile syntax makes it very verbose.
|
|
||||||
# If we are in a subfolder of keyboards
|
|
||||||
#
|
|
||||||
# *** No longer needed **
|
|
||||||
#
|
|
||||||
# ifeq ($(CURRENT_PATH_ELEMENT),keyboards)
|
|
||||||
# $(eval $(call NEXT_PATH_ELEMENT))
|
|
||||||
# KEYBOARD := $(CURRENT_PATH_ELEMENT)
|
|
||||||
# $(eval $(call NEXT_PATH_ELEMENT))
|
|
||||||
# # If we are in a subfolder of keymaps, or in other words in a keymap
|
|
||||||
# # folder
|
|
||||||
# ifeq ($(CURRENT_PATH_ELEMENT),keymaps)
|
|
||||||
# $(eval $(call NEXT_PATH_ELEMENT))
|
|
||||||
# KEYMAP := $(CURRENT_PATH_ELEMENT)
|
|
||||||
# # else if we are not in the keyboard folder itself
|
|
||||||
# else ifneq ($(CURRENT_PATH_ELEMENT),)
|
|
||||||
# # the we can assume it's a subproject, as no other folders
|
|
||||||
# # should have make files in them
|
|
||||||
# SUBPROJECT := $(CURRENT_PATH_ELEMENT)
|
|
||||||
# $(eval $(call NEXT_PATH_ELEMENT))
|
|
||||||
# # if we are inside a keymap folder of a subproject
|
|
||||||
# ifeq ($(CURRENT_PATH_ELEMENT),keymaps)
|
|
||||||
# $(eval $(call NEXT_PATH_ELEMENT))
|
|
||||||
# KEYMAP := $(CURRENT_PATH_ELEMENT)
|
|
||||||
# endif
|
|
||||||
# endif
|
|
||||||
# endif
|
|
||||||
|
|
||||||
|
# Phony targets to enable a few simple make commands outside the main processing below.
|
||||||
.PHONY: list-keyboards
|
.PHONY: list-keyboards
|
||||||
list-keyboards:
|
list-keyboards:
|
||||||
util/list_keyboards.sh | sort -u | tr '\n' ' '
|
util/list_keyboards.sh | sort -u | tr '\n' ' '
|
||||||
@@ -131,7 +102,6 @@ endif
|
|||||||
# Uncomment these for debugging
|
# Uncomment these for debugging
|
||||||
# $(info Keyboard: $(KEYBOARD))
|
# $(info Keyboard: $(KEYBOARD))
|
||||||
# $(info Keymap: $(KEYMAP))
|
# $(info Keymap: $(KEYMAP))
|
||||||
# $(info Subproject: $(SUBPROJECT))
|
|
||||||
|
|
||||||
|
|
||||||
# Set the default goal depending on where we are running make from
|
# Set the default goal depending on where we are running make from
|
||||||
@@ -189,7 +159,6 @@ endef
|
|||||||
# A recursive helper function for finding the longest match
|
# A recursive helper function for finding the longest match
|
||||||
# $1 The list to be checked
|
# $1 The list to be checked
|
||||||
# It works by always removing the currently matched item from the list
|
# It works by always removing the currently matched item from the list
|
||||||
# and call itself recursively, until a match is found
|
|
||||||
define TRY_TO_MATCH_RULE_FROM_LIST_HELPER2
|
define TRY_TO_MATCH_RULE_FROM_LIST_HELPER2
|
||||||
# Stop the recursion when the list is empty
|
# Stop the recursion when the list is empty
|
||||||
ifneq ($1,)
|
ifneq ($1,)
|
||||||
@@ -386,23 +355,6 @@ define PARSE_ALL_KEYBOARDS
|
|||||||
$$(eval $$(call PARSE_ALL_IN_LIST,PARSE_KEYBOARD,$(shell util/list_keyboards.sh noci | sort -u)))
|
$$(eval $$(call PARSE_ALL_IN_LIST,PARSE_KEYBOARD,$(shell util/list_keyboards.sh noci | sort -u)))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# $1 Subproject
|
|
||||||
# When entering this, the keyboard and subproject are known, so now we need
|
|
||||||
# to determine which keymaps are going to get compiled
|
|
||||||
# define PARSE_SUBPROJECT
|
|
||||||
|
|
||||||
# endef
|
|
||||||
|
|
||||||
# If we want to parse all subprojects, but the keyboard doesn't have any,
|
|
||||||
# then use defaultsp instead
|
|
||||||
# define PARSE_ALL_SUBPROJECTS
|
|
||||||
# ifeq ($$(SUBPROJECTS),)
|
|
||||||
# $$(eval $$(call PARSE_SUBPROJECT,defaultsp))
|
|
||||||
# else
|
|
||||||
# $$(eval $$(call PARSE_ALL_IN_LIST,PARSE_SUBPROJECT,$$(SUBPROJECTS)))
|
|
||||||
# endif
|
|
||||||
# endef
|
|
||||||
|
|
||||||
# Prints a list of all known keymaps for the given keyboard
|
# Prints a list of all known keymaps for the given keyboard
|
||||||
define LIST_ALL_KEYMAPS
|
define LIST_ALL_KEYMAPS
|
||||||
COMMAND_true_LIST_KEYMAPS := \
|
COMMAND_true_LIST_KEYMAPS := \
|
||||||
@@ -544,12 +496,12 @@ if [ $$error_occurred -gt 0 ]; then $(HANDLE_ERROR); fi;
|
|||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# Let's match everything, we handle all the rule parsing ourselves
|
# Catch everything and parse the command line ourselves.
|
||||||
.PHONY: %
|
.PHONY: %
|
||||||
%:
|
%:
|
||||||
# Check if we have the CMP tool installed
|
# Check if we have the CMP tool installed
|
||||||
cmp $(ROOT_DIR)/Makefile $(ROOT_DIR)/Makefile >/dev/null 2>&1; if [ $$? -gt 0 ]; then printf "$(MSG_NO_CMP)"; exit 1; fi;
|
cmp $(ROOT_DIR)/Makefile $(ROOT_DIR)/Makefile >/dev/null 2>&1; if [ $$? -gt 0 ]; then printf "$(MSG_NO_CMP)"; exit 1; fi;
|
||||||
# Ensure that bin/qmk works. This will be a failing check after the next develop merge on 2020 Aug 29.
|
# Ensure that bin/qmk works. This will be a failing check after the next develop merge
|
||||||
if ! bin/qmk hello 1> /dev/null 2>&1; then printf "$(MSG_PYTHON_MISSING)"; fi
|
if ! bin/qmk hello 1> /dev/null 2>&1; then printf "$(MSG_PYTHON_MISSING)"; fi
|
||||||
# Check if the submodules are dirty, and display a warning if they are
|
# Check if the submodules are dirty, and display a warning if they are
|
||||||
ifndef SKIP_GIT
|
ifndef SKIP_GIT
|
||||||
@@ -580,25 +532,6 @@ endif
|
|||||||
$(foreach TEST,$(sort $(TESTS)),$(RUN_TEST))
|
$(foreach TEST,$(sort $(TESTS)),$(RUN_TEST))
|
||||||
if [ -f $(ERROR_FILE) ]; then printf "$(MSG_ERRORS)" & exit 1; fi;
|
if [ -f $(ERROR_FILE) ]; then printf "$(MSG_ERRORS)" & exit 1; fi;
|
||||||
|
|
||||||
# These no longer work because of the colon system
|
|
||||||
|
|
||||||
# All should compile everything
|
|
||||||
# .PHONY: all
|
|
||||||
# all: all-keyboards test-all
|
|
||||||
|
|
||||||
# Define some shortcuts, mostly for compatibility with the old syntax
|
|
||||||
# .PHONY: all-keyboards
|
|
||||||
# all-keyboards: all\:all\:all
|
|
||||||
|
|
||||||
# .PHONY: all-keyboards-defaults
|
|
||||||
# all-keyboards-defaults: all\:default
|
|
||||||
|
|
||||||
# .PHONY: test
|
|
||||||
# test: test-all
|
|
||||||
|
|
||||||
# .PHONY: test-clean
|
|
||||||
# test-clean: test-all-clean
|
|
||||||
|
|
||||||
lib/%:
|
lib/%:
|
||||||
git submodule sync $?
|
git submodule sync $?
|
||||||
git submodule update --init $?
|
git submodule update --init $?
|
||||||
|
@@ -20,15 +20,19 @@
|
|||||||
# Sets the bootloader defined in the keyboard's/keymap's rules.mk
|
# Sets the bootloader defined in the keyboard's/keymap's rules.mk
|
||||||
# Current options:
|
# Current options:
|
||||||
#
|
#
|
||||||
# halfkay PJRC Teensy
|
# AVR:
|
||||||
# caterina Pro Micro (Sparkfun/generic)
|
# halfkay PJRC Teensy
|
||||||
# atmel-dfu Atmel factory DFU
|
# caterina Pro Micro (Sparkfun/generic)
|
||||||
# lufa-dfu LUFA DFU
|
# atmel-dfu Atmel factory DFU
|
||||||
# qmk-dfu QMK DFU (LUFA + blinkenlight)
|
# lufa-dfu LUFA DFU
|
||||||
# bootloadHID HIDBootFlash compatible (ATmega32A)
|
# qmk-dfu QMK DFU (LUFA + blinkenlight)
|
||||||
# USBasp USBaspLoader (ATmega328P)
|
# bootloadHID HIDBootFlash compatible (ATmega32A)
|
||||||
# kiibohd Input:Club Kiibohd bootloader (only used on their boards)
|
# USBasp USBaspLoader (ATmega328P)
|
||||||
# stm32duino STM32Duino (STM32F103x8)
|
# ARM:
|
||||||
|
# kiibohd Input:Club Kiibohd bootloader (only used on their boards)
|
||||||
|
# stm32duino STM32Duino (STM32F103x8)
|
||||||
|
# stm32-dfu STM32 USB DFU in ROM
|
||||||
|
# apm32-dfu APM32 USB DFU in ROM
|
||||||
#
|
#
|
||||||
# BOOTLOADER_SIZE can still be defined manually, but it's recommended
|
# BOOTLOADER_SIZE can still be defined manually, but it's recommended
|
||||||
# you add any possible configuration to this list
|
# you add any possible configuration to this list
|
||||||
@@ -95,6 +99,20 @@ ifdef BOOTLOADER_SIZE
|
|||||||
OPT_DEFS += -DBOOTLOADER_SIZE=$(strip $(BOOTLOADER_SIZE))
|
OPT_DEFS += -DBOOTLOADER_SIZE=$(strip $(BOOTLOADER_SIZE))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(strip $(BOOTLOADER)), stm32-dfu)
|
||||||
|
OPT_DEFS += -DBOOTLOADER_STM32_DFU
|
||||||
|
|
||||||
|
# Options to pass to dfu-util when flashing
|
||||||
|
DFU_ARGS ?= -d 0483:DF11 -a 0 -s 0x08000000:leave
|
||||||
|
DFU_SUFFIX_ARGS ?= -v 0483 -p DF11
|
||||||
|
endif
|
||||||
|
ifeq ($(strip $(BOOTLOADER)), apm32-dfu)
|
||||||
|
OPT_DEFS += -DBOOTLOADER_APM32_DFU
|
||||||
|
|
||||||
|
# Options to pass to dfu-util when flashing
|
||||||
|
DFU_ARGS ?= -d 314B:0106 -a 0 -s 0x08000000:leave
|
||||||
|
DFU_SUFFIX_ARGS ?= -v 314B -p 0106
|
||||||
|
endif
|
||||||
ifeq ($(strip $(BOOTLOADER)), kiibohd)
|
ifeq ($(strip $(BOOTLOADER)), kiibohd)
|
||||||
OPT_DEFS += -DBOOTLOADER_KIIBOHD
|
OPT_DEFS += -DBOOTLOADER_KIIBOHD
|
||||||
ifeq ($(strip $(MCU_ORIG)), MK20DX128)
|
ifeq ($(strip $(MCU_ORIG)), MK20DX128)
|
||||||
@@ -104,10 +122,10 @@ ifeq ($(strip $(BOOTLOADER)), kiibohd)
|
|||||||
MCU_LDSCRIPT = MK20DX256BLDR8
|
MCU_LDSCRIPT = MK20DX256BLDR8
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Options to pass to dfu-util when flashing
|
||||||
DFU_ARGS = -d 1C11:B007
|
DFU_ARGS = -d 1C11:B007
|
||||||
DFU_SUFFIX_ARGS = -v 1C11 -p B007
|
DFU_SUFFIX_ARGS = -v 1C11 -p B007
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(BOOTLOADER)), stm32duino)
|
ifeq ($(strip $(BOOTLOADER)), stm32duino)
|
||||||
OPT_DEFS += -DBOOTLOADER_STM32DUINO
|
OPT_DEFS += -DBOOTLOADER_STM32DUINO
|
||||||
MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
|
MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
|
||||||
@@ -115,6 +133,7 @@ ifeq ($(strip $(BOOTLOADER)), stm32duino)
|
|||||||
# STM32F103 does NOT have an USB bootloader in ROM (only serial), so setting anything here does not make much sense
|
# STM32F103 does NOT have an USB bootloader in ROM (only serial), so setting anything here does not make much sense
|
||||||
STM32_BOOTLOADER_ADDRESS = 0x80000000
|
STM32_BOOTLOADER_ADDRESS = 0x80000000
|
||||||
|
|
||||||
DFU_ARGS = -d 1EAF:0003 -a2 -R
|
# Options to pass to dfu-util when flashing
|
||||||
|
DFU_ARGS = -d 1EAF:0003 -a 2 -R
|
||||||
DFU_SUFFIX_ARGS = -v 1EAF -p 0003
|
DFU_SUFFIX_ARGS = -v 1EAF -p 0003
|
||||||
endif
|
endif
|
||||||
|
@@ -283,6 +283,9 @@ ifneq ("$(wildcard $(USER_PATH)/config.h)","")
|
|||||||
CONFIG_H += $(USER_PATH)/config.h
|
CONFIG_H += $(USER_PATH)/config.h
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Disable features that a keyboard doesn't support
|
||||||
|
-include disable_features.mk
|
||||||
|
|
||||||
# Object files directory
|
# Object files directory
|
||||||
# To put object files in current directory, use a dot (.), do NOT make
|
# To put object files in current directory, use a dot (.), do NOT make
|
||||||
# this an empty or blank macro!
|
# this an empty or blank macro!
|
||||||
@@ -368,6 +371,7 @@ endif
|
|||||||
|
|
||||||
build: elf cpfirmware
|
build: elf cpfirmware
|
||||||
check-size: build
|
check-size: build
|
||||||
|
check-md5: build
|
||||||
objs-size: build
|
objs-size: build
|
||||||
|
|
||||||
include show_options.mk
|
include show_options.mk
|
||||||
|
@@ -24,6 +24,8 @@ QUANTUM_SRC += \
|
|||||||
ifeq ($(strip $(DEBUG_MATRIX_SCAN_RATE_ENABLE)), yes)
|
ifeq ($(strip $(DEBUG_MATRIX_SCAN_RATE_ENABLE)), yes)
|
||||||
OPT_DEFS += -DDEBUG_MATRIX_SCAN_RATE
|
OPT_DEFS += -DDEBUG_MATRIX_SCAN_RATE
|
||||||
CONSOLE_ENABLE = yes
|
CONSOLE_ENABLE = yes
|
||||||
|
else ifeq ($(strip $(DEBUG_MATRIX_SCAN_RATE_ENABLE)), api)
|
||||||
|
OPT_DEFS += -DDEBUG_MATRIX_SCAN_RATE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(API_SYSEX_ENABLE)), yes)
|
ifeq ($(strip $(API_SYSEX_ENABLE)), yes)
|
||||||
|
31
disable_features.mk
Normal file
31
disable_features.mk
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
# Unconditionally disable features that a keyboard advertises it doesn't support
|
||||||
|
|
||||||
|
FEATURE_NAMES :=
|
||||||
|
FEATURE_NAMES += ADAFRUIT_BLE
|
||||||
|
FEATURE_NAMES += AUDIO
|
||||||
|
FEATURE_NAMES += BACKLIGHT
|
||||||
|
FEATURE_NAMES += BLUETOOTH
|
||||||
|
FEATURE_NAMES += DIP_SWITCH
|
||||||
|
FEATURE_NAMES += DYNAMIC_KEYMAP
|
||||||
|
FEATURE_NAMES += ENCODER
|
||||||
|
FEATURE_NAMES += HAPTIC
|
||||||
|
FEATURE_NAMES += HD44780
|
||||||
|
FEATURE_NAMES += IOS_DEVICE
|
||||||
|
FEATURE_NAMES += LCD_BACKLIGHT
|
||||||
|
FEATURE_NAMES += LCD
|
||||||
|
FEATURE_NAMES += OLED
|
||||||
|
FEATURE_NAMES += POINTING_DEVICE
|
||||||
|
FEATURE_NAMES += PRINTING
|
||||||
|
FEATURE_NAMES += PS2_MOUSE
|
||||||
|
FEATURE_NAMES += RGBLIGHT
|
||||||
|
FEATURE_NAMES += RGB_MATRIX
|
||||||
|
FEATURE_NAMES += SLEEP_LED
|
||||||
|
FEATURE_NAMES += SERIAL_LINK
|
||||||
|
FEATURE_NAMES += STENO
|
||||||
|
FEATURE_NAMES += SWAP_HANDS
|
||||||
|
FEATURE_NAMES += VISUALIZER
|
||||||
|
FEATURE_NAMES += WATCHDOG
|
||||||
|
FEATURE_NAMES += XT
|
||||||
|
|
||||||
|
$(foreach AFEATURE,$(FEATURE_NAMES),\
|
||||||
|
$(if $(filter $($(AFEATURE)_SUPPORTED),no),$(eval $(AFEATURE)_ENABLE=no)))
|
@@ -1,26 +1,20 @@
|
|||||||
# Quantum Mechanical Keyboard Firmware
|
# Quantum Mechanical Keyboard Firmware
|
||||||
|
|
||||||
[](https://github.com/qmk/qmk_firmware/tags)
|
|
||||||
[](https://travis-ci.org/qmk/qmk_firmware)
|
|
||||||
[](https://discord.gg/Uq7gcHh)
|
|
||||||
[](https://docs.qmk.fm)
|
|
||||||
[](https://github.com/qmk/qmk_firmware/pulse/monthly)
|
|
||||||
[](https://github.com/qmk/qmk_firmware/)
|
|
||||||
|
|
||||||
## What is QMK Firmware?
|
## What is QMK Firmware?
|
||||||
|
|
||||||
QMK (*Quantum Mechanical Keyboard*) is an open source community centered around developing computer input devices. The community encompasses all sorts of input devices, such as keyboards, mice, and MIDI devices. A core group of collaborators maintains [QMK Firmware](https://github.com/qmk/qmk_firmware), [QMK Configurator](https://config.qmk.fm), [QMK Toolbox](https://github.com/qmk/qmk_toolbox), [qmk.fm](https://qmk.fm), and this documentation with the help of community members like you.
|
QMK (*Quantum Mechanical Keyboard*) is an open source community centered around developing computer input devices. The community encompasses all sorts of input devices, such as keyboards, mice, and MIDI devices. A core group of collaborators maintains [QMK Firmware](https://github.com/qmk/qmk_firmware), [QMK Configurator](https://config.qmk.fm), [QMK Toolbox](https://github.com/qmk/qmk_toolbox), [qmk.fm](https://qmk.fm), and this documentation with the help of community members like you.
|
||||||
|
|
||||||
## Get Started
|
## Get Started
|
||||||
|
|
||||||
Totally new to QMK? There are two ways to get started:
|
<div class="flex-container">
|
||||||
|
|
||||||
* Basic: [QMK Configurator](https://config.qmk.fm)
|
?> **Basic** [QMK Configurator](newbs_building_firmware_configurator.md) <br>
|
||||||
* Just select your keyboard from the dropdown and program your keyboard.
|
User friendly graphical interfaces, no programming knowledge required.
|
||||||
* We have an [introductory video](https://www.youtube.com/watch?v=-imgglzDMdY) you can watch.
|
|
||||||
* There is also an overview [document you can read](newbs_building_firmware_configurator.md).
|
?> **Advanced** [Use The Source](newbs.md) <br>
|
||||||
* Advanced: [Use The Source](newbs.md)
|
More powerful, but harder to use.
|
||||||
* More powerful, but harder to use
|
|
||||||
|
</div>
|
||||||
|
|
||||||
## Make It Yours
|
## Make It Yours
|
||||||
|
|
||||||
|
@@ -3,7 +3,6 @@
|
|||||||
* [Setup](newbs_getting_started.md)
|
* [Setup](newbs_getting_started.md)
|
||||||
* [Building Your First Firmware](newbs_building_firmware.md)
|
* [Building Your First Firmware](newbs_building_firmware.md)
|
||||||
* [Flashing Firmware](newbs_flashing.md)
|
* [Flashing Firmware](newbs_flashing.md)
|
||||||
* [Testing and Debugging](newbs_testing_debugging.md)
|
|
||||||
* [Getting Help/Support](support.md)
|
* [Getting Help/Support](support.md)
|
||||||
* [Other Resources](newbs_learn_more_resources.md)
|
* [Other Resources](newbs_learn_more_resources.md)
|
||||||
* [Syllabus](syllabus.md)
|
* [Syllabus](syllabus.md)
|
||||||
@@ -11,7 +10,8 @@
|
|||||||
* FAQs
|
* FAQs
|
||||||
* [General FAQ](faq_general.md)
|
* [General FAQ](faq_general.md)
|
||||||
* [Build/Compile QMK](faq_build.md)
|
* [Build/Compile QMK](faq_build.md)
|
||||||
* [Debugging/Troubleshooting QMK](faq_debug.md)
|
* [Troubleshooting QMK](faq_misc.md)
|
||||||
|
* [Debugging QMK](faq_debug.md)
|
||||||
* [Keymap FAQ](faq_keymap.md)
|
* [Keymap FAQ](faq_keymap.md)
|
||||||
* [Glossary](reference_glossary.md)
|
* [Glossary](reference_glossary.md)
|
||||||
|
|
||||||
|
@@ -28,7 +28,7 @@ As you can see the payload describes all aspects of a keyboard necessary to crea
|
|||||||
To compile your keymap into a firmware simply POST your JSON to the `/v1/compile` endpoint. In the following example we've placed the JSON payload into a file named `json_data`.
|
To compile your keymap into a firmware simply POST your JSON to the `/v1/compile` endpoint. In the following example we've placed the JSON payload into a file named `json_data`.
|
||||||
|
|
||||||
```
|
```
|
||||||
$ curl -H "Content-Type: application/json" -X POST -d "$(< json_data)" http://api.qmk.fm/v1/compile
|
$ curl -H "Content-Type: application/json" -X POST -d "$(< json_data)" https://api.qmk.fm/v1/compile
|
||||||
{
|
{
|
||||||
"enqueued": true,
|
"enqueued": true,
|
||||||
"job_id": "ea1514b3-bdfc-4a7b-9b5c-08752684f7f6"
|
"job_id": "ea1514b3-bdfc-4a7b-9b5c-08752684f7f6"
|
||||||
@@ -40,7 +40,7 @@ $ curl -H "Content-Type: application/json" -X POST -d "$(< json_data)" http://ap
|
|||||||
After submitting your keymap you can check the status using a simple HTTP GET call:
|
After submitting your keymap you can check the status using a simple HTTP GET call:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ curl http://api.qmk.fm/v1/compile/ea1514b3-bdfc-4a7b-9b5c-08752684f7f6
|
$ curl https://api.qmk.fm/v1/compile/ea1514b3-bdfc-4a7b-9b5c-08752684f7f6
|
||||||
{
|
{
|
||||||
"created_at": "Sat, 19 Aug 2017 21:39:12 GMT",
|
"created_at": "Sat, 19 Aug 2017 21:39:12 GMT",
|
||||||
"enqueued_at": "Sat, 19 Aug 2017 21:39:12 GMT",
|
"enqueued_at": "Sat, 19 Aug 2017 21:39:12 GMT",
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
# QMK API
|
# QMK API
|
||||||
|
|
||||||
The QMK API provides an asynchronous API that Web and GUI tools can use to compile arbitrary keymaps for any keyboard supported by [QMK](http://qmk.fm/). The stock keymap template supports all QMK keycodes that do not require supporting C code. Keyboard maintainers can supply their own custom templates to enable more functionality.
|
The QMK API provides an asynchronous API that Web and GUI tools can use to compile arbitrary keymaps for any keyboard supported by [QMK](https://qmk.fm/). The stock keymap template supports all QMK keycodes that do not require supporting C code. Keyboard maintainers can supply their own custom templates to enable more functionality.
|
||||||
|
|
||||||
## App Developers
|
## App Developers
|
||||||
|
|
||||||
|
@@ -11,13 +11,13 @@ This command is directory aware. It will automatically fill in KEYBOARD and/or K
|
|||||||
**Usage for Configurator Exports**:
|
**Usage for Configurator Exports**:
|
||||||
|
|
||||||
```
|
```
|
||||||
qmk compile <configuratorExport.json>
|
qmk compile [-c] <configuratorExport.json>
|
||||||
```
|
```
|
||||||
|
|
||||||
**Usage for Keymaps**:
|
**Usage for Keymaps**:
|
||||||
|
|
||||||
```
|
```
|
||||||
qmk compile -kb <keyboard_name> -km <keymap_name>
|
qmk compile [-c] [-e <var>=<value>] -kb <keyboard_name> -km <keymap_name>
|
||||||
```
|
```
|
||||||
|
|
||||||
**Usage in Keyboard Directory**:
|
**Usage in Keyboard Directory**:
|
||||||
@@ -82,13 +82,13 @@ This command is directory aware. It will automatically fill in KEYBOARD and/or K
|
|||||||
**Usage for Configurator Exports**:
|
**Usage for Configurator Exports**:
|
||||||
|
|
||||||
```
|
```
|
||||||
qmk flash <configuratorExport.json> -bl <bootloader>
|
qmk flash [-bl <bootloader>] [-c] [-e <var>=<value>] <configuratorExport.json>
|
||||||
```
|
```
|
||||||
|
|
||||||
**Usage for Keymaps**:
|
**Usage for Keymaps**:
|
||||||
|
|
||||||
```
|
```
|
||||||
qmk flash -kb <keyboard_name> -km <keymap_name> -bl <bootloader>
|
qmk flash -kb <keyboard_name> -km <keymap_name> [-bl <bootloader>] [-c] [-e <var>=<value>]
|
||||||
```
|
```
|
||||||
|
|
||||||
**Listing the Bootloaders**
|
**Listing the Bootloaders**
|
||||||
|
@@ -49,7 +49,7 @@ int foo(void) {
|
|||||||
|
|
||||||
[Clang-format](https://clang.llvm.org/docs/ClangFormat.html) is part of LLVM and can automatically format your code for you, because ain't nobody got time to do it manually. We supply a configuration file for it that applies most of the coding conventions listed above. It will only change whitespace and newlines, so you will still have to remember to include optional braces yourself.
|
[Clang-format](https://clang.llvm.org/docs/ClangFormat.html) is part of LLVM and can automatically format your code for you, because ain't nobody got time to do it manually. We supply a configuration file for it that applies most of the coding conventions listed above. It will only change whitespace and newlines, so you will still have to remember to include optional braces yourself.
|
||||||
|
|
||||||
Use the [full LLVM installer](http://llvm.org/builds/) to get clang-format on Windows, or use `sudo apt install clang-format` on Ubuntu.
|
Use the [full LLVM installer](https://llvm.org/builds/) to get clang-format on Windows, or use `sudo apt install clang-format` on Ubuntu.
|
||||||
|
|
||||||
If you run it from the command-line, pass `-style=file` as an option and it will automatically find the .clang-format configuration file in the QMK root directory.
|
If you run it from the command-line, pass `-style=file` as an option and it will automatically find the .clang-format configuration file in the QMK root directory.
|
||||||
|
|
||||||
|
@@ -18,7 +18,7 @@ Certain MCUs which do not have native USB will use [V-USB](https://www.obdev.at/
|
|||||||
|
|
||||||
## ARM
|
## ARM
|
||||||
|
|
||||||
You can also use any ARM chip with USB that [ChibiOS](http://www.chibios.org) supports. Most have plenty of flash. Known to work are:
|
You can also use any ARM chip with USB that [ChibiOS](https://www.chibios.org) supports. Most have plenty of flash. Known to work are:
|
||||||
|
|
||||||
### STMicroelectronics (STM32)
|
### STMicroelectronics (STM32)
|
||||||
|
|
||||||
|
@@ -23,7 +23,7 @@ Please keep these things in mind:
|
|||||||
|
|
||||||
# Project Overview
|
# Project Overview
|
||||||
|
|
||||||
QMK is largely written in C, with specific features and parts written in C++. It targets embedded processors found in keyboards, particularly AVR ([LUFA](http://www.fourwalledcubicle.com/LUFA.php)) and ARM ([ChibiOS](http://www.chibios.com)). If you are already well versed in Arduino programming you'll find a lot of the concepts and limitations familiar. Prior experience with Arduino is not required to successfully contribute to QMK.
|
QMK is largely written in C, with specific features and parts written in C++. It targets embedded processors found in keyboards, particularly AVR ([LUFA](https://www.fourwalledcubicle.com/LUFA.php)) and ARM ([ChibiOS](https://www.chibios.org)). If you are already well versed in Arduino programming you'll find a lot of the concepts and limitations familiar. Prior experience with Arduino is not required to successfully contribute to QMK.
|
||||||
|
|
||||||
<!-- FIXME: We should include a list of resources for learning C here. -->
|
<!-- FIXME: We should include a list of resources for learning C here. -->
|
||||||
|
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
## Was ist QMK Firmware?
|
## Was ist QMK Firmware?
|
||||||
|
|
||||||
QMK (*Quantum Mechanical Keyboard*) ist eine Open-Source-Community, welche die QMK-Firmware, die QMK-Toolbox, [qmk.fm](https://qmk.fm) und diese Dokumententation betreut. QMK-Firmware ist eine Weiterentwicklung der [tmk\_keyboard](http://github.com/tmk/tmk_keyboard)-Tastatur-Firmware mit vielen nützlichen Zusatzfunktionen für Atmel AVR-Prozessoren. Ursprünglich wurde sie für Produkte von [OLKB](http://olkb.com), das [ErgoDox EZ](http://www.ergodox-ez.com) und das [Clueboard](http://clueboard.co/) entwickelt. Im Laufe der Zeit wurde sie mit Hilfe von [ChibiOS](http://chibios.org) auch für die ARM-Architektur angepasst. Außerdem ist es inzwischen möglich, auch handverdrahtete Tastaturen und selbst geätzte PCBs mit QMK zu verwenden.
|
QMK (*Quantum Mechanical Keyboard*) ist eine Open-Source-Community, welche die QMK-Firmware, die QMK-Toolbox, [qmk.fm](https://qmk.fm) und diese Dokumententation betreut. QMK-Firmware ist eine Weiterentwicklung der [tmk\_keyboard](https://github.com/tmk/tmk_keyboard)-Tastatur-Firmware mit vielen nützlichen Zusatzfunktionen für Atmel AVR-Prozessoren. Ursprünglich wurde sie für Produkte von [OLKB](https://olkb.com), das [ErgoDox EZ](https://www.ergodox-ez.com) und das [Clueboard](https://clueboard.co/) entwickelt. Im Laufe der Zeit wurde sie mit Hilfe von [ChibiOS](https://chibios.org) auch für die ARM-Architektur angepasst. Außerdem ist es inzwischen möglich, auch handverdrahtete Tastaturen und selbst geätzte PCBs mit QMK zu verwenden.
|
||||||
|
|
||||||
## Bezugsquelle für QMK
|
## Bezugsquelle für QMK
|
||||||
|
|
||||||
|
@@ -18,7 +18,7 @@ Wenn Du es vorziehst mit einer grafischen Oberfläche zu entwickeln kannst Du au
|
|||||||
|
|
||||||
Du wirst ein Programm benötigen, mit dem Du **plain text** (= reiner Text) Dateien bearbeiten und speichern kannst. Wenn Du Windows benutzt, reicht dafür schon das normale `Notepad` und für Linux z.B. `gedit` oder `leafpad`. Beide sind sehr rudimentäre Editoren deren Funktionsumfang aber vollkommen ausreicht. Für macOS' standard `TextEdit` muss man ein bisschen vorsichtig sein und darauf achten, beim Speichern explizit unter _Format_ die Option _Reiner Text_ auszuwählen.
|
Du wirst ein Programm benötigen, mit dem Du **plain text** (= reiner Text) Dateien bearbeiten und speichern kannst. Wenn Du Windows benutzt, reicht dafür schon das normale `Notepad` und für Linux z.B. `gedit` oder `leafpad`. Beide sind sehr rudimentäre Editoren deren Funktionsumfang aber vollkommen ausreicht. Für macOS' standard `TextEdit` muss man ein bisschen vorsichtig sein und darauf achten, beim Speichern explizit unter _Format_ die Option _Reiner Text_ auszuwählen.
|
||||||
|
|
||||||
Ansonsten ist es empfehlenswert, einen Editor herunterzuladen der für die Programmierung und das Bearbeiten von Code ausgelegt ist wie z.b [Notepad++](http://notepad-plus-plus.org/), [Sublime Text](https://www.sublimetext.com/) oder [VS Code](https://code.visualstudio.com/).
|
Ansonsten ist es empfehlenswert, einen Editor herunterzuladen der für die Programmierung und das Bearbeiten von Code ausgelegt ist wie z.b [Notepad++](https://notepad-plus-plus.org/), [Sublime Text](https://www.sublimetext.com/) oder [VS Code](https://code.visualstudio.com/).
|
||||||
|
|
||||||
?> Immer noch unsicher, welcher Text Editor der Richtige für Dich ist? Laurence Bradford hat eine hervorragende [Einleitung](https://learntocodewith.me/programming/basics/text-editors/) zu dem Thema geschrieben (auf Englisch).
|
?> Immer noch unsicher, welcher Text Editor der Richtige für Dich ist? Laurence Bradford hat eine hervorragende [Einleitung](https://learntocodewith.me/programming/basics/text-editors/) zu dem Thema geschrieben (auf Englisch).
|
||||||
|
|
||||||
@@ -44,7 +44,7 @@ Wir haben versucht, die Installation der Entwicklungsumgebung für QMK so einfac
|
|||||||
|
|
||||||
Du wirst MSYS2 (o.Ä.) und Git benötigen.
|
Du wirst MSYS2 (o.Ä.) und Git benötigen.
|
||||||
|
|
||||||
* Befolge die Installationsanleitung auf der [MSYS2 Homepage](http://www.msys2.org)
|
* Befolge die Installationsanleitung auf der [MSYS2 Homepage](https://www.msys2.org)
|
||||||
* Schließe alle offenen MSYS2 Fenster und öffne ein neues MSYS2 MinGW 64-bit Terminal
|
* Schließe alle offenen MSYS2 Fenster und öffne ein neues MSYS2 MinGW 64-bit Terminal
|
||||||
* Installiere Git mit dem Kommando: `pacman -S git`
|
* Installiere Git mit dem Kommando: `pacman -S git`
|
||||||
|
|
||||||
|
@@ -10,8 +10,8 @@ Anmerkung: Diese Programme werden weder von QMK bereitgestellt oder gutgeheißen
|
|||||||
|
|
||||||
* [Switch Hitter](https://elitekeyboards.com/switchhitter.php) (Nur für Windows)
|
* [Switch Hitter](https://elitekeyboards.com/switchhitter.php) (Nur für Windows)
|
||||||
* [Keyboard Viewer](https://www.imore.com/how-use-keyboard-viewer-your-mac) (Nur für Mac)
|
* [Keyboard Viewer](https://www.imore.com/how-use-keyboard-viewer-your-mac) (Nur für Mac)
|
||||||
* [Keyboard Tester](http://www.keyboardtester.com) (Web basiert)
|
* [Keyboard Tester](https://www.keyboardtester.com) (Web basiert)
|
||||||
* [Keyboard Checker](http://keyboardchecker.com) (Web basiert)
|
* [Keyboard Checker](https://keyboardchecker.com) (Web basiert)
|
||||||
|
|
||||||
## Debuggen
|
## Debuggen
|
||||||
|
|
||||||
|
@@ -4,12 +4,12 @@ This page documents the templates you should use when submitting new Keymaps and
|
|||||||
|
|
||||||
## Keymap `readme.md` Template :id=keyboard-readmemd-template
|
## Keymap `readme.md` Template :id=keyboard-readmemd-template
|
||||||
|
|
||||||
Most keymaps have an image depicting the layout. You can use [Keyboard Layout Editor](http://keyboard-layout-editor.com) to create an image. Upload it to [Imgur](http://imgur.com) or another hosting service, please do not include images in your Pull Request.
|
Most keymaps have an image depicting the layout. You can use [Keyboard Layout Editor](https://keyboard-layout-editor.com) to create an image. Upload it to [Imgur](https://imgur.com) or another hosting service, please do not include images in your Pull Request.
|
||||||
|
|
||||||
Below the image you should write a short description to help people understand your keymap.
|
Below the image you should write a short description to help people understand your keymap.
|
||||||
|
|
||||||
```
|
```
|
||||||

|

|
||||||
|
|
||||||
# Default Clueboard Layout
|
# Default Clueboard Layout
|
||||||
|
|
||||||
@@ -24,9 +24,9 @@ the Ctrl, Alt, or GUI modifiers are held down.
|
|||||||
```
|
```
|
||||||
# Planck
|
# Planck
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
A compact 40% (12x4) ortholinear keyboard kit made and sold by OLKB and Massdrop. [More info on qmk.fm](http://qmk.fm/planck/)
|
A compact 40% (12x4) ortholinear keyboard kit made and sold by OLKB and Massdrop. [More info on qmk.fm](https://qmk.fm/planck/)
|
||||||
|
|
||||||
* Keyboard Maintainer: [Jack Humbert](https://github.com/jackhumbert)
|
* Keyboard Maintainer: [Jack Humbert](https://github.com/jackhumbert)
|
||||||
* Hardware Supported: Planck PCB rev1, rev2, rev3, rev4, Teensy 2.0
|
* Hardware Supported: Planck PCB rev1, rev2, rev3, rev4, Teensy 2.0
|
||||||
|
@@ -14,16 +14,11 @@ Some keyboards may have specific instructions for entering the bootloader. For e
|
|||||||
To put a device in bootloader mode with USBaspLoader, tap the `RESET` button while holding down the `BOOT` button.
|
To put a device in bootloader mode with USBaspLoader, tap the `RESET` button while holding down the `BOOT` button.
|
||||||
Alternatively, hold `BOOT` while inserting the USB cable.
|
Alternatively, hold `BOOT` while inserting the USB cable.
|
||||||
|
|
||||||
Zadig will automatically detect the bootloader device. You may sometimes need to check **Options → List All Devices**.
|
Zadig should automatically detect the bootloader device, but you may sometimes need to check **Options → List All Devices** and select the device from the dropdown instead.
|
||||||
|
|
||||||
- For keyboards with Atmel AVR MCUs, the bootloader will be named something similar to `ATm32U4DFU`, and have a Vendor ID of `03EB`.
|
|
||||||
- USBasp bootloaders will appear as `USBasp`, with a VID/PID of `16C0:05DC`.
|
|
||||||
- AVR keyboards flashed with the QMK-DFU bootloader will be named `<keyboard name> Bootloader` and will also have the VID `03EB`.
|
|
||||||
- For most ARM keyboards, it will be called `STM32 BOOTLOADER`, and have a VID/PID of `0483:DF11`.
|
|
||||||
|
|
||||||
!> If Zadig lists one or more devices with the `HidUsb` driver, your keyboard is probably not in bootloader mode. The arrow will be colored orange and you will be asked to confirm modifying a system driver. **Do not** proceed if this is the case!
|
!> If Zadig lists one or more devices with the `HidUsb` driver, your keyboard is probably not in bootloader mode. The arrow will be colored orange and you will be asked to confirm modifying a system driver. **Do not** proceed if this is the case!
|
||||||
|
|
||||||
If the arrow appears green, select the driver, and click **Install Driver**. The `libusb-win32` driver will usually work for AVR, and `WinUSB` for ARM, but if you still cannot flash the board, try installing a different driver from the list. USBAspLoader devices must use the `libusbK` driver.
|
If the arrow appears green, select the driver, and click **Install Driver**. See the [list of known bootloaders](#list-of-known-bootloaders) for the correct driver to install.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@@ -43,6 +38,40 @@ Right-click it and hit **Uninstall device**. Make sure to tick **Delete the driv
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
Click **Action → Scan for hardware changes**. At this point, you should be able to type again. Double check in Zadig that the keyboard device(s) are using the `HidUsb` driver. If so, you're all done, and your board should be functional again!
|
Click **Action → Scan for hardware changes**. At this point, you should be able to type again. Double check in Zadig that the keyboard device(s) are using the `HidUsb` driver. If so, you're all done, and your board should be functional again! Otherwise, repeat the process until Zadig reports the correct driver.
|
||||||
|
|
||||||
?> A full reboot of your computer may sometimes be necessary at this point, to get Windows to pick up the new driver.
|
?> A full reboot of your computer may sometimes be necessary at this point, to get Windows to pick up the new driver.
|
||||||
|
|
||||||
|
## List of Known Bootloaders
|
||||||
|
|
||||||
|
This is a list of known bootloader devices and their USB vendor and product IDs, as well as the correct driver to assign for flashing with QMK. Note that the usbser and HidUsb drivers are built in to Windows, and cannot be assigned with Zadig - if your device has an incorrect driver, you must use the Device Manager to uninstall it as described in the previous section.
|
||||||
|
|
||||||
|
The device name here is the name that appears in Zadig, and may not be what the Device Manager or QMK Toolbox displays.
|
||||||
|
|
||||||
|
|Bootloader |Device Name |VID/PID |Driver |
|
||||||
|
|-------------|------------------------------|--------------|-------|
|
||||||
|
|`atmel-dfu` |ATmega16u2 DFU |`03EB:2FEF` |libusb0|
|
||||||
|
|`atmel-dfu` |ATmega32U2 DFU |`03EB:2FF0` |libusb0|
|
||||||
|
|`atmel-dfu` |ATm16U4 DFU V1.0.2 |`03EB:2FF3` |libusb0|
|
||||||
|
|`atmel-dfu` |ATm32U4DFU |`03EB:2FF4` |libusb0|
|
||||||
|
|`atmel-dfu` |*none* (AT90USB64) |`03EB:2FF9` |libusb0|
|
||||||
|
|`atmel-dfu` |AT90USB128 DFU |`03EB:2FFB` |libusb0|
|
||||||
|
|`qmk-dfu` |(keyboard name) Bootloader |As `atmel-dfu`|libusb0|
|
||||||
|
|`halfkay` |*none* |`16C0:0478` |HidUsb |
|
||||||
|
|`caterina` |Pro Micro 3.3V |`1B4F:9203` |usbser |
|
||||||
|
|`caterina` |Pro Micro 5V |`1B4F:9205` |usbser |
|
||||||
|
|`caterina` |LilyPadUSB |`1B4F:9207` |usbser |
|
||||||
|
|`caterina` |Pololu A-Star 32U4 Bootloader |`1FFB:0101` |usbser |
|
||||||
|
|`caterina` |Arduino Leonardo |`2341:0036` |usbser |
|
||||||
|
|`caterina` |Arduino Micro |`2341:0037` |usbser |
|
||||||
|
|`caterina` |Adafruit Feather 32u4 |`239A:000C` |usbser |
|
||||||
|
|`caterina` |Adafruit ItsyBitsy 32u4 3V |`239A:000D` |usbser |
|
||||||
|
|`caterina` |Adafruit ItsyBitsy 32u4 5V |`239A:000E` |usbser |
|
||||||
|
|`caterina` |Arduino Leonardo |`2A03:0036` |usbser |
|
||||||
|
|`caterina` |Arduino Micro |`2A03:0037` |usbser |
|
||||||
|
|`bootloadHID`|HIDBoot |`16C0:05DF` |HidUsb |
|
||||||
|
|`USBasp` |USBasp |`16C0:05DC` |libusbK|
|
||||||
|
|`apm32-dfu` |APM32 DFU ISP Mode |`314B:0106` |WinUSB |
|
||||||
|
|`stm32-dfu` |STM32 BOOTLOADER |`0483:DF11` |WinUSB |
|
||||||
|
|`kiibohd` |Kiibohd DFU Bootloader |`1C11:B007` |WinUSB |
|
||||||
|
|`stm32duino` |Maple 003 |`1EAF:0003` |WinUSB |
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
## ¿Qué es el firmware QMK?
|
## ¿Qué es el firmware QMK?
|
||||||
|
|
||||||
QMK (*Quantum Mechanical Keyboard*) es una comunidad open source que mantiene el firmware QMK, QMK Toolbox, qmk.fm, y estos documentos. El firmware QMK es un firmware para teclados basado en [tmk\_keyboard](http://github.com/tmk/tmk_keyboard) con algunas características útiles para controladores Atmel AVR, y más específicamente, la [línea de productos OLKB](http://olkb.com), el teclado [ErgoDox EZ](http://www.ergodox-ez.com), y la [línea de productos Clueboard](http://clueboard.co/). También ha sido portado a chips ARM chips usando ChibiOS. Lo puedes utilizar para manejar tu propio teclado ya sea cableado a mano o basado en una PCB personalizada.
|
QMK (*Quantum Mechanical Keyboard*) es una comunidad open source que mantiene el firmware QMK, QMK Toolbox, qmk.fm, y estos documentos. El firmware QMK es un firmware para teclados basado en [tmk\_keyboard](https://github.com/tmk/tmk_keyboard) con algunas características útiles para controladores Atmel AVR, y más específicamente, la [línea de productos OLKB](https://olkb.com), el teclado [ErgoDox EZ](https://www.ergodox-ez.com), y la [línea de productos Clueboard](https://clueboard.co/). También ha sido portado a chips ARM chips usando ChibiOS. Lo puedes utilizar para manejar tu propio teclado ya sea cableado a mano o basado en una PCB personalizada.
|
||||||
|
|
||||||
## Cómo conseguirlo
|
## Cómo conseguirlo
|
||||||
|
|
||||||
@@ -29,4 +29,4 @@ Este ejemplo compilaría la revisión `rev4` del teclado `planck` con el keymap
|
|||||||
|
|
||||||
## Cómo personalizar
|
## Cómo personalizar
|
||||||
|
|
||||||
QMK tiene montones de [características](es/features.md) para explorar, y una buena cantidad de [documentación de referencia](http://docs.qmk.fm) en la que sumergirse. Se pueden sacar provecho de la mayoría de las características modificando tu [keymap](es/keymap.md), y cambiando los [keycodes](es/keycodes.md).
|
QMK tiene montones de [características](es/features.md) para explorar, y una buena cantidad de [documentación de referencia](https://docs.qmk.fm) en la que sumergirse. Se pueden sacar provecho de la mayoría de las características modificando tu [keymap](es/keymap.md), y cambiando los [keycodes](es/keycodes.md).
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
# Hardware
|
# Hardware
|
||||||
|
|
||||||
QMK es compatible con una variedad de hardware. Si tu procesador puede ser dirigido por [LUFA](http://www.fourwalledcubicle.com/LUFA.php) o [ChibiOS](http://www.chibios.com), probablemente puedes hacer que QMK se ejecute en él. Esta sección explora cómo hacer que QMK se ejecute y se comunique con hardware de todo tipo.
|
QMK es compatible con una variedad de hardware. Si tu procesador puede ser dirigido por [LUFA](https://www.fourwalledcubicle.com/LUFA.php) o [ChibiOS](https://www.chibios.org), probablemente puedes hacer que QMK se ejecute en él. Esta sección explora cómo hacer que QMK se ejecute y se comunique con hardware de todo tipo.
|
||||||
|
|
||||||
* [Pautas de teclados](hardware_keyboard_guidelines.md)
|
* [Pautas de teclados](hardware_keyboard_guidelines.md)
|
||||||
* [Procesadores AVR](hardware_avr.md)
|
* [Procesadores AVR](hardware_avr.md)
|
||||||
|
@@ -32,7 +32,7 @@ Esto creará todos los archivos necesarios para tu nuevo teclado, y rellenará l
|
|||||||
|
|
||||||
## `readme.md`
|
## `readme.md`
|
||||||
|
|
||||||
Aquí es donde describirás tu teclado. Por favor sigue la [Plantilla del readme de teclados](documentation_templates.md#keyboard-readmemd-template) al escribir tu `readme.md`. Te animamos a colocar una imagen en la parte superior de tu `readme.md`. Por favor, utiliza un servicio externo como [Imgur](http://imgur.com) para alojar las imágenes.
|
Aquí es donde describirás tu teclado. Por favor sigue la [Plantilla del readme de teclados](documentation_templates.md#keyboard-readmemd-template) al escribir tu `readme.md`. Te animamos a colocar una imagen en la parte superior de tu `readme.md`. Por favor, utiliza un servicio externo como [Imgur](https://imgur.com) para alojar las imágenes.
|
||||||
|
|
||||||
## `<keyboard>.c`
|
## `<keyboard>.c`
|
||||||
|
|
||||||
|
@@ -98,7 +98,7 @@ Por ejemplo, si tienes un PCB de 60% que soporta ANSI e ISO podría definir los
|
|||||||
|
|
||||||
En un esfuerzo por mantener el tamaño de repo abajo ya no estamos aceptando archivos binarios de cualquier formato, con pocas excepciones. Alojarlos en otro lugar (por ejemplo <https://imgur.com>) y enlazarlos en el `readme.md` es preferible.
|
En un esfuerzo por mantener el tamaño de repo abajo ya no estamos aceptando archivos binarios de cualquier formato, con pocas excepciones. Alojarlos en otro lugar (por ejemplo <https://imgur.com>) y enlazarlos en el `readme.md` es preferible.
|
||||||
|
|
||||||
Para archivos de hardware (tales como placas, casos, pcb) puedes contribuir a [qmk.fm repo](https://github.com/qmk/qmk.fm) y estarán disponibles en [qmk.fm](http://qmk.fm). Archivos descargables se almacenan en `/<teclado>/` (nombre sigue el mismo formato que el anterior), se sirven en `http://qmk.fm/<teclado>/`, y se generan páginas de `/_pages/<teclado>/` que se sirven en la misma ubicación (Los archivos .md se generan en archivos .html mediante Jekyll). Echa un vistazo a la carpeta `lets_split` para ver un ejemplo.
|
Para archivos de hardware (tales como placas, casos, pcb) puedes contribuir a [qmk.fm repo](https://github.com/qmk/qmk.fm) y estarán disponibles en [qmk.fm](https://qmk.fm). Archivos descargables se almacenan en `/<teclado>/` (nombre sigue el mismo formato que el anterior), se sirven en `https://qmk.fm/<teclado>/`, y se generan páginas de `/_pages/<teclado>/` que se sirven en la misma ubicación (Los archivos .md se generan en archivos .html mediante Jekyll). Echa un vistazo a la carpeta `lets_split` para ver un ejemplo.
|
||||||
|
|
||||||
## Predeterminados de teclado
|
## Predeterminados de teclado
|
||||||
|
|
||||||
@@ -140,7 +140,7 @@ El año debe ser el primer año en que se crea el archivo. Si el trabajo se hizo
|
|||||||
|
|
||||||
## Licencia
|
## Licencia
|
||||||
|
|
||||||
El núcleo de QMC está licenciado bajo la [GNU General Public License](https://www.gnu.org/licenses/licenses.en.html). Si estás enviando binarios para los procesadores AVR puedes elegir cualquiera [GPLv2](https://www.gnu.org/licenses/old-licenses/gpl-2.0.html) o [GPLv3](https://www.gnu.org/licenses/gpl.html). Si estás enviando binarios para ARM procesadores debes elegir [GPL Versión 3](https://www.gnu.org/licenses/gpl.html) para cumplir con los [ChibiOS](http://www.chibios.org) licencia GPLv3.
|
El núcleo de QMC está licenciado bajo la [GNU General Public License](https://www.gnu.org/licenses/licenses.en.html). Si estás enviando binarios para los procesadores AVR puedes elegir cualquiera [GPLv2](https://www.gnu.org/licenses/old-licenses/gpl-2.0.html) o [GPLv3](https://www.gnu.org/licenses/gpl.html). Si estás enviando binarios para ARM procesadores debes elegir [GPL Versión 3](https://www.gnu.org/licenses/gpl.html) para cumplir con los [ChibiOS](https://www.chibios.org) licencia GPLv3.
|
||||||
|
|
||||||
Si tu teclado hace uso de la [uGFX](https://gfx.io) características dentro de QMK debes cumplir con la [Licencia de uGFX](https://ugfx.io/license.html), que requiere una licencia comercial separada antes de vender un dispositivo que contiene uGFX.
|
Si tu teclado hace uso de la [uGFX](https://gfx.io) características dentro de QMK debes cumplir con la [Licencia de uGFX](https://ugfx.io/license.html), que requiere una licencia comercial separada antes de vender un dispositivo que contiene uGFX.
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
QMK es un poderoso firmware Open Source para tu teclado mecánico. Puedes utilizar QMK para personalizar tu teclado en maneras a la vez simples y potentes. Gente de todos los niveles de habilidad, desde completos novatos hasta expertos programadores, han utilizado con éxito QMK para personalizar sus teclados. Esta guía te ayudará a hacer lo mismo, sin importar tu nivel de habilidad.
|
QMK es un poderoso firmware Open Source para tu teclado mecánico. Puedes utilizar QMK para personalizar tu teclado en maneras a la vez simples y potentes. Gente de todos los niveles de habilidad, desde completos novatos hasta expertos programadores, han utilizado con éxito QMK para personalizar sus teclados. Esta guía te ayudará a hacer lo mismo, sin importar tu nivel de habilidad.
|
||||||
|
|
||||||
¿No estás seguro de si tu teclado puede ejecutar QMK? Si es un teclado mecánico construido por ti mismo probablemente puedas. Damos soporte a [gran número de placas de hobbistas](http://qmk.fm/keyboards/), e incluso si tu teclado actual no pudiera ejecutar QMK no deberías tener problemas encontrando uno que cumpliera tus necesidades.
|
¿No estás seguro de si tu teclado puede ejecutar QMK? Si es un teclado mecánico construido por ti mismo probablemente puedas. Damos soporte a [gran número de placas de hobbistas](https://qmk.fm/keyboards/), e incluso si tu teclado actual no pudiera ejecutar QMK no deberías tener problemas encontrando uno que cumpliera tus necesidades.
|
||||||
|
|
||||||
## Visión general
|
## Visión general
|
||||||
|
|
||||||
|
@@ -43,7 +43,7 @@ instale el resto.
|
|||||||
|
|
||||||
Necesitarás instalar MSYS2 y Git.
|
Necesitarás instalar MSYS2 y Git.
|
||||||
|
|
||||||
* Sigue las instrucciones de instalación en la [página de MSYS2](http://www.msys2.org).
|
* Sigue las instrucciones de instalación en la [página de MSYS2](https://www.msys2.org).
|
||||||
* Cierra las terminales abiertas de MSYS2 y abre una nueva termial de MSYS2 MinGW 64-bit.
|
* Cierra las terminales abiertas de MSYS2 y abre una nueva termial de MSYS2 MinGW 64-bit.
|
||||||
* Instala Git ejecutando este comando: `pacman -S git`.
|
* Instala Git ejecutando este comando: `pacman -S git`.
|
||||||
|
|
||||||
|
@@ -10,8 +10,8 @@ Nota: Estos programas no los provée ni están relacionados con QMK.
|
|||||||
|
|
||||||
* [Switch Hitter](https://elitekeyboards.com/switchhitter.php) (Sólo Windows)
|
* [Switch Hitter](https://elitekeyboards.com/switchhitter.php) (Sólo Windows)
|
||||||
* [Keyboard Viewer](https://www.imore.com/how-use-keyboard-viewer-your-mac) (Sólo Mac)
|
* [Keyboard Viewer](https://www.imore.com/how-use-keyboard-viewer-your-mac) (Sólo Mac)
|
||||||
* [Keyboard Tester](http://www.keyboardtester.com) (Aplicación web)
|
* [Keyboard Tester](https://www.keyboardtester.com) (Aplicación web)
|
||||||
* [Keyboard Checker](http://keyboardchecker.com) (Aplicación web)
|
* [Keyboard Checker](https://keyboardchecker.com) (Aplicación web)
|
||||||
|
|
||||||
## Depurando
|
## Depurando
|
||||||
|
|
||||||
|
@@ -17,7 +17,7 @@ or just:
|
|||||||
|
|
||||||
Note that running `make` with `sudo` is generally ***not*** a good idea, and you should use one of the former methods, if possible.
|
Note that running `make` with `sudo` is generally ***not*** a good idea, and you should use one of the former methods, if possible.
|
||||||
|
|
||||||
### Linux `udev` Rules
|
### Linux `udev` Rules :id=linux-udev-rules
|
||||||
|
|
||||||
On Linux, you'll need proper privileges to communicate with the bootloader device. You can either use `sudo` when flashing firmware (not recommended), or place [this file](https://github.com/qmk/qmk_firmware/tree/master/util/udev/50-qmk.rules) into `/etc/udev/rules.d/`.
|
On Linux, you'll need proper privileges to communicate with the bootloader device. You can either use `sudo` when flashing firmware (not recommended), or place [this file](https://github.com/qmk/qmk_firmware/tree/master/util/udev/50-qmk.rules) into `/etc/udev/rules.d/`.
|
||||||
|
|
||||||
@@ -57,8 +57,8 @@ Also see this.
|
|||||||
https://github.com/tmk/tmk_keyboard/issues/150
|
https://github.com/tmk/tmk_keyboard/issues/150
|
||||||
|
|
||||||
You can buy a really unique VID:PID here. I don't think you need this for personal use.
|
You can buy a really unique VID:PID here. I don't think you need this for personal use.
|
||||||
- http://www.obdev.at/products/vusb/license.html
|
- https://www.obdev.at/products/vusb/license.html
|
||||||
- http://www.mcselec.com/index.php?page=shop.product_details&flypage=shop.flypage&product_id=92&option=com_phpshop&Itemid=1
|
- https://www.mcselec.com/index.php?page=shop.product_details&flypage=shop.flypage&product_id=92&option=com_phpshop&Itemid=1
|
||||||
|
|
||||||
### I just flashed my keyboard and it does nothing/keypresses don't register - it's also ARM (rev6 planck, clueboard 60, hs60v2, etc...) (Feb 2019)
|
### I just flashed my keyboard and it does nothing/keypresses don't register - it's also ARM (rev6 planck, clueboard 60, hs60v2, etc...) (Feb 2019)
|
||||||
Due to how EEPROM works on ARM based chips, saved settings may no longer be valid. This affects the default layers, and *may*, under certain circumstances we are still figuring out, make the keyboard unusable. Resetting the EEPROM will correct this.
|
Due to how EEPROM works on ARM based chips, saved settings may no longer be valid. This affects the default layers, and *may*, under certain circumstances we are still figuring out, make the keyboard unusable. Resetting the EEPROM will correct this.
|
||||||
|
@@ -2,7 +2,94 @@
|
|||||||
|
|
||||||
This page details various common questions people have about troubleshooting their keyboards.
|
This page details various common questions people have about troubleshooting their keyboards.
|
||||||
|
|
||||||
# Debug Console
|
## Debugging :id=debugging
|
||||||
|
|
||||||
|
Your keyboard will output debug information if you have `CONSOLE_ENABLE = yes` in your `rules.mk`. By default the output is very limited, but you can turn on debug mode to increase the amount of debug output. Use the `DEBUG` keycode in your keymap, use the [Command](feature_command.md) feature to enable debug mode, or add the following code to your keymap.
|
||||||
|
|
||||||
|
```c
|
||||||
|
void keyboard_post_init_user(void) {
|
||||||
|
// Customise these values to desired behaviour
|
||||||
|
debug_enable=true;
|
||||||
|
debug_matrix=true;
|
||||||
|
//debug_keyboard=true;
|
||||||
|
//debug_mouse=true;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## Debugging Tools
|
||||||
|
|
||||||
|
There are two different tools you can use to debug your keyboard.
|
||||||
|
|
||||||
|
### Debugging With QMK Toolbox
|
||||||
|
|
||||||
|
For compatible platforms, [QMK Toolbox](https://github.com/qmk/qmk_toolbox) can be used to display debug messages from your keyboard.
|
||||||
|
|
||||||
|
### Debugging With hid_listen
|
||||||
|
|
||||||
|
Prefer a terminal based solution? [hid_listen](https://www.pjrc.com/teensy/hid_listen.html), provided by PJRC, can also be used to display debug messages. Prebuilt binaries for Windows,Linux,and MacOS are available.
|
||||||
|
|
||||||
|
## Sending Your Own Debug Messages
|
||||||
|
|
||||||
|
Sometimes it's useful to print debug messages from within your [custom code](custom_quantum_functions.md). Doing so is pretty simple. Start by including `print.h` at the top of your file:
|
||||||
|
|
||||||
|
```c
|
||||||
|
#include "print.h"
|
||||||
|
```
|
||||||
|
|
||||||
|
After that you can use a few different print functions:
|
||||||
|
|
||||||
|
* `print("string")`: Print a simple string.
|
||||||
|
* `uprintf("%s string", var)`: Print a formatted string
|
||||||
|
* `dprint("string")` Print a simple string, but only when debug mode is enabled
|
||||||
|
* `dprintf("%s string", var)`: Print a formatted string, but only when debug mode is enabled
|
||||||
|
|
||||||
|
## Debug Examples
|
||||||
|
|
||||||
|
Below is a collection of real world debugging examples. For additional information, refer to [Debugging/Troubleshooting QMK](faq_debug.md).
|
||||||
|
|
||||||
|
### Which matrix position is this keypress?
|
||||||
|
|
||||||
|
When porting, or when attempting to diagnose pcb issues, it can be useful to know if a keypress is scanned correctly. To enable logging for this scenario, add the following code to your keymaps `keymap.c`
|
||||||
|
|
||||||
|
```c
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
// If console is enabled, it will print the matrix position and status of each key pressed
|
||||||
|
#ifdef CONSOLE_ENABLE
|
||||||
|
uprintf("KL: kc: 0x%04X, col: %u, row: %u, pressed: %b, time: %u, interrupt: %b, count: %u\n", keycode, record->event.key.col, record->event.key.row, record->event.pressed, record->event.time, record->tap.interrupted, record->tap.count);
|
||||||
|
#endif
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Example output
|
||||||
|
```text
|
||||||
|
Waiting for device:.......
|
||||||
|
Listening:
|
||||||
|
KL: kc: 169, col: 0, row: 0, pressed: 1
|
||||||
|
KL: kc: 169, col: 0, row: 0, pressed: 0
|
||||||
|
KL: kc: 174, col: 1, row: 0, pressed: 1
|
||||||
|
KL: kc: 174, col: 1, row: 0, pressed: 0
|
||||||
|
KL: kc: 172, col: 2, row: 0, pressed: 1
|
||||||
|
KL: kc: 172, col: 2, row: 0, pressed: 0
|
||||||
|
```
|
||||||
|
|
||||||
|
### How long did it take to scan for a keypress?
|
||||||
|
|
||||||
|
When testing performance issues, it can be useful to know the frequency at which the switch matrix is being scanned. To enable logging for this scenario, add the following code to your keymaps `config.h`
|
||||||
|
|
||||||
|
```c
|
||||||
|
#define DEBUG_MATRIX_SCAN_RATE
|
||||||
|
```
|
||||||
|
|
||||||
|
Example output
|
||||||
|
```text
|
||||||
|
> matrix scan frequency: 315
|
||||||
|
> matrix scan frequency: 313
|
||||||
|
> matrix scan frequency: 316
|
||||||
|
> matrix scan frequency: 316
|
||||||
|
> matrix scan frequency: 316
|
||||||
|
> matrix scan frequency: 316
|
||||||
|
```
|
||||||
|
|
||||||
## `hid_listen` Can't Recognize Device
|
## `hid_listen` Can't Recognize Device
|
||||||
When debug console of your device is not ready you will see like this:
|
When debug console of your device is not ready you will see like this:
|
||||||
@@ -11,7 +98,7 @@ When debug console of your device is not ready you will see like this:
|
|||||||
Waiting for device:.........
|
Waiting for device:.........
|
||||||
```
|
```
|
||||||
|
|
||||||
once the device is plugged in then *hid_listen* finds it you will get this message:
|
Once the device is plugged in then *hid_listen* finds it you will get this message:
|
||||||
|
|
||||||
```
|
```
|
||||||
Waiting for new device:.........................
|
Waiting for new device:.........................
|
||||||
@@ -20,129 +107,12 @@ Listening:
|
|||||||
|
|
||||||
If you can't get this 'Listening:' message try building with `CONSOLE_ENABLE=yes` in [Makefile]
|
If you can't get this 'Listening:' message try building with `CONSOLE_ENABLE=yes` in [Makefile]
|
||||||
|
|
||||||
You may need privilege to access the device on OS like Linux.
|
You may need privileges to access the device an OS like Linux. Try `sudo hid_listen`.
|
||||||
- try `sudo hid_listen`
|
|
||||||
|
|
||||||
## Can't Get Message on Console
|
## Can't Get Message on Console
|
||||||
Check:
|
Check:
|
||||||
- *hid_listen* finds your device. See above.
|
- *hid_listen* finds your device. See above.
|
||||||
- Enable debug with pressing **Magic**+d. See [Magic Commands](https://github.com/tmk/tmk_keyboard#magic-commands).
|
- Enable debug by pressing **Magic**+d. See [Magic Commands](https://github.com/tmk/tmk_keyboard#magic-commands).
|
||||||
- set `debug_enable=true`. See [Testing and Debugging](newbs_testing_debugging.md#debugging)
|
- Set `debug_enable=true`. See [Debugging](#debugging)
|
||||||
- try using 'print' function instead of debug print. See **common/print.h**.
|
- Try using `print` function instead of debug print. See **common/print.h**.
|
||||||
- disconnect other devices with console function. See [Issue #97](https://github.com/tmk/tmk_keyboard/issues/97).
|
- Disconnect other devices with console function. See [Issue #97](https://github.com/tmk/tmk_keyboard/issues/97).
|
||||||
|
|
||||||
***
|
|
||||||
|
|
||||||
# Miscellaneous
|
|
||||||
## Safety Considerations
|
|
||||||
|
|
||||||
You probably don't want to "brick" your keyboard, making it impossible
|
|
||||||
to rewrite firmware onto it. Here are some of the parameters to show
|
|
||||||
what things are (and likely aren't) too risky.
|
|
||||||
|
|
||||||
- If your keyboard map does not include RESET, then, to get into DFU
|
|
||||||
mode, you will need to press the reset button on the PCB, which
|
|
||||||
requires unscrewing the bottom.
|
|
||||||
- Messing with tmk_core / common files might make the keyboard
|
|
||||||
inoperable
|
|
||||||
- Too large a .hex file is trouble; `make dfu` will erase the block,
|
|
||||||
test the size (oops, wrong order!), which errors out, failing to
|
|
||||||
flash the keyboard, leaving it in DFU mode.
|
|
||||||
- To this end, note that the maximum .hex file size on Planck is
|
|
||||||
7000h (28672 decimal)
|
|
||||||
|
|
||||||
```
|
|
||||||
Linking: .build/planck_rev4_cbbrowne.elf [OK]
|
|
||||||
Creating load file for Flash: .build/planck_rev4_cbbrowne.hex [OK]
|
|
||||||
|
|
||||||
Size after:
|
|
||||||
text data bss dec hex filename
|
|
||||||
0 22396 0 22396 577c planck_rev4_cbbrowne.hex
|
|
||||||
```
|
|
||||||
|
|
||||||
- The above file is of size 22396/577ch, which is less than
|
|
||||||
28672/7000h
|
|
||||||
- As long as you have a suitable alternative .hex file around, you
|
|
||||||
can retry, loading that one
|
|
||||||
- Some of the options you might specify in your keyboard's Makefile
|
|
||||||
consume extra memory; watch out for BOOTMAGIC_ENABLE,
|
|
||||||
MOUSEKEY_ENABLE, EXTRAKEY_ENABLE, CONSOLE_ENABLE, API_SYSEX_ENABLE
|
|
||||||
- DFU tools do /not/ allow you to write into the bootloader (unless
|
|
||||||
you throw in extra fruit salad of options), so there is little risk
|
|
||||||
there.
|
|
||||||
- EEPROM has around a 100000 write cycle. You shouldn't rewrite the
|
|
||||||
firmware repeatedly and continually; that'll burn the EEPROM
|
|
||||||
eventually.
|
|
||||||
|
|
||||||
## NKRO Doesn't work
|
|
||||||
First you have to compile firmware with this build option `NKRO_ENABLE` in **Makefile**.
|
|
||||||
|
|
||||||
Try `Magic` **N** command(`LShift+RShift+N` by default) when **NKRO** still doesn't work. You can use this command to toggle between **NKRO** and **6KRO** mode temporarily. In some situations **NKRO** doesn't work you need to switch to **6KRO** mode, in particular when you are in BIOS.
|
|
||||||
|
|
||||||
If your firmware built with `BOOTMAGIC_ENABLE` you need to turn its switch on by `BootMagic` **N** command(`Space+N` by default). This setting is stored in EEPROM and kept over power cycles.
|
|
||||||
|
|
||||||
https://github.com/tmk/tmk_keyboard#boot-magic-configuration---virtual-dip-switch
|
|
||||||
|
|
||||||
|
|
||||||
## TrackPoint Needs Reset Circuit (PS/2 Mouse Support)
|
|
||||||
Without reset circuit you will have inconsistent result due to improper initialize of the hardware. See circuit schematic of TPM754.
|
|
||||||
|
|
||||||
- http://geekhack.org/index.php?topic=50176.msg1127447#msg1127447
|
|
||||||
- http://www.mikrocontroller.net/attachment/52583/tpm754.pdf
|
|
||||||
|
|
||||||
|
|
||||||
## Can't Read Column of Matrix Beyond 16
|
|
||||||
Use `1UL<<16` instead of `1<<16` in `read_cols()` in [matrix.h] when your columns goes beyond 16.
|
|
||||||
|
|
||||||
In C `1` means one of [int] type which is [16 bit] in case of AVR so you can't shift left more than 15. You will get unexpected zero when you say `1<<16`. You have to use [unsigned long] type with `1UL`.
|
|
||||||
|
|
||||||
http://deskthority.net/workshop-f7/rebuilding-and-redesigning-a-classic-thinkpad-keyboard-t6181-60.html#p146279
|
|
||||||
|
|
||||||
## Special Extra Key Doesn't Work (System, Audio Control Keys)
|
|
||||||
You need to define `EXTRAKEY_ENABLE` in `rules.mk` to use them in QMK.
|
|
||||||
|
|
||||||
```
|
|
||||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
|
||||||
```
|
|
||||||
|
|
||||||
## Wakeup from Sleep Doesn't Work
|
|
||||||
|
|
||||||
In Windows check `Allow this device to wake the computer` setting in Power **Management property** tab of **Device Manager**. Also check BIOS setting.
|
|
||||||
|
|
||||||
Pressing any key during sleep should wake host.
|
|
||||||
|
|
||||||
## Using Arduino?
|
|
||||||
|
|
||||||
**Note that Arduino pin naming is different from actual chip.** For example, Arduino pin `D0` is not `PD0`. Check circuit with its schematics yourself.
|
|
||||||
|
|
||||||
- http://arduino.cc/en/uploads/Main/arduino-leonardo-schematic_3b.pdf
|
|
||||||
- http://arduino.cc/en/uploads/Main/arduino-micro-schematic.pdf
|
|
||||||
|
|
||||||
Arduino Leonardo and micro have **ATMega32U4** and can be used for TMK, though Arduino bootloader may be a problem.
|
|
||||||
|
|
||||||
## Enabling JTAG
|
|
||||||
|
|
||||||
By default, the JTAG debugging interface is disabled as soon as the keyboard starts up. JTAG-capable MCUs come from the factory with the `JTAGEN` fuse set, and it takes over certain pins of the MCU that the board may be using for the switch matrix, LEDs, etc.
|
|
||||||
|
|
||||||
If you would like to keep JTAG enabled, just add the following to your `config.h`:
|
|
||||||
|
|
||||||
```c
|
|
||||||
#define NO_JTAG_DISABLE
|
|
||||||
```
|
|
||||||
|
|
||||||
## USB 3 Compatibility
|
|
||||||
I heard some people have a problem with USB 3 port, try USB 2 port.
|
|
||||||
|
|
||||||
|
|
||||||
## Mac Compatibility
|
|
||||||
### OS X 10.11 and Hub
|
|
||||||
https://geekhack.org/index.php?topic=14290.msg1884034#msg1884034
|
|
||||||
|
|
||||||
|
|
||||||
## Problem on BIOS (UEFI)/Resume (Sleep & Wake)/Power Cycles
|
|
||||||
Some people reported their keyboard stops working on BIOS and/or after resume(power cycles).
|
|
||||||
|
|
||||||
As of now root of its cause is not clear but some build options seem to be related. In Makefile try to disable those options like `CONSOLE_ENABLE`, `NKRO_ENABLE`, `SLEEP_LED_ENABLE` and/or others.
|
|
||||||
|
|
||||||
https://github.com/tmk/tmk_keyboard/issues/266
|
|
||||||
https://geekhack.org/index.php?topic=41989.msg1967778#msg1967778
|
|
||||||
|
@@ -34,7 +34,7 @@ Additionally, you can find additional `git` and GitHub related links [here](newb
|
|||||||
|
|
||||||
Awesome! Open up a Pull Request for it. We'll review the code, and merge it!
|
Awesome! Open up a Pull Request for it. We'll review the code, and merge it!
|
||||||
|
|
||||||
### What if I want to do brand it with `QMK`?
|
### What if I want to brand it with `QMK`?
|
||||||
|
|
||||||
That's amazing! We would love to assist you with that!
|
That's amazing! We would love to assist you with that!
|
||||||
|
|
||||||
|
@@ -11,7 +11,7 @@ Keycodes are actually defined in [common/keycode.h](https://github.com/qmk/qmk_f
|
|||||||
|
|
||||||
There are 3 standard keyboard layouts in use around the world- ANSI, ISO, and JIS. North America primarily uses ANSI, Europe and Africa primarily use ISO, and Japan uses JIS. Regions not mentioned typically use either ANSI or ISO. The keycodes corresponding to these layouts are shown here:
|
There are 3 standard keyboard layouts in use around the world- ANSI, ISO, and JIS. North America primarily uses ANSI, Europe and Africa primarily use ISO, and Japan uses JIS. Regions not mentioned typically use either ANSI or ISO. The keycodes corresponding to these layouts are shown here:
|
||||||
|
|
||||||
<!-- Source for this image: http://www.keyboard-layout-editor.com/#/gists/bf431647d1001cff5eff20ae55621e9a -->
|
<!-- Source for this image: https://www.keyboard-layout-editor.com/#/gists/bf431647d1001cff5eff20ae55621e9a -->
|
||||||

|

|
||||||
|
|
||||||
## How Can I Make Custom Names For Complex Keycodes?
|
## How Can I Make Custom Names For Complex Keycodes?
|
||||||
@@ -42,8 +42,8 @@ The key found on most modern keyboards that is located between `KC_RGUI` and `KC
|
|||||||
Use keycode for Print Screen(`KC_PSCREEN` or `KC_PSCR`) instead of `KC_SYSREQ`. Key combination of 'Alt + Print Screen' is recognized as 'System request'.
|
Use keycode for Print Screen(`KC_PSCREEN` or `KC_PSCR`) instead of `KC_SYSREQ`. Key combination of 'Alt + Print Screen' is recognized as 'System request'.
|
||||||
|
|
||||||
See [issue #168](https://github.com/tmk/tmk_keyboard/issues/168) and
|
See [issue #168](https://github.com/tmk/tmk_keyboard/issues/168) and
|
||||||
* http://en.wikipedia.org/wiki/Magic_SysRq_key
|
* https://en.wikipedia.org/wiki/Magic_SysRq_key
|
||||||
* http://en.wikipedia.org/wiki/System_request
|
* https://en.wikipedia.org/wiki/System_request
|
||||||
|
|
||||||
## Power Keys Aren't Working
|
## Power Keys Aren't Working
|
||||||
|
|
||||||
@@ -60,13 +60,13 @@ Modifier keys or layers can be stuck unless layer switching is configured proper
|
|||||||
For Modifier keys and layer actions you have to place `KC_TRANS` on same position of destination layer to unregister the modifier key or return to previous layer on release event.
|
For Modifier keys and layer actions you have to place `KC_TRANS` on same position of destination layer to unregister the modifier key or return to previous layer on release event.
|
||||||
|
|
||||||
* https://github.com/tmk/tmk_core/blob/master/doc/keymap.md#31-momentary-switching
|
* https://github.com/tmk/tmk_core/blob/master/doc/keymap.md#31-momentary-switching
|
||||||
* http://geekhack.org/index.php?topic=57008.msg1492604#msg1492604
|
* https://geekhack.org/index.php?topic=57008.msg1492604#msg1492604
|
||||||
* https://github.com/tmk/tmk_keyboard/issues/248
|
* https://github.com/tmk/tmk_keyboard/issues/248
|
||||||
|
|
||||||
|
|
||||||
## Mechanical Lock Switch Support
|
## Mechanical Lock Switch Support
|
||||||
|
|
||||||
This feature is for *mechanical lock switch* like [this Alps one](http://deskthority.net/wiki/Alps_SKCL_Lock). You can enable it by adding this to your `config.h`:
|
This feature is for *mechanical lock switch* like [this Alps one](https://deskthority.net/wiki/Alps_SKCL_Lock). You can enable it by adding this to your `config.h`:
|
||||||
|
|
||||||
```
|
```
|
||||||
#define LOCKING_SUPPORT_ENABLE
|
#define LOCKING_SUPPORT_ENABLE
|
||||||
|
117
docs/faq_misc.md
Normal file
117
docs/faq_misc.md
Normal file
@@ -0,0 +1,117 @@
|
|||||||
|
# Miscellaneous FAQ
|
||||||
|
|
||||||
|
## How do I test my keyboard? :id=testing
|
||||||
|
|
||||||
|
Testing your keyboard is usually pretty straightforward. Press every single key and make sure it sends the keys you expect. You can use [QMK Configurator](https://config.qmk.fm/#/test/)'s test mode to check your keyboard, even if it doesn't run QMK.
|
||||||
|
|
||||||
|
## Safety Considerations
|
||||||
|
|
||||||
|
You probably don't want to "brick" your keyboard, making it impossible
|
||||||
|
to rewrite firmware onto it. Here are some of the parameters to show
|
||||||
|
what things are (and likely aren't) too risky.
|
||||||
|
|
||||||
|
- If your keyboard map does not include RESET, then, to get into DFU
|
||||||
|
mode, you will need to press the reset button on the PCB, which
|
||||||
|
requires unscrewing the bottom.
|
||||||
|
- Messing with tmk_core / common files might make the keyboard
|
||||||
|
inoperable
|
||||||
|
- Too large a .hex file is trouble; `make dfu` will erase the block,
|
||||||
|
test the size (oops, wrong order!), which errors out, failing to
|
||||||
|
flash the keyboard, leaving it in DFU mode.
|
||||||
|
- To this end, note that the maximum .hex file size on e.g. Planck
|
||||||
|
is 7000h (28672 decimal)
|
||||||
|
|
||||||
|
```
|
||||||
|
Linking: .build/planck_rev4_cbbrowne.elf [OK]
|
||||||
|
Creating load file for Flash: .build/planck_rev4_cbbrowne.hex [OK]
|
||||||
|
|
||||||
|
Size after:
|
||||||
|
text data bss dec hex filename
|
||||||
|
0 22396 0 22396 577c planck_rev4_cbbrowne.hex
|
||||||
|
```
|
||||||
|
|
||||||
|
- The above file is of size 22396/577ch, which is less than
|
||||||
|
28672/7000h
|
||||||
|
- As long as you have a suitable alternative .hex file around, you
|
||||||
|
can retry, loading that one
|
||||||
|
- Some of the options you might specify in your keyboard's Makefile
|
||||||
|
consume extra memory; watch out for BOOTMAGIC_ENABLE,
|
||||||
|
MOUSEKEY_ENABLE, EXTRAKEY_ENABLE, CONSOLE_ENABLE, API_SYSEX_ENABLE
|
||||||
|
- DFU tools do /not/ allow you to write into the bootloader (unless
|
||||||
|
you throw in an extra fruit salad of options), so there is little risk
|
||||||
|
there.
|
||||||
|
- EEPROM has around a 100000 (100k) write cycle. You shouldn't rewrite
|
||||||
|
the firmware repeatedly and continually; that'll burn the EEPROM
|
||||||
|
eventually.
|
||||||
|
|
||||||
|
## NKRO Doesn't work
|
||||||
|
First you have to compile firmware with the build option `NKRO_ENABLE` in **Makefile**.
|
||||||
|
|
||||||
|
Try `Magic` **N** command(`LShift+RShift+N` by default) when **NKRO** still doesn't work. You can use this command to toggle between **NKRO** and **6KRO** mode temporarily. In some situations **NKRO** doesn't work and you will need to switch to **6KRO** mode, in particular when you are in BIOS.
|
||||||
|
|
||||||
|
If your firmware was built with `BOOTMAGIC_ENABLE` you need to turn its switch on by `BootMagic` **N** command(`Space+N` by default). This setting is stored in EEPROM and kept over power cycles.
|
||||||
|
|
||||||
|
https://github.com/tmk/tmk_keyboard#boot-magic-configuration---virtual-dip-switch
|
||||||
|
|
||||||
|
|
||||||
|
## TrackPoint Needs Reset Circuit (PS/2 Mouse Support)
|
||||||
|
Without reset circuit you will have inconsistent result due to improper initialization of the hardware. See circuit schematic of TPM754:
|
||||||
|
|
||||||
|
- https://geekhack.org/index.php?topic=50176.msg1127447#msg1127447
|
||||||
|
- https://www.mikrocontroller.net/attachment/52583/tpm754.pdf
|
||||||
|
|
||||||
|
|
||||||
|
## Can't Read Column of Matrix Beyond 16
|
||||||
|
Use `1UL<<16` instead of `1<<16` in `read_cols()` in [matrix.h] when your columns goes beyond 16.
|
||||||
|
|
||||||
|
In C `1` means one of [int] type which is [16 bit] in case of AVR, so you can't shift left more than 15. Thus, calculating `1<<16` will unexpectedly equal zero. To work around this, you have to use [unsigned long] type with `1UL`.
|
||||||
|
|
||||||
|
https://deskthority.net/workshop-f7/rebuilding-and-redesigning-a-classic-thinkpad-keyboard-t6181-60.html#p146279
|
||||||
|
|
||||||
|
## Special Extra Key Doesn't Work (System, Audio Control Keys)
|
||||||
|
You need to define `EXTRAKEY_ENABLE` in `rules.mk` to use them in QMK.
|
||||||
|
|
||||||
|
```
|
||||||
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
|
```
|
||||||
|
|
||||||
|
## Wake from Sleep Doesn't Work
|
||||||
|
|
||||||
|
In Windows check `Allow this device to wake the computer` setting in **Power Management** property tab of **Device Manager**. Also check your BIOS settings. Pressing any key during sleep should wake host.
|
||||||
|
|
||||||
|
## Using Arduino?
|
||||||
|
|
||||||
|
**Note that Arduino pin naming is different from actual chip.** For example, Arduino pin `D0` is not `PD0`. Check circuit with its schematics yourself.
|
||||||
|
|
||||||
|
- https://arduino.cc/en/uploads/Main/arduino-leonardo-schematic_3b.pdf
|
||||||
|
- https://arduino.cc/en/uploads/Main/arduino-micro-schematic.pdf
|
||||||
|
|
||||||
|
Arduino Leonardo and micro have **ATMega32U4** and can be used for TMK, though Arduino bootloader may be a problem.
|
||||||
|
|
||||||
|
## Enabling JTAG
|
||||||
|
|
||||||
|
By default, the JTAG debugging interface is disabled as soon as the keyboard starts up. JTAG-capable MCUs come from the factory with the `JTAGEN` fuse set, and it takes over certain pins of the MCU that the board may be using for the switch matrix, LEDs, etc.
|
||||||
|
|
||||||
|
If you would like to keep JTAG enabled, just add the following to your `config.h`:
|
||||||
|
|
||||||
|
```c
|
||||||
|
#define NO_JTAG_DISABLE
|
||||||
|
```
|
||||||
|
|
||||||
|
## USB 3 Compatibility
|
||||||
|
Some problems can be fixed by switching from a USB 3.x port to a USB 2.0 port.
|
||||||
|
|
||||||
|
|
||||||
|
## Mac Compatibility
|
||||||
|
### OS X 10.11 and Hub
|
||||||
|
See here: https://geekhack.org/index.php?topic=14290.msg1884034#msg1884034
|
||||||
|
|
||||||
|
|
||||||
|
## Problem in BIOS (UEFI) Setup/Resume (Sleep & Wake)/Power Cycles
|
||||||
|
Some people reported their keyboard stops working in BIOS and/or after resume(power cycles).
|
||||||
|
|
||||||
|
As of now the root cause is not clear, but some build options seem to be related. In Makefile, try to disable options like `CONSOLE_ENABLE`, `NKRO_ENABLE`, `SLEEP_LED_ENABLE` and/or others.
|
||||||
|
|
||||||
|
More info:
|
||||||
|
- https://github.com/tmk/tmk_keyboard/issues/266
|
||||||
|
- https://geekhack.org/index.php?topic=41989.msg1967778#msg1967778
|
@@ -56,7 +56,7 @@ Define these arrays listing all the LEDs in your `<keyboard>.c`:
|
|||||||
....
|
....
|
||||||
}
|
}
|
||||||
|
|
||||||
Where `Cx_y` is the location of the LED in the matrix defined by [the datasheet](http://www.issi.com/WW/pdf/31FL3731.pdf) and the header file `drivers/issi/is31fl3731-simple.h`. The `driver` is the index of the driver you defined in your `config.h` (`0`, `1`, `2`, or `3` ).
|
Where `Cx_y` is the location of the LED in the matrix defined by [the datasheet](https://www.issi.com/WW/pdf/31FL3731.pdf) and the header file `drivers/issi/is31fl3731-simple.h`. The `driver` is the index of the driver you defined in your `config.h` (`0`, `1`, `2`, or `3` ).
|
||||||
|
|
||||||
## Keycodes
|
## Keycodes
|
||||||
|
|
||||||
|
@@ -209,7 +209,7 @@ SEND_STRING(".."SS_TAP(X_END));
|
|||||||
|
|
||||||
There are some functions you may find useful in macro-writing. Keep in mind that while you can write some fairly advanced code within a macro, if your functionality gets too complex you may want to define a custom keycode instead. Macros are meant to be simple.
|
There are some functions you may find useful in macro-writing. Keep in mind that while you can write some fairly advanced code within a macro, if your functionality gets too complex you may want to define a custom keycode instead. Macros are meant to be simple.
|
||||||
|
|
||||||
?> You can also use the functions described in [Useful function](ref_functions.md) for additional functionality. For example `reset_keyboard()` allows you to reset the keyboard as part of a macro.
|
?> You can also use the functions described in [Useful functions](ref_functions.md) for additional functionality. For example `reset_keyboard()` allows you to reset the keyboard as part of a macro.
|
||||||
|
|
||||||
### `record->event.pressed`
|
### `record->event.pressed`
|
||||||
|
|
||||||
|
@@ -27,6 +27,10 @@ Once you have made the necessary changes to the mouse report, you need to send i
|
|||||||
|
|
||||||
When the mouse report is sent, the x, y, v, and h values are set to 0 (this is done in `pointing_device_send()`, which can be overridden to avoid this behavior). This way, button states persist, but movement will only occur once. For further customization, both `pointing_device_init` and `pointing_device_task` can be overridden.
|
When the mouse report is sent, the x, y, v, and h values are set to 0 (this is done in `pointing_device_send()`, which can be overridden to avoid this behavior). This way, button states persist, but movement will only occur once. For further customization, both `pointing_device_init` and `pointing_device_task` can be overridden.
|
||||||
|
|
||||||
|
Additionally, by default, `pointing_device_send()` will only send a report when the report has actually changed. This prevents it from continuously sending mouse reports, which will keep the host system awake. This behavior can be changed by creating your own `pointing_device_send()` function.
|
||||||
|
|
||||||
|
Also, you use the `has_mouse_report_changed(new, old)` function to check to see if the report has changed.
|
||||||
|
|
||||||
In the following example, a custom key is used to click the mouse and scroll 127 units vertically and horizontally, then undo all of that when released - because that's a totally useful function. Listen, this is an example:
|
In the following example, a custom key is used to click the mouse and scroll 127 units vertically and horizontally, then undo all of that when released - because that's a totally useful function. Listen, this is an example:
|
||||||
|
|
||||||
```c
|
```c
|
||||||
|
@@ -206,7 +206,7 @@ It's possible to enable a "scroll button/s" that when pressed will cause the mou
|
|||||||
To enable the feature, you must set a scroll button mask as follows:
|
To enable the feature, you must set a scroll button mask as follows:
|
||||||
|
|
||||||
```c
|
```c
|
||||||
#define PS2_MOUSE_SCROLL_BTN_MASK (1<<PS2_MOUSE_BUTTON_MIDDLE) /* Default */
|
#define PS2_MOUSE_SCROLL_BTN_MASK (1<<PS2_MOUSE_BTN_MIDDLE) /* Default */
|
||||||
```
|
```
|
||||||
|
|
||||||
To disable the scroll button feature:
|
To disable the scroll button feature:
|
||||||
|
@@ -53,7 +53,7 @@ const is31_led g_is31_leds[DRIVER_LED_TOTAL] = {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Where `Cx_y` is the location of the LED in the matrix defined by [the datasheet](http://www.issi.com/WW/pdf/31FL3731.pdf) and the header file `drivers/issi/is31fl3731.h`. The `driver` is the index of the driver you defined in your `config.h` (`0` or `1` right now).
|
Where `Cx_y` is the location of the LED in the matrix defined by [the datasheet](https://www.issi.com/WW/pdf/31FL3731.pdf) and the header file `drivers/issi/is31fl3731.h`. The `driver` is the index of the driver you defined in your `config.h` (`0` or `1` right now).
|
||||||
|
|
||||||
---
|
---
|
||||||
### IS31FL3733/IS31FL3737 :id=is31fl3733is31fl3737
|
### IS31FL3733/IS31FL3737 :id=is31fl3733is31fl3737
|
||||||
@@ -105,7 +105,7 @@ const is31_led g_is31_leds[DRIVER_LED_TOTAL] = {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Where `X_Y` is the location of the LED in the matrix defined by [the datasheet](http://www.issi.com/WW/pdf/31FL3733.pdf) and the header file `drivers/issi/is31fl3733.h`. The `driver` is the index of the driver you defined in your `config.h` (Only `0` right now).
|
Where `X_Y` is the location of the LED in the matrix defined by [the datasheet](https://www.issi.com/WW/pdf/31FL3733.pdf) and the header file `drivers/issi/is31fl3733.h`. The `driver` is the index of the driver you defined in your `config.h` (Only `0` right now).
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -296,6 +296,19 @@ You can disable a single effect by defining `DISABLE_[EFFECT_NAME]` in your `con
|
|||||||
|`#define DISABLE_RGB_MATRIX_SOLID_SPLASH` |Disables `RGB_MATRIX_SOLID_SPLASH` |
|
|`#define DISABLE_RGB_MATRIX_SOLID_SPLASH` |Disables `RGB_MATRIX_SOLID_SPLASH` |
|
||||||
|`#define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH` |Disables `RGB_MATRIX_SOLID_MULTISPLASH` |
|
|`#define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH` |Disables `RGB_MATRIX_SOLID_MULTISPLASH` |
|
||||||
|
|
||||||
|
### RGB Matrix Effect Typing Heatmap :id=rgb-matrix-effect-typing-heatmap
|
||||||
|
|
||||||
|
This effect will color the RGB matrix according to a heatmap of recently pressed
|
||||||
|
keys. Whenever a key is pressed its "temperature" increases as well as that of
|
||||||
|
its neighboring keys. The temperature of each key is then decreased
|
||||||
|
automatically every 25 milliseconds by default.
|
||||||
|
|
||||||
|
In order to change the delay of temperature decrease define
|
||||||
|
`RGB_MATRIX_TYPING_HEATMAP_DECREASE_DELAY_MS`:
|
||||||
|
|
||||||
|
```c
|
||||||
|
#define RGB_MATRIX_TYPING_HEATMAP_DECREASE_DELAY_MS 50
|
||||||
|
```
|
||||||
|
|
||||||
## Custom RGB Matrix Effects :id=custom-rgb-matrix-effects
|
## Custom RGB Matrix Effects :id=custom-rgb-matrix-effects
|
||||||
|
|
||||||
|
@@ -187,6 +187,8 @@ const uint8_t RGBLED_GRADIENT_RANGES[] PROGMEM = {255, 170, 127, 85, 64};
|
|||||||
|
|
||||||
## Lighting Layers
|
## Lighting Layers
|
||||||
|
|
||||||
|
?> **Note:** Lighting Layers is an RGB Light feature, it will not work for RGB Matrix. See [RGB Matrix Indicators](feature_rgb_matrix.md?indicators) for details on how to do so.
|
||||||
|
|
||||||
By including `#define RGBLIGHT_LAYERS` in your `config.h` file you can enable lighting layers. These make
|
By including `#define RGBLIGHT_LAYERS` in your `config.h` file you can enable lighting layers. These make
|
||||||
it easy to use your underglow LEDs as status indicators to show which keyboard layer is currently active, or the state of caps lock, all without disrupting any animations. [Here's a video](https://youtu.be/uLGE1epbmdY) showing an example of what you can do.
|
it easy to use your underglow LEDs as status indicators to show which keyboard layer is currently active, or the state of caps lock, all without disrupting any animations. [Here's a video](https://youtu.be/uLGE1epbmdY) showing an example of what you can do.
|
||||||
|
|
||||||
@@ -194,7 +196,7 @@ it easy to use your underglow LEDs as status indicators to show which keyboard l
|
|||||||
|
|
||||||
By default, 8 layers are possible. This can be expanded to as many as 32 by overriding the definition of `RGBLIGHT_MAX_LAYERS` in `config.h` (e.g. `#define RGBLIGHT_MAX_LAYERS 32`). Please note, if you use a split keyboard, you will need to flash both sides of the split after changing this. Also, increasing the maximum will increase the firmware size, and will slow sync on split keyboards.
|
By default, 8 layers are possible. This can be expanded to as many as 32 by overriding the definition of `RGBLIGHT_MAX_LAYERS` in `config.h` (e.g. `#define RGBLIGHT_MAX_LAYERS 32`). Please note, if you use a split keyboard, you will need to flash both sides of the split after changing this. Also, increasing the maximum will increase the firmware size, and will slow sync on split keyboards.
|
||||||
|
|
||||||
To define a layer, we modify `keymap.c` to list out LED ranges and the colors we want to overlay on them using an array of `rgblight_segment_t` using the `RGBLIGHT_LAYER_SEGMENTS` macro. We can define multiple layers and enable/disable them independently:
|
To define a layer, we modify `keymap.c` to list the LED ranges and the colors we want to overlay on them using an array of `rgblight_segment_t` using the `RGBLIGHT_LAYER_SEGMENTS` macro. We can define multiple layers and enable/disable them independently:
|
||||||
|
|
||||||
```c
|
```c
|
||||||
// Light LEDs 6 to 9 and 12 to 15 red when caps lock is active. Hard to ignore!
|
// Light LEDs 6 to 9 and 12 to 15 red when caps lock is active. Hard to ignore!
|
||||||
@@ -210,6 +212,10 @@ const rgblight_segment_t PROGMEM my_layer1_layer[] = RGBLIGHT_LAYER_SEGMENTS(
|
|||||||
const rgblight_segment_t PROGMEM my_layer2_layer[] = RGBLIGHT_LAYER_SEGMENTS(
|
const rgblight_segment_t PROGMEM my_layer2_layer[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||||
{11, 2, HSV_PURPLE}
|
{11, 2, HSV_PURPLE}
|
||||||
);
|
);
|
||||||
|
// Light LEDs 13 & 14 in green when keyboard layer 3 is active
|
||||||
|
const rgblight_segment_t PROGMEM my_layer3_layer[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||||
|
{13, 2, HSV_GREEN}
|
||||||
|
);
|
||||||
// etc..
|
// etc..
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -220,7 +226,8 @@ We combine these layers into an array using the `RGBLIGHT_LAYERS_LIST` macro, an
|
|||||||
const rgblight_segment_t* const PROGMEM my_rgb_layers[] = RGBLIGHT_LAYERS_LIST(
|
const rgblight_segment_t* const PROGMEM my_rgb_layers[] = RGBLIGHT_LAYERS_LIST(
|
||||||
my_capslock_layer,
|
my_capslock_layer,
|
||||||
my_layer1_layer, // Overrides caps lock layer
|
my_layer1_layer, // Overrides caps lock layer
|
||||||
my_layer2_layer // Overrides other layers
|
my_layer2_layer, // Overrides other layers
|
||||||
|
my_layer3_layer // Overrides other layers
|
||||||
);
|
);
|
||||||
|
|
||||||
void keyboard_post_init_user(void) {
|
void keyboard_post_init_user(void) {
|
||||||
@@ -236,17 +243,21 @@ Everything above just configured the definition of each lighting layer.
|
|||||||
We can now enable and disable the lighting layers whenever the state of the keyboard changes:
|
We can now enable and disable the lighting layers whenever the state of the keyboard changes:
|
||||||
|
|
||||||
```c
|
```c
|
||||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
|
||||||
// Both layers will light up if both kb layers are active
|
|
||||||
rgblight_set_layer_state(1, layer_state_cmp(state, 1));
|
|
||||||
rgblight_set_layer_state(2, layer_state_cmp(state, 2));
|
|
||||||
return state;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool led_update_user(led_t led_state) {
|
bool led_update_user(led_t led_state) {
|
||||||
rgblight_set_layer_state(0, led_state.caps_lock);
|
rgblight_set_layer_state(0, led_state.caps_lock);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
layer_state_t default_layer_state_set_user(layer_state_t state) {
|
||||||
|
rgblight_set_layer_state(1, layer_state_cmp(state, _DVORAK));
|
||||||
|
return state;
|
||||||
|
}
|
||||||
|
|
||||||
|
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||||
|
rgblight_set_layer_state(2, layer_state_cmp(state, _FN));
|
||||||
|
rgblight_set_layer_state(3, layer_state_cmp(state, _ADJUST));
|
||||||
|
return state;
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### Lighting layer blink :id=lighting-layer-blink
|
### Lighting layer blink :id=lighting-layer-blink
|
||||||
@@ -350,6 +361,7 @@ rgblight_sethsv(HSV_GREEN, 2); // led 2
|
|||||||
|`rgblight_step_noeeprom()` |Change the mode to the next RGB animation in the list of enabled RGB animations (not written to EEPROM) |
|
|`rgblight_step_noeeprom()` |Change the mode to the next RGB animation in the list of enabled RGB animations (not written to EEPROM) |
|
||||||
|`rgblight_step_reverse()` |Change the mode to the previous RGB animation in the list of enabled RGB animations |
|
|`rgblight_step_reverse()` |Change the mode to the previous RGB animation in the list of enabled RGB animations |
|
||||||
|`rgblight_step_reverse_noeeprom()` |Change the mode to the previous RGB animation in the list of enabled RGB animations (not written to EEPROM) |
|
|`rgblight_step_reverse_noeeprom()` |Change the mode to the previous RGB animation in the list of enabled RGB animations (not written to EEPROM) |
|
||||||
|
|`rgblight_reload_from_eeprom()` |Reload the effect configuration (enabled, mode and color) from EEPROM |
|
||||||
|
|
||||||
#### effects mode disable/enable
|
#### effects mode disable/enable
|
||||||
|Function |Description |
|
|Function |Description |
|
||||||
@@ -368,14 +380,14 @@ rgblight_sethsv(HSV_GREEN, 2); // led 2
|
|||||||
|`rgblight_increase_hue_noeeprom()` |Increase the hue for effect range LEDs. This wraps around at maximum hue (not written to EEPROM) |
|
|`rgblight_increase_hue_noeeprom()` |Increase the hue for effect range LEDs. This wraps around at maximum hue (not written to EEPROM) |
|
||||||
|`rgblight_decrease_hue()` |Decrease the hue for effect range LEDs. This wraps around at minimum hue |
|
|`rgblight_decrease_hue()` |Decrease the hue for effect range LEDs. This wraps around at minimum hue |
|
||||||
|`rgblight_decrease_hue_noeeprom()` |Decrease the hue for effect range LEDs. This wraps around at minimum hue (not written to EEPROM) |
|
|`rgblight_decrease_hue_noeeprom()` |Decrease the hue for effect range LEDs. This wraps around at minimum hue (not written to EEPROM) |
|
||||||
|`rgblight_increase_sat()` |Increase the saturation for effect range LEDs. This wraps around at maximum saturation |
|
|`rgblight_increase_sat()` |Increase the saturation for effect range LEDs. This stops at maximum saturation |
|
||||||
|`rgblight_increase_sat_noeeprom()` |Increase the saturation for effect range LEDs. This wraps around at maximum saturation (not written to EEPROM) |
|
|`rgblight_increase_sat_noeeprom()` |Increase the saturation for effect range LEDs. This stops at maximum saturation (not written to EEPROM) |
|
||||||
|`rgblight_decrease_sat()` |Decrease the saturation for effect range LEDs. This wraps around at minimum saturation |
|
|`rgblight_decrease_sat()` |Decrease the saturation for effect range LEDs. This stops at minimum saturation |
|
||||||
|`rgblight_decrease_sat_noeeprom()` |Decrease the saturation for effect range LEDs. This wraps around at minimum saturation (not written to EEPROM) |
|
|`rgblight_decrease_sat_noeeprom()` |Decrease the saturation for effect range LEDs. This stops at minimum saturation (not written to EEPROM) |
|
||||||
|`rgblight_increase_val()` |Increase the value for effect range LEDs. This wraps around at maximum value |
|
|`rgblight_increase_val()` |Increase the value for effect range LEDs. This stops at maximum value |
|
||||||
|`rgblight_increase_val_noeeprom()` |Increase the value for effect range LEDs. This wraps around at maximum value (not written to EEPROM) |
|
|`rgblight_increase_val_noeeprom()` |Increase the value for effect range LEDs. This stops at maximum value (not written to EEPROM) |
|
||||||
|`rgblight_decrease_val()` |Decrease the value for effect range LEDs. This wraps around at minimum value |
|
|`rgblight_decrease_val()` |Decrease the value for effect range LEDs. This stops at minimum value |
|
||||||
|`rgblight_decrease_val_noeeprom()` |Decrease the value for effect range LEDs. This wraps around at minimum value (not written to EEPROM) |
|
|`rgblight_decrease_val_noeeprom()` |Decrease the value for effect range LEDs. This stops at minimum value (not written to EEPROM) |
|
||||||
|`rgblight_sethsv(h, s, v)` |Set effect range LEDs to the given HSV value where `h`/`s`/`v` are between 0 and 255 |
|
|`rgblight_sethsv(h, s, v)` |Set effect range LEDs to the given HSV value where `h`/`s`/`v` are between 0 and 255 |
|
||||||
|`rgblight_sethsv_noeeprom(h, s, v)` |Set effect range LEDs to the given HSV value where `h`/`s`/`v` are between 0 and 255 (not written to EEPROM) |
|
|`rgblight_sethsv_noeeprom(h, s, v)` |Set effect range LEDs to the given HSV value where `h`/`s`/`v` are between 0 and 255 (not written to EEPROM) |
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
# Space Cadet: The Future, Built In
|
# Space Cadet: The Future, Built In
|
||||||
|
|
||||||
Steve Losh described the [Space Cadet Shift](http://stevelosh.com/blog/2012/10/a-modern-space-cadet/) quite well. Essentially, when you tap Left Shift on its own, you get an opening parenthesis; tap Right Shift on its own and you get the closing one. When held, the Shift keys function as normal. Yes, it's as cool as it sounds, and now even cooler supporting Control and Alt as well!
|
Steve Losh described the [Space Cadet Shift](https://stevelosh.com/blog/2012/10/a-modern-space-cadet/) quite well. Essentially, when you tap Left Shift on its own, you get an opening parenthesis; tap Right Shift on its own and you get the closing one. When held, the Shift keys function as normal. Yes, it's as cool as it sounds, and now even cooler supporting Control and Alt as well!
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
[Stenography](https://en.wikipedia.org/wiki/Stenotype) is a method of writing most often used by court reports, closed-captioning, and real-time transcription for the deaf. In stenography words are chorded syllable by syllable with a mixture of spelling, phonetic, and shortcut (briefs) strokes. Professional stenographers can reach 200-300 WPM without any of the strain usually found in standard typing and with far fewer errors (>99.9% accuracy).
|
[Stenography](https://en.wikipedia.org/wiki/Stenotype) is a method of writing most often used by court reports, closed-captioning, and real-time transcription for the deaf. In stenography words are chorded syllable by syllable with a mixture of spelling, phonetic, and shortcut (briefs) strokes. Professional stenographers can reach 200-300 WPM without any of the strain usually found in standard typing and with far fewer errors (>99.9% accuracy).
|
||||||
|
|
||||||
The [Open Steno Project](http://www.openstenoproject.org/) has built an open-source program called Plover that provides real-time translation of steno strokes into words and commands. It has an established dictionary and supports
|
The [Open Steno Project](https://www.openstenoproject.org/) has built an open-source program called Plover that provides real-time translation of steno strokes into words and commands. It has an established dictionary and supports
|
||||||
|
|
||||||
## Plover with QWERTY Keyboard :id=plover-with-qwerty-keyboard
|
## Plover with QWERTY Keyboard :id=plover-with-qwerty-keyboard
|
||||||
|
|
||||||
@@ -52,7 +52,6 @@ On the display tab click 'Open stroke display'. With Plover disabled you should
|
|||||||
## Learning Stenography :id=learning-stenography
|
## Learning Stenography :id=learning-stenography
|
||||||
|
|
||||||
* [Learn Plover!](https://sites.google.com/site/learnplover/)
|
* [Learn Plover!](https://sites.google.com/site/learnplover/)
|
||||||
* [QWERTY Steno](http://qwertysteno.com/Home/)
|
|
||||||
* [Steno Jig](https://joshuagrams.github.io/steno-jig/)
|
* [Steno Jig](https://joshuagrams.github.io/steno-jig/)
|
||||||
* More resources at the Plover [Learning Stenography](https://github.com/openstenoproject/plover/wiki/Learning-Stenography) wiki
|
* More resources at the Plover [Learning Stenography](https://github.com/openstenoproject/plover/wiki/Learning-Stenography) wiki
|
||||||
|
|
||||||
|
@@ -87,7 +87,7 @@ const qk_ucis_symbol_t ucis_symbol_table[] = UCIS_TABLE(
|
|||||||
UCIS_SYM("poop", 0x1F4A9), // 💩
|
UCIS_SYM("poop", 0x1F4A9), // 💩
|
||||||
UCIS_SYM("rofl", 0x1F923), // 🤣
|
UCIS_SYM("rofl", 0x1F923), // 🤣
|
||||||
UCIS_SYM("cuba", 0x1F1E8, 0x1F1FA), // 🇨🇺
|
UCIS_SYM("cuba", 0x1F1E8, 0x1F1FA), // 🇨🇺
|
||||||
UCIS_SYM("look", 0x0CA0, 0x005F, 0x0CA0), // ಠ_ಠ
|
UCIS_SYM("look", 0x0CA0, 0x005F, 0x0CA0) // ಠ_ಠ
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
239
docs/flashing.md
239
docs/flashing.md
@@ -1,242 +1,251 @@
|
|||||||
# Flashing Instructions and Bootloader Information
|
# Flashing Instructions and Bootloader Information
|
||||||
|
|
||||||
There are quite a few different types of bootloaders that keyboards use, and just about all of them use a different flashing method. Luckily, projects like the [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) aim to be compatible with all the different types without having to think about it much, but this article will describe the different types of bootloaders, and available methods for flashing them.
|
There are quite a few different types of bootloaders that keyboards use, and almost all of them use their own flashing method and tools. Luckily, projects like the [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) aim to support as many of them as possible, but this article will describe the different types of bootloaders, and available methods for flashing them.
|
||||||
|
|
||||||
If you have a bootloader selected with the `BOOTLOADER` variable in your `rules.mk`, QMK will automatically calculate if your .hex file is the right size to be flashed to the device, and output the total size in bytes (along with the max).
|
For AVR-based keyboards, QMK will automatically calculate if your `.hex` file is the right size to be flashed to the device based on the `BOOTLOADER` value set in `rules.mk`, and output the total size in bytes (along with the max).
|
||||||
|
|
||||||
## DFU
|
You will also be able to use the CLI to flash your keyboard, by running:
|
||||||
|
```
|
||||||
|
$ qmk flash -kb <keyboard> -km <keymap>
|
||||||
|
```
|
||||||
|
See the [`qmk flash`](cli_commands.md#qmk-flash) documentation for more information.
|
||||||
|
|
||||||
Atmel's DFU bootloader comes on all atmega32u4 chips by default, and is used by many keyboards that have their own ICs on their PCBs (Older OLKB boards, Clueboards). Some keyboards may also use LUFA's DFU bootloader (or QMK's fork) (Newer OLKB boards) that adds in additional features specific to that hardware.
|
## Atmel DFU
|
||||||
|
|
||||||
To ensure compatibility with the DFU bootloader, make sure this block is present your `rules.mk` (optionally with `lufa-dfu` or `qmk-dfu` instead):
|
Atmel's DFU bootloader comes on all USB AVRs by default (except for 16/32U4RC), and is used by many keyboards that have their own ICs on their PCBs (older OLKB boards, Clueboards). Some keyboards may also use LUFA's DFU bootloader, or QMK's fork of it (newer OLKB boards), that adds in additional features specific to that hardware.
|
||||||
|
|
||||||
|
To ensure compatibility with the DFU bootloader, make sure this block is present in your `rules.mk` (optionally with `lufa-dfu` or `qmk-dfu` instead):
|
||||||
|
|
||||||
```make
|
```make
|
||||||
# Bootloader selection
|
# Bootloader selection
|
||||||
# Teensy halfkay
|
|
||||||
# Pro Micro caterina
|
|
||||||
# Atmel DFU atmel-dfu
|
|
||||||
# LUFA DFU lufa-dfu
|
|
||||||
# QMK DFU qmk-dfu
|
|
||||||
# ATmega32A bootloadHID
|
|
||||||
# ATmega328P USBasp
|
|
||||||
BOOTLOADER = atmel-dfu
|
BOOTLOADER = atmel-dfu
|
||||||
```
|
```
|
||||||
|
|
||||||
Compatible flashers:
|
Compatible flashers:
|
||||||
|
|
||||||
* [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (recommended GUI)
|
* [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (recommended GUI)
|
||||||
* [dfu-programmer](https://github.com/dfu-programmer/dfu-programmer) / `:dfu` in QMK (recommended command line)
|
* [dfu-programmer](https://github.com/dfu-programmer/dfu-programmer) / `:dfu` target in QMK (recommended command line)
|
||||||
|
|
||||||
Flashing sequence:
|
Flashing sequence:
|
||||||
|
|
||||||
1. Press the `RESET` keycode, or tap the RESET button (or short RST to GND).
|
1. Enter the bootloader using any of the following methods:
|
||||||
|
* Press the `RESET` keycode
|
||||||
|
* Press the `RESET` button on the PCB if available
|
||||||
|
* Short RST to GND quickly
|
||||||
2. Wait for the OS to detect the device
|
2. Wait for the OS to detect the device
|
||||||
3. Erase the memory (may be done automatically)
|
3. Erase the flash memory (will be done automatically if using the Toolbox or CLI/`make` command)
|
||||||
4. Flash a .hex file
|
4. Flash a .hex file
|
||||||
5. Reset the device into application mode (may be done automatically)
|
5. Reset the device into application mode (will be done automatically as above)
|
||||||
|
|
||||||
or:
|
|
||||||
|
|
||||||
make <keyboard>:<keymap>:dfu
|
|
||||||
|
|
||||||
### QMK DFU
|
### QMK DFU
|
||||||
|
|
||||||
QMK has a fork of the LUFA DFU bootloader that allows for a simple matrix scan for exiting the bootloader and returning to the application, as well as flashing an LED/making a ticking noise with a speaker when things are happening. To enable these features, use this block in your `config.h` (The key that exits the bootloader needs to be hooked-up to the INPUT and OUTPUT defined here):
|
QMK maintains [a fork of the LUFA DFU bootloader](https://github.com/qmk/lufa/tree/master/Bootloaders/DFU) that additionally performs a simple matrix scan for exiting the bootloader and returning to the application, as well as flashing an LED/making a ticking noise with a speaker when things are happening. To enable these features, add the following defines to your `config.h`:
|
||||||
|
|
||||||
#define QMK_ESC_OUTPUT F1 // usually COL
|
```c
|
||||||
#define QMK_ESC_INPUT D5 // usually ROW
|
#define QMK_ESC_OUTPUT F1 // COL pin if COL2ROW
|
||||||
#define QMK_LED E6
|
#define QMK_ESC_INPUT D5 // ROW pin if COL2ROW
|
||||||
#define QMK_SPEAKER C6
|
// Optional:
|
||||||
|
//#define QMK_LED E6
|
||||||
|
//#define QMK_SPEAKER C6
|
||||||
|
```
|
||||||
|
Currently we do not recommend making `QMK_ESC` the same key as the one designated for [Bootmagic Lite](feature_bootmagic.md#bootmagic-lite), as holding it down will cause the MCU to loop back and forth between entering and exiting the bootloader.
|
||||||
|
|
||||||
The Manufacturer and Product names are automatically pulled from your `config.h`, and "Bootloader" is added to the product.
|
The manufacturer and product strings are automatically pulled from `config.h`, with " Bootloader" appended to the product string.
|
||||||
|
|
||||||
To generate this bootloader, use the `bootloader` target, eg `make planck/rev4:default:bootloader`.
|
To generate this bootloader, use the `bootloader` target, eg. `make planck/rev4:default:bootloader`. To generate a production-ready .hex file (combining QMK and the bootloader), use the `production` target, eg. `make planck/rev4:default:production`.
|
||||||
|
|
||||||
To generate a production-ready .hex file (containing the application and the bootloader), use the `production` target, eg `make planck/rev4:default:production`.
|
### `make` Targets
|
||||||
|
|
||||||
### DFU commands
|
* `:dfu`: Checks every 5 seconds until a DFU device is available, and then flashes the firmware.
|
||||||
|
* `:dfu-split-left` and `:dfu-split-right`: Flashes the firmware as with `:dfu`, but also sets the handedness setting in EEPROM. This is ideal for Elite-C-based split keyboards.
|
||||||
There are a number of DFU commands that you can use to flash firmware to a DFU device:
|
|
||||||
|
|
||||||
* `:dfu` - This is the normal option and waits until a DFU device is available, and then flashes the firmware. This will check every 5 seconds, to see if a DFU device has appeared.
|
|
||||||
* `:dfu-ee` - This flashes an `eep` file instead of the normal hex. This is uncommon.
|
|
||||||
* `:dfu-split-left` - This flashes the normal firmware, just like the default option (`:dfu`). However, this also flashes the "Left Side" EEPROM file for split keyboards. _This is ideal for Elite C based split keyboards._
|
|
||||||
* `:dfu-split-right` - This flashes the normal firmware, just like the default option (`:dfu`). However, this also flashes the "Right Side" EEPROM file for split keyboards. _This is ideal for Elite C based split keyboards._
|
|
||||||
|
|
||||||
## Caterina
|
## Caterina
|
||||||
|
|
||||||
Arduino boards and their clones use the [Caterina bootloader](https://github.com/arduino/ArduinoCore-avr/tree/master/bootloaders/caterina) (any keyboard built with a Pro Micro, or clone), and uses the avr109 protocol to communicate through virtual serial. Bootloaders like [A-Star](https://www.pololu.com/docs/0J61/9) are based on Caterina.
|
Arduino boards and their clones use the [Caterina bootloader](https://github.com/arduino/ArduinoCore-avr/tree/master/bootloaders/caterina) or a variant of it (any keyboard built with a Pro Micro or clone, and the Pololu A-Star), and uses the AVR109 protocol to communicate through virtual serial.
|
||||||
|
|
||||||
To ensure compatibility with the Caterina bootloader, make sure this block is present your `rules.mk`:
|
To ensure compatibility with the Caterina bootloader, make sure this block is present in your `rules.mk`:
|
||||||
|
|
||||||
```make
|
```make
|
||||||
# Bootloader selection
|
# Bootloader selection
|
||||||
# Teensy halfkay
|
|
||||||
# Pro Micro caterina
|
|
||||||
# Atmel DFU atmel-dfu
|
|
||||||
# LUFA DFU lufa-dfu
|
|
||||||
# QMK DFU qmk-dfu
|
|
||||||
# ATmega32A bootloadHID
|
|
||||||
# ATmega328P USBasp
|
|
||||||
BOOTLOADER = caterina
|
BOOTLOADER = caterina
|
||||||
```
|
```
|
||||||
|
|
||||||
Compatible flashers:
|
Compatible flashers:
|
||||||
|
|
||||||
* [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (recommended GUI)
|
* [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (recommended GUI)
|
||||||
* [avrdude](http://www.nongnu.org/avrdude/) with avr109 / `:avrdude` (recommended command line)
|
* [avrdude](https://www.nongnu.org/avrdude/) with the `avr109` programmer / `:avrdude` target in QMK (recommended command line)
|
||||||
* [AVRDUDESS](https://github.com/zkemble/AVRDUDESS)
|
* [AVRDUDESS](https://github.com/zkemble/AVRDUDESS)
|
||||||
|
|
||||||
Flashing sequence:
|
Flashing sequence:
|
||||||
|
|
||||||
1. Press the `RESET` keycode, or short RST to GND quickly (you only have 7 seconds to flash once it enters)
|
1. Enter the bootloader using any of the following methods (you only have 7 seconds to flash once it enters; some variants may require you to reset twice within 750 milliseconds):
|
||||||
|
* Press the `RESET` keycode
|
||||||
|
* Press the `RESET` button on the PCB if available
|
||||||
|
* Short RST to GND quickly
|
||||||
2. Wait for the OS to detect the device
|
2. Wait for the OS to detect the device
|
||||||
3. Flash a .hex file
|
3. Flash a .hex file
|
||||||
4. Wait for the device to reset automatically
|
4. Wait for the device to reset automatically
|
||||||
|
|
||||||
or
|
### `make` Targets
|
||||||
|
|
||||||
make <keyboard>:<keymap>:avrdude
|
* `:avrdude`: Checks every 5 seconds until a Caterina device is available (by detecting a new COM port), and then flashes the firmware.
|
||||||
|
* `:avrdude-loop`: Flashes the firmware as with `:avrdude`, but after each device is flashed, will attempt to flash again. This is useful for bulk flashing. Hit Ctrl+C to escape the loop.
|
||||||
|
* `:avrdude-split-left` and `:avrdude-split-right`: Flashes the firmware as with `:avrdude`, but also sets the handedness setting in EEPROM. This is ideal for Pro Micro-based split keyboards.
|
||||||
|
|
||||||
|
## HalfKay
|
||||||
|
|
||||||
### Caterina commands
|
HalfKay is a super-slim bootloader developed by PJRC that presents itself as an HID device (which requires no additional driver), and comes preflashed on all Teensys, namely the 2.0. It is currently closed-source, and thus once overwritten (eg. via ISP flashing another bootloader), cannot be restored.
|
||||||
|
|
||||||
There are a number of DFU commands that you can use to flash firmware to a DFU device:
|
To ensure compatibility with the Halfkay bootloader, make sure this block is present in your `rules.mk`:
|
||||||
|
|
||||||
* `:avrdude` - This is the normal option which waits until a Caterina device is available (by detecting a new COM port), and then flashes the firmware.
|
|
||||||
* `:avrdude-loop` - This runs the same command as `:avrdude`, but after each device is flashed, it will attempt to flash again. This is useful for bulk flashing. _This requires you to manually escape the loop by hitting Ctrl+C._
|
|
||||||
* `:avrdude-split-left` - This flashes the normal firmware, just like the default option (`:avrdude`). However, this also flashes the "Left Side" EEPROM file for split keyboards. _This is ideal for Pro Micro based split keyboards._
|
|
||||||
* `:avrdude-split-right` - This flashes the normal firmware, just like the default option (`:avrdude`). However, this also flashes the "Right Side" EEPROM file for split keyboards. _This is ideal for Pro Micro based split keyboards._
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Halfkay
|
|
||||||
|
|
||||||
Halfkay is a super-slim protocol developed by PJRC that uses HID, and comes on all Teensys (namely the 2.0).
|
|
||||||
|
|
||||||
To ensure compatibility with the Halfkay bootloader, make sure this block is present your `rules.mk`:
|
|
||||||
|
|
||||||
```make
|
```make
|
||||||
# Bootloader selection
|
# Bootloader selection
|
||||||
# Teensy halfkay
|
|
||||||
# Pro Micro caterina
|
|
||||||
# Atmel DFU atmel-dfu
|
|
||||||
# LUFA DFU lufa-dfu
|
|
||||||
# QMK DFU qmk-dfu
|
|
||||||
# ATmega32A bootloadHID
|
|
||||||
# ATmega328P USBasp
|
|
||||||
BOOTLOADER = halfkay
|
BOOTLOADER = halfkay
|
||||||
```
|
```
|
||||||
|
|
||||||
Compatible flashers:
|
Compatible flashers:
|
||||||
|
|
||||||
* [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (recommended GUI)
|
* [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (recommended GUI)
|
||||||
|
* [Teensy Loader Command Line](https://www.pjrc.com/teensy/loader_cli.html) / `:teensy` target in QMK (recommended command line)
|
||||||
* [Teensy Loader](https://www.pjrc.com/teensy/loader.html)
|
* [Teensy Loader](https://www.pjrc.com/teensy/loader.html)
|
||||||
* [Teensy Loader Command Line](https://www.pjrc.com/teensy/loader_cli.html) (recommended command line)
|
|
||||||
|
|
||||||
Flashing sequence:
|
Flashing sequence:
|
||||||
|
|
||||||
1. Press the `RESET` keycode, or short RST to GND quickly (you only have 7 seconds to flash once it enters)
|
1. Enter the bootloader using any of the following methods (you only have 7 seconds to flash once it enters):
|
||||||
|
* Press the `RESET` keycode
|
||||||
|
* Press the `RESET` button on the Teensy or PCB if available
|
||||||
|
* short RST to GND quickly
|
||||||
2. Wait for the OS to detect the device
|
2. Wait for the OS to detect the device
|
||||||
3. Flash a .hex file
|
3. Flash a .hex file
|
||||||
4. Reset the device into application mode (may be done automatically)
|
4. Reset the device into application mode (may be done automatically)
|
||||||
|
|
||||||
## USBasploader
|
## USBasploader
|
||||||
|
|
||||||
USBasploader is a bootloader developed by matrixstorm. It is used in some non-USB AVR chips such as the ATmega328P, which run V-USB.
|
USBasploader is a bootloader originally by [Objective Development](https://www.obdev.at/products/vusb/usbasploader.html). It emulates a USBasp ISP programmer and is used in some non-USB AVR chips such as the ATmega328P, which run V-USB.
|
||||||
|
|
||||||
To ensure compatibility with the USBasploader bootloader, make sure this block is present in your `rules.mk`:
|
To ensure compatibility with the USBasploader bootloader, make sure this block is present in your `rules.mk`:
|
||||||
|
|
||||||
```make
|
```make
|
||||||
# Bootloader selection
|
# Bootloader selection
|
||||||
# Teensy halfkay
|
|
||||||
# Pro Micro caterina
|
|
||||||
# Atmel DFU atmel-dfu
|
|
||||||
# LUFA DFU lufa-dfu
|
|
||||||
# QMK DFU qmk-dfu
|
|
||||||
# ATmega32A bootloadHID
|
|
||||||
# ATmega328P USBasp
|
|
||||||
BOOTLOADER = USBasp
|
BOOTLOADER = USBasp
|
||||||
```
|
```
|
||||||
|
|
||||||
Compatible flashers:
|
Compatible flashers:
|
||||||
|
|
||||||
* [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (recommended GUI)
|
* [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (recommended GUI)
|
||||||
* [avrdude](http://www.nongnu.org/avrdude/) with the `usbasp` programmer
|
* [avrdude](https://www.nongnu.org/avrdude/) with the `usbasp` programmer / `:usbasp` target in QMK (recommended command line)
|
||||||
* [AVRDUDESS](https://github.com/zkemble/AVRDUDESS)
|
* [AVRDUDESS](https://github.com/zkemble/AVRDUDESS)
|
||||||
|
|
||||||
Flashing sequence:
|
Flashing sequence:
|
||||||
|
|
||||||
1. Press the `RESET` keycode, or keep the boot pin shorted to GND while quickly shorting RST to GND
|
1. Enter the bootloader using any of the following methods:
|
||||||
|
* Press the `RESET` keycode
|
||||||
|
* Keep the `BOOT` button held while quickly tapping the `RESET` button on the PCB
|
||||||
2. Wait for the OS to detect the device
|
2. Wait for the OS to detect the device
|
||||||
3. Flash a .hex file
|
3. Flash a .hex file
|
||||||
4. Reset the device into application mode (may be done automatically)
|
4. Press the `RESET` button on the PCB or short RST to GND
|
||||||
|
|
||||||
## BootloadHID
|
## BootloadHID
|
||||||
|
|
||||||
BootloadHID is a USB bootloader for AVR microcontrollers. The uploader tool requires no kernel level driver on Windows and can therefore be run without installing any DLLs.
|
BootloadHID is a USB bootloader for AVR microcontrollers. It presents itself as an HID input device, much like HalfKay, and can therefore be run without installing any driver on Windows.
|
||||||
|
|
||||||
To ensure compatibility with the bootloadHID bootloader, make sure this block is present your `rules.mk`:
|
To ensure compatibility with the bootloadHID bootloader, make sure this block is present in your `rules.mk`:
|
||||||
|
|
||||||
```make
|
```make
|
||||||
# Bootloader selection
|
# Bootloader selection
|
||||||
# Teensy halfkay
|
|
||||||
# Pro Micro caterina
|
|
||||||
# Atmel DFU atmel-dfu
|
|
||||||
# LUFA DFU lufa-dfu
|
|
||||||
# QMK DFU qmk-dfu
|
|
||||||
# ATmega32A bootloadHID
|
|
||||||
# ATmega328P USBasp
|
|
||||||
BOOTLOADER = bootloadHID
|
BOOTLOADER = bootloadHID
|
||||||
```
|
```
|
||||||
|
|
||||||
Compatible flashers:
|
Compatible flashers:
|
||||||
|
|
||||||
* [HIDBootFlash](http://vusb.wikidot.com/project:hidbootflash) (recommended Windows GUI)
|
* [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (recommended GUI)
|
||||||
* [bootloadhid Command Line](https://www.obdev.at/products/vusb/bootloadhid.html) / `:BootloadHID` in QMK (recommended command line)
|
* [bootloadHID CLI](https://www.obdev.at/products/vusb/bootloadhid.html) / `:bootloadHID` target in QMK (recommended command line)
|
||||||
|
* [HIDBootFlash](http://vusb.wikidot.com/project:hidbootflash)
|
||||||
|
|
||||||
Flashing sequence:
|
Flashing sequence:
|
||||||
|
|
||||||
1. Enter the bootloader using any of the following methods:
|
1. Enter the bootloader using any of the following methods:
|
||||||
* Tap the `RESET` keycode (may not work on all devices)
|
* Tap the `RESET` keycode
|
||||||
* Hold the salt key while plugging the keyboard in (usually documented within keyboard readme)
|
* Hold the salt key while plugging the keyboard in - for PS2AVRGB boards, this is usually the key connected to MCU pins A0 and B0, otherwise it will be documented in your keyboard's readme
|
||||||
2. Wait for the OS to detect the device
|
2. Wait for the OS to detect the device
|
||||||
3. Flash a .hex file
|
3. Flash a .hex file
|
||||||
4. Reset the device into application mode (may be done automatically)
|
4. Reset the device into application mode (may be done automatically)
|
||||||
|
|
||||||
or:
|
## STM32/APM32 DFU
|
||||||
|
|
||||||
make <keyboard>:<keymap>:bootloadHID
|
All STM32 and APM32 MCUs, except for F103 (see the [STM32duino section](#stm32duino)) come preloaded with a factory bootloader that cannot be modified nor deleted.
|
||||||
|
|
||||||
## STM32
|
To ensure compatibility with the STM32-DFU bootloader, make sure this block is present in your `rules.mk` (optionally with `apm32-dfu` instead):
|
||||||
|
|
||||||
All STM32 chips come preloaded with a factory bootloader that cannot be modified nor deleted. Some STM32 chips have bootloaders that do not come with USB programming (e.g. STM32F103) but the process is still the same.
|
```make
|
||||||
|
# Bootloader selection
|
||||||
At the moment, no `BOOTLOADER` variable is needed on `rules.mk` for STM32.
|
BOOTLOADER = stm32-dfu
|
||||||
|
```
|
||||||
|
|
||||||
Compatible flashers:
|
Compatible flashers:
|
||||||
|
|
||||||
* [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (recommended GUI)
|
* [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (recommended GUI)
|
||||||
* [dfu-util](https://github.com/Stefan-Schmidt/dfu-util) / `:dfu-util` (recommended command line)
|
* [dfu-util](https://dfu-util.sourceforge.net/) / `:dfu-util` target in QMK (recommended command line)
|
||||||
|
|
||||||
Flashing sequence:
|
Flashing sequence:
|
||||||
|
|
||||||
1. Enter the bootloader using any of the following methods:
|
1. Enter the bootloader using any of the following methods:
|
||||||
* Tap the `RESET` keycode (may not work on STM32F042 devices)
|
* Tap the `RESET` keycode (may not work on STM32F042 devices)
|
||||||
* If a reset circuit is present, tap the RESET button
|
* If a reset circuit is present, tap the `RESET` button on the PCB; some boards may also have a toggle switch that must be flipped
|
||||||
* Otherwise, you need to bridge BOOT0 to VCC (via BOOT0 button or bridge), short RESET to GND (via RESET button or bridge), and then let go of the BOOT0 bridge
|
* Otherwise, you need to bridge `BOOT0` to VCC (via `BOOT0` button or jumper), short `RESET` to GND (via `RESET` button or jumper), and then let go of the `BOOT0` bridge
|
||||||
2. Wait for the OS to detect the device
|
2. Wait for the OS to detect the device
|
||||||
3. Flash a .bin file
|
3. Flash a .bin file
|
||||||
* You will receive a warning about the DFU signature; Just ignore it
|
|
||||||
4. Reset the device into application mode (may be done automatically)
|
4. Reset the device into application mode (may be done automatically)
|
||||||
* If you are building from command line (e.g. `make planck/rev6:default:dfu-util`), make sure that `:leave` is passed to the `DFU_ARGS` variable inside your `rules.mk` (e.g. `DFU_ARGS = -d 0483:df11 -a 0 -s 0x08000000:leave`) so that your device resets after flashing
|
|
||||||
|
|
||||||
### STM32 Commands
|
### `make` Targets
|
||||||
|
|
||||||
There are a number of DFU commands that you can use to flash firmware to a STM32 device:
|
* `:dfu-util`: Waits until an STM32 bootloader device is available, and then flashes the firmware.
|
||||||
|
* `:dfu-util-split-left` and `:dfu-util-split-right`: Flashes the firmware as with `:avrdude`, but also sets the handedness setting in EEPROM. This is ideal for Proton-C-based split keyboards.
|
||||||
|
* `:st-link-cli`: Allows you to flash the firmware via the ST-Link CLI utility, rather than dfu-util. Requires an ST-Link dongle.
|
||||||
|
* `:st-flash`: Allows you to flash the firmware via the `st-flash` utility from [STLink Tools](https://github.com/stlink-org/stlink), rather than dfu-util. Requires an ST-Link dongle.
|
||||||
|
|
||||||
* `:dfu-util` - The default command for flashing to STM32 devices, and will wait until an STM32 bootloader device is present.
|
## STM32duino
|
||||||
* `:dfu-util-split-left` - This flashes the normal firmware, just like the default option (`:dfu-util`). However, this also configures the "Left Side" EEPROM setting for split keyboards.
|
|
||||||
* `:dfu-util-split-right` - This flashes the normal firmware, just like the default option (`:dfu-util`). However, this also configures the "Right Side" EEPROM setting for split keyboards.
|
This bootloader is used almost exclusively for STM32F103 boards, as they do not come with a USB DFU bootloader. The source code and prebuilt binaries can be found [here](https://github.com/rogerclarkmelbourne/STM32duino-bootloader).
|
||||||
* `:st-link-cli` - This allows you to flash the firmware via ST-LINK's CLI utility, rather than dfu-util.
|
|
||||||
* `:st-flash` - This allows you to flash the firmware via the `st-flash` utility from [STLink Tools](https://github.com/stlink-org/stlink), rather than dfu-util.
|
To ensure compatibility with the STM32duino bootloader, make sure this block is present in your `rules.mk`:
|
||||||
|
|
||||||
|
```make
|
||||||
|
# Bootloader selection
|
||||||
|
BOOTLOADER = stm32duino
|
||||||
|
```
|
||||||
|
|
||||||
|
Compatible flashers:
|
||||||
|
|
||||||
|
* [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (recommended GUI)
|
||||||
|
* [dfu-util](https://dfu-util.sourceforge.net/) / `:dfu-util` target in QMK (recommended command line)
|
||||||
|
|
||||||
|
Flashing sequence:
|
||||||
|
|
||||||
|
1. Enter the bootloader using any of the following methods:
|
||||||
|
* Tap the `RESET` keycode
|
||||||
|
* If a reset circuit is present, tap the `RESET` button on the PCB
|
||||||
|
* Otherwise, you need to bridge `BOOT0` to VCC (via `BOOT0` button or jumper), short `RESET` to GND (via `RESET` button or jumper), and then let go of the `BOOT0` bridge
|
||||||
|
2. Wait for the OS to detect the device
|
||||||
|
3. Flash a .bin file
|
||||||
|
4. Reset the device into application mode (may be done automatically)
|
||||||
|
|
||||||
|
## Kiibohd DFU
|
||||||
|
|
||||||
|
Keyboards produced by Input Club use NXP Kinetis microcontrollers rather than STM32, and come with their own [custom bootloader](https://github.com/kiibohd/controller/tree/master/Bootloader), however the process and protocol is largely the same.
|
||||||
|
|
||||||
|
The `rules.mk` setting for this bootloader is `kiibohd`, but since this bootloader is limited to Input Club boards, it should not be necessary to set at keymap or user level.
|
||||||
|
|
||||||
|
Compatible flashers:
|
||||||
|
|
||||||
|
* [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (recommended GUI)
|
||||||
|
* [dfu-util](https://dfu-util.sourceforge.net/) / `:dfu-util` target in QMK (recommended command line)
|
||||||
|
|
||||||
|
Flashing sequence:
|
||||||
|
|
||||||
|
1. Enter the bootloader using any of the following methods:
|
||||||
|
* Tap the `RESET` keycode (this may only enter the MCU into a "secure" bootloader mode; see https://github.com/qmk/qmk_firmware/issues/6112)
|
||||||
|
* Press the `RESET` button on the PCB
|
||||||
|
2. Wait for the OS to detect the device
|
||||||
|
3. Flash a .bin file
|
||||||
|
4. Reset the device into application mode (may be done automatically)
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
## Qu'est-ce que QMK Firmware ?
|
## Qu'est-ce que QMK Firmware ?
|
||||||
|
|
||||||
QMK (*Quantum Mechanical Keyboard*) est une communauté open source qui maintient le firmware QMK, la QMK Toolbox (*Boite à outil*), qmk.fm et leurs documentations. QMK Firmware est un firmware dédié aux claviers qui est basé sur [tmk\_keyboard](http://github.com/tmk/tmk_keyboard). Il offre des fonctionnalités très utiles pour les contrôleurs Atmel AVR, et, plus spécifiquement pour [les produits d'OLKB](http://olkb.com), le clavier [ErgoDox EZ](http://www.ergodox-ez.com), et pour les [produits Clueboard](http://clueboard.co/). Il prend désormais aussi en charge les processeurs ARM qui utilisent ChibiOS. Vous pouvez l'utiliser pour contrôler un clavier personnalisé soudé à la main ou alors sur un clavier avec un PCB personnalisé.
|
QMK (*Quantum Mechanical Keyboard*) est une communauté open source qui maintient le firmware QMK, la QMK Toolbox (*Boite à outil*), qmk.fm et leurs documentations. QMK Firmware est un firmware dédié aux claviers qui est basé sur [tmk\_keyboard](https://github.com/tmk/tmk_keyboard). Il offre des fonctionnalités très utiles pour les contrôleurs Atmel AVR, et, plus spécifiquement pour [les produits d'OLKB](https://olkb.com), le clavier [ErgoDox EZ](https://www.ergodox-ez.com), et pour les [produits Clueboard](https://clueboard.co/). Il prend désormais aussi en charge les processeurs ARM qui utilisent ChibiOS. Vous pouvez l'utiliser pour contrôler un clavier personnalisé soudé à la main ou alors sur un clavier avec un PCB personnalisé.
|
||||||
|
|
||||||
## Comment l'obtenir
|
## Comment l'obtenir
|
||||||
|
|
||||||
@@ -29,4 +29,4 @@ Cette commande compilera la révision `rev4` du clavier `planck` avec la disposi
|
|||||||
|
|
||||||
## Comment le personnaliser
|
## Comment le personnaliser
|
||||||
|
|
||||||
QMK a beaucoup de [fonctionnalités](fr-fr/features.md) à explorer, et [une documentation](http://docs.qmk.fm) très abondante que vous pourrez parcourir. La plupart des fonctionnalités vous permettrons de modifier vos [dispositions](fr-fr/keymap.md) (keymaps) et de changer [les codes de caractères](fr-fr/keycodes.md) (keycodes).
|
QMK a beaucoup de [fonctionnalités](fr-fr/features.md) à explorer, et [une documentation](https://docs.qmk.fm) très abondante que vous pourrez parcourir. La plupart des fonctionnalités vous permettrons de modifier vos [dispositions](fr-fr/keymap.md) (keymaps) et de changer [les codes de caractères](fr-fr/keycodes.md) (keycodes).
|
||||||
|
@@ -23,7 +23,7 @@ Merci de garder ceci en tête:
|
|||||||
|
|
||||||
# Aperçu du projet
|
# Aperçu du projet
|
||||||
|
|
||||||
QMK est majoritairement écrit en C, avec quelques fonctions et parties spécifiques écrites en C++. Il est destiné aux processeurs intégrés que l'on trouve dans des clavier, particulièrement AVR ([LUFA](http://www.fourwalledcubicle.com/LUFA.php)) et ARM ([ChibiOS](http://www.chibios.com)). Si vous maîtrisez déjà la programmation sur Arduino, vous trouverez beaucoup de concepts et de limitations familiers. Une expérience préalable avec les Arduino n'est pas nécessaire à contribuer avec succès à QMK.
|
QMK est majoritairement écrit en C, avec quelques fonctions et parties spécifiques écrites en C++. Il est destiné aux processeurs intégrés que l'on trouve dans des clavier, particulièrement AVR ([LUFA](https://www.fourwalledcubicle.com/LUFA.php)) et ARM ([ChibiOS](https://www.chibios.org)). Si vous maîtrisez déjà la programmation sur Arduino, vous trouverez beaucoup de concepts et de limitations familiers. Une expérience préalable avec les Arduino n'est pas nécessaire à contribuer avec succès à QMK.
|
||||||
|
|
||||||
<!-- FIXME: We should include a list of resources for learning C here. -->
|
<!-- FIXME: We should include a list of resources for learning C here. -->
|
||||||
|
|
||||||
@@ -83,7 +83,7 @@ Limited experimentation on the devices I have available shows that 7 is high eno
|
|||||||
|
|
||||||
La documentation est l'une des manières les plus simples de démarrer la contribution sur QMK. Il est simple de trouver des endroits où la documentation est fausse ou incomplète, et il est tout aussi simple de la corriger! Nous avons aussi grandement besoin de quelqu'un pour éditer notre documentation, donc si vous avez des compétences en édition mais que vous n'êtes pas sûr de savoir où aller, n'hésitez pas [demandez de l'aide](#where-can-i-go-for-help)!
|
La documentation est l'une des manières les plus simples de démarrer la contribution sur QMK. Il est simple de trouver des endroits où la documentation est fausse ou incomplète, et il est tout aussi simple de la corriger! Nous avons aussi grandement besoin de quelqu'un pour éditer notre documentation, donc si vous avez des compétences en édition mais que vous n'êtes pas sûr de savoir où aller, n'hésitez pas [demandez de l'aide](#where-can-i-go-for-help)!
|
||||||
|
|
||||||
Vous trouverez toute notre documentation dans le répertoire `qmk_firmware/docs`, ou si vous préférez utiliser des outils web, vous pouvez cliquer sur le bouton "Suggest An Edit" en haut de chaque page sur http://docs.qmk.fm/.
|
Vous trouverez toute notre documentation dans le répertoire `qmk_firmware/docs`, ou si vous préférez utiliser des outils web, vous pouvez cliquer sur le bouton "Suggest An Edit" en haut de chaque page sur https://docs.qmk.fm/.
|
||||||
|
|
||||||
Lorsque vous donnez des exemples de code dans la documentation, essayez de suivre les conventions de nommage utilisées ailleurs dans la documentation. Par exemple, standardisez les enums en utilisant `my_layers` ou `my_keycodes` afin de garder une consistance:
|
Lorsque vous donnez des exemples de code dans la documentation, essayez de suivre les conventions de nommage utilisées ailleurs dans la documentation. Par exemple, standardisez les enums en utilisant `my_layers` ou `my_keycodes` afin de garder une consistance:
|
||||||
|
|
||||||
|
@@ -96,8 +96,8 @@ La plupart des boards QMK utilisent `0xFEED` comme vendor ID. Vérifiez les autr
|
|||||||
https://github.com/tmk/tmk_keyboard/issues/150
|
https://github.com/tmk/tmk_keyboard/issues/150
|
||||||
|
|
||||||
Vous pouvez acheter un VID:PID unique ici. Je ne pense pas que ce soit nécessaire pour un usage personnel.
|
Vous pouvez acheter un VID:PID unique ici. Je ne pense pas que ce soit nécessaire pour un usage personnel.
|
||||||
- http://www.obdev.at/products/vusb/license.html
|
- https://www.obdev.at/products/vusb/license.html
|
||||||
- http://www.mcselec.com/index.php?page=shop.product_details&flypage=shop.flypage&product_id=92&option=com_phpshop&Itemid=1
|
- https://www.mcselec.com/index.php?page=shop.product_details&flypage=shop.flypage&product_id=92&option=com_phpshop&Itemid=1
|
||||||
|
|
||||||
## BOOTLOADER_SIZE pour AVR
|
## BOOTLOADER_SIZE pour AVR
|
||||||
|
|
||||||
|
@@ -93,8 +93,8 @@ https://github.com/tmk/tmk_keyboard#boot-magic-configuration---virtual-dip-switc
|
|||||||
|
|
||||||
Sans circuit de réinitialisation vous allez avoir des résultats inconsistants à cause de la mauvaise initialisation du matériel. Regardez le schéma du circuit du TPM754.
|
Sans circuit de réinitialisation vous allez avoir des résultats inconsistants à cause de la mauvaise initialisation du matériel. Regardez le schéma du circuit du TPM754.
|
||||||
|
|
||||||
- http://geekhack.org/index.php?topic=50176.msg1127447#msg1127447
|
- https://geekhack.org/index.php?topic=50176.msg1127447#msg1127447
|
||||||
- http://www.mikrocontroller.net/attachment/52583/tpm754.pdf
|
- https://www.mikrocontroller.net/attachment/52583/tpm754.pdf
|
||||||
|
|
||||||
## Impossible de lire la colonne de la matrice après 16
|
## Impossible de lire la colonne de la matrice après 16
|
||||||
|
|
||||||
@@ -102,7 +102,7 @@ Utilisez `1UL<<16` à la place de `1<<16` dans `read_cols()` du fichier [matrix.
|
|||||||
|
|
||||||
En C, `1` implique un type [int] qui est [16 bits] pour les AVR, ce qui implique que vous ne pouvez pas décaler à gauche de plus de 15. Si vous utilisez `1<<16`, vous aurez un résultat non attendu de zéro. Vous devez donc utiliser un type [unsigned long] en utilisant `1UL`.
|
En C, `1` implique un type [int] qui est [16 bits] pour les AVR, ce qui implique que vous ne pouvez pas décaler à gauche de plus de 15. Si vous utilisez `1<<16`, vous aurez un résultat non attendu de zéro. Vous devez donc utiliser un type [unsigned long] en utilisant `1UL`.
|
||||||
|
|
||||||
http://deskthority.net/workshop-f7/rebuilding-and-redesigning-a-classic-thinkpad-keyboard-t6181-60.html#p146279
|
https://deskthority.net/workshop-f7/rebuilding-and-redesigning-a-classic-thinkpad-keyboard-t6181-60.html#p146279
|
||||||
|
|
||||||
## Les touches spéciales ne fonctionnent pas (Touche Système, Touches de contrôle du son)
|
## Les touches spéciales ne fonctionnent pas (Touche Système, Touches de contrôle du son)
|
||||||
|
|
||||||
@@ -122,8 +122,8 @@ Appuyer sur n'importe quelle touche en mode veille devrait sortir l'ordinateur d
|
|||||||
|
|
||||||
**Faites attention au fait que le nommage des pin d'un Arduino diffère de la puce**. Par exemple, la pin `D0` n'est pas `PD0`. Vérifiez le circuit avec la fiche technique.
|
**Faites attention au fait que le nommage des pin d'un Arduino diffère de la puce**. Par exemple, la pin `D0` n'est pas `PD0`. Vérifiez le circuit avec la fiche technique.
|
||||||
|
|
||||||
- http://arduino.cc/en/uploads/Main/arduino-leonardo-schematic_3b.pdf
|
- https://arduino.cc/en/uploads/Main/arduino-leonardo-schematic_3b.pdf
|
||||||
- http://arduino.cc/en/uploads/Main/arduino-micro-schematic.pdf
|
- https://arduino.cc/en/uploads/Main/arduino-micro-schematic.pdf
|
||||||
|
|
||||||
Les Arduino Leonardo et micro ont des **ATMega32U4** et peuvent être utilisés avec TMK, mais le bootloader Arduino peut causer des problèmes.
|
Les Arduino Leonardo et micro ont des **ATMega32U4** et peuvent être utilisés avec TMK, mais le bootloader Arduino peut causer des problèmes.
|
||||||
|
|
||||||
|
@@ -12,7 +12,7 @@ Les keycodes sont définies dans [common/keycode.h](https://github.com/qmk/qmk_f
|
|||||||
|
|
||||||
Il existe 3 configurations de clavier standard utilisées dans le monde: ANSI, ISO et JIS. L'Amérique du Nord utilise principalement l'ANSI, l'Europe et l'Afrique l'ISO et le Japon utilise JIS. Les autres régions utilisent généralement ANSI ou ISO. Les keycodes correspondant à ces dispositions spécifiques sont affichés ici :
|
Il existe 3 configurations de clavier standard utilisées dans le monde: ANSI, ISO et JIS. L'Amérique du Nord utilise principalement l'ANSI, l'Europe et l'Afrique l'ISO et le Japon utilise JIS. Les autres régions utilisent généralement ANSI ou ISO. Les keycodes correspondant à ces dispositions spécifiques sont affichés ici :
|
||||||
|
|
||||||
<!-- Source for this image: http://www.keyboard-layout-editor.com/#/gists/bf431647d1001cff5eff20ae55621e9a -->
|
<!-- Source for this image: https://www.keyboard-layout-editor.com/#/gists/bf431647d1001cff5eff20ae55621e9a -->
|
||||||

|

|
||||||
|
|
||||||
## Certaines de mes touches sont permutées ou ne fonctionnent pas
|
## Certaines de mes touches sont permutées ou ne fonctionnent pas
|
||||||
@@ -33,8 +33,8 @@ La touche trouvée sur la plupart des claviers modernes située entre `KC_RGUI`
|
|||||||
Utilisez le keycode pour Print Screen (`KC_PSCREEN` or `KC_PSCR`) à la place de `KC_SYSREQ`. La combinaison de touche 'Alt + Print Screen' est reconnue comme 'System request'.
|
Utilisez le keycode pour Print Screen (`KC_PSCREEN` or `KC_PSCR`) à la place de `KC_SYSREQ`. La combinaison de touche 'Alt + Print Screen' est reconnue comme 'System request'.
|
||||||
|
|
||||||
Voir [issue #168](https://github.com/tmk/tmk_keyboard/issues/168) et
|
Voir [issue #168](https://github.com/tmk/tmk_keyboard/issues/168) et
|
||||||
* http://en.wikipedia.org/wiki/Magic_SysRq_key
|
* https://en.wikipedia.org/wiki/Magic_SysRq_key
|
||||||
* http://en.wikipedia.org/wiki/System_request
|
* https://en.wikipedia.org/wiki/System_request
|
||||||
|
|
||||||
## Les touches alimentation ne fonctionnent pas
|
## Les touches alimentation ne fonctionnent pas
|
||||||
|
|
||||||
@@ -54,12 +54,12 @@ Les touches de modification ou les calques peuvent être bloquées si la commuta
|
|||||||
Pour les touches de modification et les actions de calque, vous devez placer `KC_TRANS` sur la même position du calque de destination afin de désenregistrer la clé de modificateur ou de revenir au calque précédent lors de la libération.
|
Pour les touches de modification et les actions de calque, vous devez placer `KC_TRANS` sur la même position du calque de destination afin de désenregistrer la clé de modificateur ou de revenir au calque précédent lors de la libération.
|
||||||
|
|
||||||
* https://github.com/tmk/tmk_core/blob/master/doc/keymap.md#31-momentary-switching
|
* https://github.com/tmk/tmk_core/blob/master/doc/keymap.md#31-momentary-switching
|
||||||
* http://geekhack.org/index.php?topic=57008.msg1492604#msg1492604
|
* https://geekhack.org/index.php?topic=57008.msg1492604#msg1492604
|
||||||
* https://github.com/tmk/tmk_keyboard/issues/248
|
* https://github.com/tmk/tmk_keyboard/issues/248
|
||||||
|
|
||||||
## Support de touche à verrouillage mécanique
|
## Support de touche à verrouillage mécanique
|
||||||
|
|
||||||
Cette fonctionnalité permet l'usage de *touches à verrouillage mécanique* comme [ces interrupteurs Alps](http://deskthority.net/wiki/Alps_SKCL_Lock). Vous pouvez l'activer en ajoutant ceci à votre `config.h` :
|
Cette fonctionnalité permet l'usage de *touches à verrouillage mécanique* comme [ces interrupteurs Alps](https://deskthority.net/wiki/Alps_SKCL_Lock). Vous pouvez l'activer en ajoutant ceci à votre `config.h` :
|
||||||
|
|
||||||
```
|
```
|
||||||
#define LOCKING_SUPPORT_ENABLE
|
#define LOCKING_SUPPORT_ENABLE
|
||||||
|
@@ -84,7 +84,7 @@ BOOTLOADER = caterina
|
|||||||
Flashers compatibles :
|
Flashers compatibles :
|
||||||
|
|
||||||
* [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (Interface graphique recommandée)
|
* [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (Interface graphique recommandée)
|
||||||
* [avrdude](http://www.nongnu.org/avrdude/) avec avr109 / `:avrdude` (Outil en ligne de commande recommandé)
|
* [avrdude](https://www.nongnu.org/avrdude/) avec avr109 / `:avrdude` (Outil en ligne de commande recommandé)
|
||||||
* [AVRDUDESS](https://github.com/zkemble/AVRDUDESS)
|
* [AVRDUDESS](https://github.com/zkemble/AVRDUDESS)
|
||||||
|
|
||||||
Séquence de flash :
|
Séquence de flash :
|
||||||
@@ -159,7 +159,7 @@ BOOTLOADER = USBasp
|
|||||||
Flashers compatibles :
|
Flashers compatibles :
|
||||||
|
|
||||||
* [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (Interface graphique recommandé)
|
* [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (Interface graphique recommandé)
|
||||||
* [avrdude](http://www.nongnu.org/avrdude/) avec le programmeur `usbasp`.
|
* [avrdude](https://www.nongnu.org/avrdude/) avec le programmeur `usbasp`.
|
||||||
* [AVRDUDESS](https://github.com/zkemble/AVRDUDESS)
|
* [AVRDUDESS](https://github.com/zkemble/AVRDUDESS)
|
||||||
|
|
||||||
Séquence de flash :
|
Séquence de flash :
|
||||||
|
@@ -6,15 +6,15 @@ GitHub peut être un peu compliqué pour ceux qui n'y sont pas familier. Ce guid
|
|||||||
|
|
||||||
Commencez par la [page GitHub de QMK](https://github.com/qmk/qmk_firmware), et vous verrez un bouton dans le coin en haut à droite qui indique "Fork":
|
Commencez par la [page GitHub de QMK](https://github.com/qmk/qmk_firmware), et vous verrez un bouton dans le coin en haut à droite qui indique "Fork":
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Si vous faites partie d'une organisation, vous aurez besoin de savoir quel compte utiliser pour le fork. Dans la plupart des cas, vous voudrez créer le fork dans votre compte personnel. Une fois le fork complet (cela peut quelques fois prendre un peu de temps), appuyez sur le bouton "Clone or download":
|
Si vous faites partie d'une organisation, vous aurez besoin de savoir quel compte utiliser pour le fork. Dans la plupart des cas, vous voudrez créer le fork dans votre compte personnel. Une fois le fork complet (cela peut quelques fois prendre un peu de temps), appuyez sur le bouton "Clone or download":
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Faites attention à sélectionner "HTTPS", et sélectionnez le lien et copiez-le:
|
Faites attention à sélectionner "HTTPS", et sélectionnez le lien et copiez-le:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Ensuite, entrez `git clone --recurse-submodules ` dans la ligne de commande, et collez votre lien:
|
Ensuite, entrez `git clone --recurse-submodules ` dans la ligne de commande, et collez votre lien:
|
||||||
|
|
||||||
@@ -56,11 +56,11 @@ To https://github.com/whoeveryouare/qmk_firmware.git
|
|||||||
|
|
||||||
Vos changements existent maintenant dans votre fork sur GitHub. Si vous allez à cette adresse (`https://github.com/<whoeveryouare>/qmk_firmware`), vous pouvez créer un nouveau "Pull Request" en cliquant sur ce bouton:
|
Vos changements existent maintenant dans votre fork sur GitHub. Si vous allez à cette adresse (`https://github.com/<whoeveryouare>/qmk_firmware`), vous pouvez créer un nouveau "Pull Request" en cliquant sur ce bouton:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Maintenant, vous pourrez voir exactement ce que vous avez commité. Si ça vous semble bien, vous pouvez le finaliser en cliquant sur "Create Pull Request":
|
Maintenant, vous pourrez voir exactement ce que vous avez commité. Si ça vous semble bien, vous pouvez le finaliser en cliquant sur "Create Pull Request":
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Une fois transmis, nous pourrons vous parler de vos changements, vous demander de faire des changements, et éventuellement de les accepter!
|
Une fois transmis, nous pourrons vous parler de vos changements, vous demander de faire des changements, et éventuellement de les accepter!
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
QMK est un firmware Open Source pour votre clavier mécanique. Vous pouvez utiliser QMK pour customiser votre clavier de manière simple et puissante. Tout le monde, du débutant complet au développeur avancé, ont utilisé avec succès QMK pour customiser leur clavier. Ce guide vous aidera à faire de même, quelles que soient vos compétences.
|
QMK est un firmware Open Source pour votre clavier mécanique. Vous pouvez utiliser QMK pour customiser votre clavier de manière simple et puissante. Tout le monde, du débutant complet au développeur avancé, ont utilisé avec succès QMK pour customiser leur clavier. Ce guide vous aidera à faire de même, quelles que soient vos compétences.
|
||||||
|
|
||||||
Vous voulez savoir si votre clavier peut utiliser QMK? Si c'est un clavier mécanique que vous avez vous-même construit, il y a de bonnes chances que vous pouvez. Nous supportons un [grand nombre de "hobbyist boards"](http://qmk.fr/keyboards), donc même si votre clavier ne peut pas utiliser QMK, vous ne devriez pas avoir trop de problème pour en trouver un qui vous convienne.
|
Vous voulez savoir si votre clavier peut utiliser QMK? Si c'est un clavier mécanique que vous avez vous-même construit, il y a de bonnes chances que vous pouvez. Nous supportons un [grand nombre de "hobbyist boards"](https://qmk.fm/keyboards), donc même si votre clavier ne peut pas utiliser QMK, vous ne devriez pas avoir trop de problème pour en trouver un qui vous convienne.
|
||||||
|
|
||||||
## Vue d'ensemble
|
## Vue d'ensemble
|
||||||
|
|
||||||
|
@@ -41,7 +41,7 @@ Nous avons essayé de rendre QMK aussi simple que possible à configurer. Vous a
|
|||||||
|
|
||||||
Vous devez installer MSYS2 et Git.
|
Vous devez installer MSYS2 et Git.
|
||||||
|
|
||||||
* Suivez les instructions d'installation sur la [page de MSYS2](http://www.msys2.org).
|
* Suivez les instructions d'installation sur la [page de MSYS2](https://www.msys2.org).
|
||||||
* Fermez tous les terminaux MSYS2 éventuellement ouverts et ouvrez un nouveau terminal MSYS2 MinGW 64-bit.
|
* Fermez tous les terminaux MSYS2 éventuellement ouverts et ouvrez un nouveau terminal MSYS2 MinGW 64-bit.
|
||||||
* Installez Git en lançant la commande: `pacman -S git`.
|
* Installez Git en lançant la commande: `pacman -S git`.
|
||||||
|
|
||||||
|
@@ -11,8 +11,8 @@ Note: ces programmes ne sont ni fournis ni approuvés par QMK.
|
|||||||
* [QMK Configurator](https://config.qmk.fm/#/test/) (Web)
|
* [QMK Configurator](https://config.qmk.fm/#/test/) (Web)
|
||||||
* [Switch Hitter](https://web.archive.org/web/20190413233743/https://elitekeyboards.com/switchhitter.php) (Windows seulement)
|
* [Switch Hitter](https://web.archive.org/web/20190413233743/https://elitekeyboards.com/switchhitter.php) (Windows seulement)
|
||||||
* [Keyboard Viewer](https://www.imore.com/how-use-keyboard-viewer-your-mac) (Mac seulement)
|
* [Keyboard Viewer](https://www.imore.com/how-use-keyboard-viewer-your-mac) (Mac seulement)
|
||||||
* [Keyboard Tester](http://www.keyboardtester.com) (Web)
|
* [Keyboard Tester](https://www.keyboardtester.com) (Web)
|
||||||
* [Keyboard Checker](http://keyboardchecker.com) (Web)
|
* [Keyboard Checker](https://keyboardchecker.com) (Web)
|
||||||
|
|
||||||
## Débuguer
|
## Débuguer
|
||||||
|
|
||||||
|
@@ -6,15 +6,15 @@ GitHub can be a little tricky to those that aren't familiar with it - this guide
|
|||||||
|
|
||||||
Start on the [QMK GitHub page](https://github.com/qmk/qmk_firmware), and you'll see a button in the upper right that says "Fork":
|
Start on the [QMK GitHub page](https://github.com/qmk/qmk_firmware), and you'll see a button in the upper right that says "Fork":
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
If you're a part of an organization, you'll need to choose which account to fork it to. In most circumstances, you'll want to fork it to your personal account. Once your fork is completed (sometimes this takes a little while), click the "Clone or Download" button:
|
If you're a part of an organization, you'll need to choose which account to fork it to. In most circumstances, you'll want to fork it to your personal account. Once your fork is completed (sometimes this takes a little while), click the "Clone or Download" button:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
And be sure to select "HTTPS", and select the link and copy it:
|
And be sure to select "HTTPS", and select the link and copy it:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
From here, enter `git clone --recurse-submodules ` into the command line, and then paste your link:
|
From here, enter `git clone --recurse-submodules ` into the command line, and then paste your link:
|
||||||
|
|
||||||
@@ -56,10 +56,10 @@ To https://github.com/whoeveryouare/qmk_firmware.git
|
|||||||
|
|
||||||
Your changes now exist on your fork on GitHub - if you go back there (`https://github.com/<whoeveryouare>/qmk_firmware`), you can create a "New Pull Request" by clicking this button:
|
Your changes now exist on your fork on GitHub - if you go back there (`https://github.com/<whoeveryouare>/qmk_firmware`), you can create a "New Pull Request" by clicking this button:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Here you'll be able to see exactly what you've committed - if it all looks good, you can finalize it by clicking "Create Pull Request":
|
Here you'll be able to see exactly what you've committed - if it all looks good, you can finalize it by clicking "Create Pull Request":
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
After submitting, we may talk to you about your changes, ask that you make changes, and eventually accept it! Thanks for contributing to QMK :)
|
After submitting, we may talk to you about your changes, ask that you make changes, and eventually accept it! Thanks for contributing to QMK :)
|
||||||
|
@@ -14,16 +14,32 @@ The full syntax of the `make` command is `<keyboard_folder>:<keymap>:<target>`,
|
|||||||
The `<target>` means the following
|
The `<target>` means the following
|
||||||
* If no target is given, then it's the same as `all` below
|
* If no target is given, then it's the same as `all` below
|
||||||
* `all` compiles as many keyboard/revision/keymap combinations as specified. For example, `make planck/rev4:default` will generate a single .hex, while `make planck/rev4:all` will generate a hex for every keymap available to the planck.
|
* `all` compiles as many keyboard/revision/keymap combinations as specified. For example, `make planck/rev4:default` will generate a single .hex, while `make planck/rev4:all` will generate a hex for every keymap available to the planck.
|
||||||
* `flash`, `dfu`, `teensy`, `avrdude`, `dfu-util`, or `bootloadHID` compile and upload the firmware to the keyboard. If the compilation fails, then nothing will be uploaded. The programmer to use depends on the keyboard. For most keyboards it's `dfu`, but for ChibiOS keyboards you should use `dfu-util`, and `teensy` for standard Teensys. To find out which command you should use for your keyboard, check the keyboard specific readme.
|
* `flash`, `dfu`, `teensy`, `avrdude`, `dfu-util`, or `bootloadHID` compile and upload the firmware to the keyboard. If the compilation fails, then nothing will be uploaded. The programmer to use depends on the keyboard. For most keyboards it's `dfu`, but for ChibiOS keyboards you should use `dfu-util`, and `teensy` for standard Teensys. To find out which command you should use for your keyboard, check the keyboard specific readme.
|
||||||
* **Note**: some operating systems need root access for these commands to work, so in that case you need to run for example `sudo make planck/rev4:default:flash`.
|
Visit the [Flashing Firmware](flashing.md) guide for more details of the available bootloaders.
|
||||||
|
* **Note**: some operating systems need privileged access for these commands to work. This means that you may need to setup [`udev rules`](faq_build.md#linux-udev-rules) to access these without root access, or to run the command with root access (`sudo make planck/rev4:default:flash`).
|
||||||
* `clean`, cleans the build output folders to make sure that everything is built from scratch. Run this before normal compilation if you have some unexplainable problems.
|
* `clean`, cleans the build output folders to make sure that everything is built from scratch. Run this before normal compilation if you have some unexplainable problems.
|
||||||
|
* `distclean` removes .hex files and .bin files.
|
||||||
|
|
||||||
|
The following targets are for developers:
|
||||||
|
|
||||||
|
* `show-path` shows the path of the source and object files.
|
||||||
|
* `dump-vars` dumps the makefile variable.
|
||||||
|
* `objs-size` displays the size of individual object files.
|
||||||
|
* `show_build_options` shows the options set in 'rules.mk'.
|
||||||
|
* `check-md5` displays the md5 checksum of the generated binary file.
|
||||||
|
|
||||||
You can also add extra options at the end of the make command line, after the target
|
You can also add extra options at the end of the make command line, after the target
|
||||||
|
|
||||||
* `make COLOR=false` - turns off color output
|
* `make COLOR=false` - turns off color output
|
||||||
* `make SILENT=true` - turns off output besides errors/warnings
|
* `make SILENT=true` - turns off output besides errors/warnings
|
||||||
* `make VERBOSE=true` - outputs all of the gcc stuff (not interesting, unless you need to debug)
|
* `make VERBOSE=true` - outputs all of the gcc stuff (not interesting, unless you need to debug)
|
||||||
* `make EXTRAFLAGS=-E` - Preprocess the code without doing any compiling (useful if you are trying to debug #define commands)
|
* `make VERBOSE_LD_CMD=yes` - execute the ld command with the -v option.
|
||||||
|
* `make VERBOSE_AS_CMD=yes` - execute the as command with the -v option.
|
||||||
|
* `make VERBOSE_C_CMD=<c_source_file>` - add the -v option when compiling the specified C source file.
|
||||||
|
* `make DUMP_C_MACROS=<c_source_file>` - dump preprocessor macros when compiling the specified C source file.
|
||||||
|
* `make DUMP_C_MACROS=<c_source_file> > <logfile>` - dump preprocessor macros to `<logfile>` when compiling the specified C source file.
|
||||||
|
* `make VERBOSE_C_INCLUDE=<c_source_file>` - dumps the file names to be included when compiling the specified C source file.
|
||||||
|
* `make VERBOSE_C_INCLUDE=<c_source_file> 2> <logfile>` - dumps the file names to be included to `<logfile>` when compiling the specified C source file.
|
||||||
|
|
||||||
The make command itself also has some additional options, type `make --help` for more information. The most useful is probably `-jx`, which specifies that you want to compile using more than one CPU, the `x` represents the number of CPUs that you want to use. Setting that can greatly reduce the compile times, especially if you are compiling many keyboards/keymaps. I usually set it to one less than the number of CPUs that I have, so that I have some left for doing other things while it's compiling. Note that not all operating systems and make versions supports that option.
|
The make command itself also has some additional options, type `make --help` for more information. The most useful is probably `-jx`, which specifies that you want to compile using more than one CPU, the `x` represents the number of CPUs that you want to use. Setting that can greatly reduce the compile times, especially if you are compiling many keyboards/keymaps. I usually set it to one less than the number of CPUs that I have, so that I have some left for doing other things while it's compiling. Note that not all operating systems and make versions supports that option.
|
||||||
|
|
||||||
|
@@ -4,11 +4,11 @@ This project includes a `Vagrantfile` that will allow you to build a new firmwar
|
|||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
Using the `Vagrantfile` in this repository requires you have [Vagrant](http://www.vagrantup.com/) as well as a supported provider installed:
|
Using the `Vagrantfile` in this repository requires you have [Vagrant](https://www.vagrantup.com/) as well as a supported provider installed:
|
||||||
|
|
||||||
* [VirtualBox](https://www.virtualbox.org/) (Version at least 5.0.12)
|
* [VirtualBox](https://www.virtualbox.org/) (Version at least 5.0.12)
|
||||||
* Sold as 'the most accessible platform to use Vagrant'
|
* Sold as 'the most accessible platform to use Vagrant'
|
||||||
* [VMware Workstation](https://www.vmware.com/products/workstation) and [Vagrant VMware plugin](http://www.vagrantup.com/vmware)
|
* [VMware Workstation](https://www.vmware.com/products/workstation) and [Vagrant VMware plugin](https://www.vagrantup.com/vmware)
|
||||||
* The (paid) VMware plugin requires a licensed copy of VMware Workstation/Fusion
|
* The (paid) VMware plugin requires a licensed copy of VMware Workstation/Fusion
|
||||||
* [Docker](https://www.docker.com/)
|
* [Docker](https://www.docker.com/)
|
||||||
|
|
||||||
|
@@ -39,7 +39,7 @@ It is fairly simple to plan for an ortholinear keyboard (like a Planck).
|
|||||||

|

|
||||||
Image from [RoastPotatoes' "How to hand wire a Planck"](https://blog.roastpotatoes.co/guide/2015/11/04/how-to-handwire-a-planck/)
|
Image from [RoastPotatoes' "How to hand wire a Planck"](https://blog.roastpotatoes.co/guide/2015/11/04/how-to-handwire-a-planck/)
|
||||||
|
|
||||||
But the larger and more complicated your keyboard, the more complex the matrix. [Keyboard Firmware Builder](https://kbfirmware.com/) can help you plan your matrix layout (shown here with a basic fullsize ISO keyboard imported from [Keyboard Layout Editor](http://www.keyboard-layout-editor.com).
|
But the larger and more complicated your keyboard, the more complex the matrix. [Keyboard Firmware Builder](https://kbfirmware.com/) can help you plan your matrix layout (shown here with a basic fullsize ISO keyboard imported from [Keyboard Layout Editor](https://www.keyboard-layout-editor.com).
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@@ -76,9 +76,9 @@ Established materials and techniques include:
|
|||||||
| :-----------| :------- | :------ | :--- | :---
|
| :-----------| :------- | :------ | :--- | :---
|
||||||
| Lengths of wire with stripped segments | [Sasha Solomon's Dactyl](https://medium.com/@sachee/building-my-first-keyboard-and-you-can-too-512c0f8a4c5f) and [Cribbit's modern hand wire](https://geekhack.org/index.php?topic=87689.0) | Neat and tidy | Some effort in stripping the wire | 
|
| Lengths of wire with stripped segments | [Sasha Solomon's Dactyl](https://medium.com/@sachee/building-my-first-keyboard-and-you-can-too-512c0f8a4c5f) and [Cribbit's modern hand wire](https://geekhack.org/index.php?topic=87689.0) | Neat and tidy | Some effort in stripping the wire | 
|
||||||
| Short lengths of wire | [u/xicolinguada's ortho build](https://www.reddit.com/r/MechanicalKeyboards/comments/c39k4f/my_first_hand_wired_keyboard_its_not_perfect_but/) | Easier to strip the wire | More difficult to place | 
|
| Short lengths of wire | [u/xicolinguada's ortho build](https://www.reddit.com/r/MechanicalKeyboards/comments/c39k4f/my_first_hand_wired_keyboard_its_not_perfect_but/) | Easier to strip the wire | More difficult to place | 
|
||||||
| Magnet/Enamelled wire | [Brett Kosinski's handwired alpha](http://blog.b-ark.ca/Blog-2019-01-27) and [fknraiden's custom board](https://geekhack.org/index.php?topic=74223.0) | Can be directly soldered onto (insulation burns off with heat) | Appearance? | 
|
| Magnet/Enamelled wire | [fknraiden's custom board](https://geekhack.org/index.php?topic=74223.0) | Can be directly soldered onto (insulation burns off with heat) | Appearance? | 
|
||||||
| Bending the legs of the diodes for the rows | [Matt3o's Brownfox](https://deskthority.net/viewtopic.php?f=7&t=6050) | Fewer solder joints required | Uninsulated | 
|
| Bending the legs of the diodes for the rows | [Matt3o's Brownfox](https://deskthority.net/viewtopic.php?f=7&t=6050) | Fewer solder joints required | Uninsulated | 
|
||||||
| Using ridid wiring (e.g. brass tube) | [u/d_stilgar's invisible hardline](https://www.reddit.com/r/MechanicalKeyboards/comments/8aw5j2/invisible_hardline_keyboard_progress_update_april/) and [u/jonasfasler's first attempt](https://www.reddit.com/r/MechanicalKeyboards/comments/de1jyv/my_first_attempt_at_handwiring_a_keyboard/) | Very pretty | More difficult. No physical insulation | 
|
| Using rigid wiring (e.g. brass tube) | [u/d_stilgar's invisible hardline](https://www.reddit.com/r/MechanicalKeyboards/comments/8aw5j2/invisible_hardline_keyboard_progress_update_april/) and [u/jonasfasler's first attempt](https://www.reddit.com/r/MechanicalKeyboards/comments/de1jyv/my_first_attempt_at_handwiring_a_keyboard/) | Very pretty | More difficult. No physical insulation | 
|
||||||
| Bare wire with insulation added after (e.g. kapton tape) | [Matt3o's 65% on his website](https://matt3o.com/hand-wiring-a-custom-keyboard/) | Easier (no wire stripping required) | Not as attractive | 
|
| Bare wire with insulation added after (e.g. kapton tape) | [Matt3o's 65% on his website](https://matt3o.com/hand-wiring-a-custom-keyboard/) | Easier (no wire stripping required) | Not as attractive | 
|
||||||
| Copper tape | [ManuForm Dactyl](https://github.com/tshort/dactyl-keyboard) | Very easy | Only really works when your plate/case aligns with the bottom of your switches | 
|
| Copper tape | [ManuForm Dactyl](https://github.com/tshort/dactyl-keyboard) | Very easy | Only really works when your plate/case aligns with the bottom of your switches | 
|
||||||
|
|
||||||
@@ -121,7 +121,7 @@ Letting the diode rest, grab your solder, and touch both it and the soldering ir
|
|||||||
|
|
||||||
The smoke that the rosin releases is harmful, so be careful not to breath it or get it in your eyes/face.
|
The smoke that the rosin releases is harmful, so be careful not to breath it or get it in your eyes/face.
|
||||||
|
|
||||||
After soldering things in place, it may be helpful to blow on the joint to push the smoke away from your face, and cool the solder quicker. You should see the solder develop a matte (not shiny) surface as it solidifies. Keep in mind that it will still be very hot afterwards, and will take a couple minutes to be cool to touch. Blow on it will accelerate this process.
|
After soldering things in place, it may be helpful to blow on the joint to push the smoke away from your face, and cool the solder quicker. You should see the solder develop a matte (not shiny) surface as it solidifies. Keep in mind that it will still be very hot afterwards, and will take a couple minutes to be cool to touch. Blowing on it will accelerate this process.
|
||||||
|
|
||||||
When the first diode is complete, the next one will need to be soldered to both the keyswitch, and the previous diode at the new elbow. That will look something like this:
|
When the first diode is complete, the next one will need to be soldered to both the keyswitch, and the previous diode at the new elbow. That will look something like this:
|
||||||
|
|
||||||
@@ -175,7 +175,7 @@ As you move along, be sure that the controller is staying in place - recutting a
|
|||||||
|
|
||||||
From here, you should have a working keyboard once you program a firmware.
|
From here, you should have a working keyboard once you program a firmware.
|
||||||
|
|
||||||
Simple firmware can be created easily using the [Keyboard Firmware Builder](https://kbfirmware.com/) website. Recreate your layout using [Keyboard Layout Editor](http://www.keyboard-layout-editor.com), import it and recreate the matrix (if not already done as part of [planning the matrix](#planning-the-matrix).
|
Simple firmware can be created easily using the [Keyboard Firmware Builder](https://kbfirmware.com/) website. Recreate your layout using [Keyboard Layout Editor](https://www.keyboard-layout-editor.com), import it and recreate the matrix (if not already done as part of [planning the matrix](#planning-the-matrix).
|
||||||
|
|
||||||
Go through the rest of the tabs, assigning keys until you get to the last one where you can compile and download your firmware. The .hex file can be flashed straight onto your keyboard, and the .zip of source files can be modified for advanced functionality and compiled locally using the method described in [Building Your First Firmware](newbs_building_firmware?id=build-your-firmware).
|
Go through the rest of the tabs, assigning keys until you get to the last one where you can compile and download your firmware. The .hex file can be flashed straight onto your keyboard, and the .zip of source files can be modified for advanced functionality and compiled locally using the method described in [Building Your First Firmware](newbs_building_firmware?id=build-your-firmware).
|
||||||
|
|
||||||
@@ -205,7 +205,7 @@ Plug in your keyboard and press the reset button (or short the Reset and Ground
|
|||||||
|
|
||||||
## Testing Your Firmware
|
## Testing Your Firmware
|
||||||
|
|
||||||
Use a website such as [QMK Configurator's Keyboard Tester](https://config.qmk.fm/#/test), [Keyboard Tester](https://www.keyboardtester.com/tester.html), or [Keyboard Checker](http://keyboardchecker.com/) or just open a text editor and try typing - you should get the characters that you put into your keymap. Test each key, and make a note of the ones that aren't working. Here's a quick trouble-shooting guide for non-working keys:
|
Use a website such as [QMK Configurator's Keyboard Tester](https://config.qmk.fm/#/test), [Keyboard Tester](https://www.keyboardtester.com/tester.html), or [Keyboard Checker](https://keyboardchecker.com/) or just open a text editor and try typing - you should get the characters that you put into your keymap. Test each key, and make a note of the ones that aren't working. Here's a quick trouble-shooting guide for non-working keys:
|
||||||
|
|
||||||
1. Flip the keyboard back over and short the keyswitch's contacts with a piece wire - this will eliminate the possibility of the keyswitch being bad and needing to be replaced.
|
1. Flip the keyboard back over and short the keyswitch's contacts with a piece wire - this will eliminate the possibility of the keyswitch being bad and needing to be replaced.
|
||||||
2. Check the solder points on the keyswitch - these need to be plump and whole. If you touch it with a moderate amount of force and it comes apart, it's not strong enough.
|
2. Check the solder points on the keyswitch - these need to be plump and whole. If you touch it with a moderate amount of force and it comes apart, it's not strong enough.
|
||||||
@@ -224,7 +224,7 @@ Once you have confirmed that the keyboard is working, if you have used a seperat
|
|||||||
|
|
||||||
If you found this fullfilling you could experiment by adding additional features such as [in switch LEDs](https://geekhack.org/index.php?topic=94258.0), [in switch RGB](https://www.reddit.com/r/MechanicalKeyboards/comments/5s1l5u/photoskeyboard_science_i_made_a_handwired_rgb/), [RGB underglow](https://medium.com/@DavidNZ/hand-wired-custom-keyboard-cdd14429c7b3#.7a1ovebsk) or even an [OLED display!](https://www.reddit.com/r/olkb/comments/5zy7og/adding_ssd1306_oled_display_to_your_build/)
|
If you found this fullfilling you could experiment by adding additional features such as [in switch LEDs](https://geekhack.org/index.php?topic=94258.0), [in switch RGB](https://www.reddit.com/r/MechanicalKeyboards/comments/5s1l5u/photoskeyboard_science_i_made_a_handwired_rgb/), [RGB underglow](https://medium.com/@DavidNZ/hand-wired-custom-keyboard-cdd14429c7b3#.7a1ovebsk) or even an [OLED display!](https://www.reddit.com/r/olkb/comments/5zy7og/adding_ssd1306_oled_display_to_your_build/)
|
||||||
|
|
||||||
There are a lot of possibilities inside the firmware - explore [docs.qmk.fm](http://docs.qmk.fm) for a full feature list, and dive into the different keyboards to see how people use all of them. You can always stop by [the OLKB subreddit](http://reddit.com/r/olkb) or [QMK Discord](https://discord.gg/Uq7gcHh) for help!
|
There are a lot of possibilities inside the firmware - explore [docs.qmk.fm](https://docs.qmk.fm) for a full feature list, and dive into the different keyboards to see how people use all of them. You can always stop by [the OLKB subreddit](https://reddit.com/r/olkb) or [QMK Discord](https://discord.gg/Uq7gcHh) for help!
|
||||||
|
|
||||||
## Links to Other Guides
|
## Links to Other Guides
|
||||||
|
|
||||||
@@ -232,7 +232,7 @@ There are a lot of possibilities inside the firmware - explore [docs.qmk.fm](htt
|
|||||||
- [Cribbit's "Modern hand wiring guide - stronger, cleaner, easier"](https://geekhack.org/index.php?topic=87689.0)
|
- [Cribbit's "Modern hand wiring guide - stronger, cleaner, easier"](https://geekhack.org/index.php?topic=87689.0)
|
||||||
- [Sasha Solomon's "Building my first Keyboard"](https://medium.com/@sachee/building-my-first-keyboard-and-you-can-too-512c0f8a4c5f)
|
- [Sasha Solomon's "Building my first Keyboard"](https://medium.com/@sachee/building-my-first-keyboard-and-you-can-too-512c0f8a4c5f)
|
||||||
- [RoastPotatoes' "How to hand wire a Planck"](https://blog.roastpotatoes.co/guide/2015/11/04/how-to-handwire-a-planck/)
|
- [RoastPotatoes' "How to hand wire a Planck"](https://blog.roastpotatoes.co/guide/2015/11/04/how-to-handwire-a-planck/)
|
||||||
- [Masterzen's "Handwired keyboard build log"](http://www.masterzen.fr/2018/12/16/handwired-keyboard-build-log-part-1/)
|
- [Masterzen's "Handwired keyboard build log"](https://www.masterzen.fr/2018/12/16/handwired-keyboard-build-log-part-1/)
|
||||||
|
|
||||||
|
|
||||||
# Legacy Content
|
# Legacy Content
|
||||||
|
@@ -32,7 +32,7 @@ This will create all the files needed to support your new keyboard, and populate
|
|||||||
|
|
||||||
## `readme.md`
|
## `readme.md`
|
||||||
|
|
||||||
This is where you'll describe your keyboard. Please follow the [Keyboard Readme Template](documentation_templates.md#keyboard-readmemd-template) when writing your `readme.md`. You're encouraged to place an image at the top of your `readme.md`, please use an external service such as [Imgur](http://imgur.com) to host the images.
|
This is where you'll describe your keyboard. Please follow the [Keyboard Readme Template](documentation_templates.md#keyboard-readmemd-template) when writing your `readme.md`. You're encouraged to place an image at the top of your `readme.md`, please use an external service such as [Imgur](https://imgur.com) to host the images.
|
||||||
|
|
||||||
## `<keyboard>.c`
|
## `<keyboard>.c`
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ Do change the `MANUFACTURER` and `PRODUCT` lines to accurately reflect your keyb
|
|||||||
#define PRODUCT my_awesome_keyboard
|
#define PRODUCT my_awesome_keyboard
|
||||||
```
|
```
|
||||||
|
|
||||||
?> Windows and macOS will display the `MANUFACTURER` and `PRODUCT` in the list of USB devices. `lsusb` on Linux instead takes these from the list maintained by the [USB ID Repository](http://www.linux-usb.org/usb-ids.html) by default. `lsusb -v` will show the values reported by the device, and they are also present in kernel logs after plugging it in.
|
?> Windows and macOS will display the `MANUFACTURER` and `PRODUCT` in the list of USB devices. `lsusb` on Linux instead prefers the values in the list maintained by the [USB ID Repository](http://www.linux-usb.org/usb-ids.html). By default, it will only use `MANUFACTURER` and `PRODUCT` if the list does not contain that `VENDOR_ID` / `PRODUCT_ID`. `sudo lsusb -v` will show the values reported by the device, and they are also present in kernel logs after plugging it in.
|
||||||
|
|
||||||
### Keyboard Matrix Configuration
|
### Keyboard Matrix Configuration
|
||||||
|
|
||||||
|
@@ -183,7 +183,7 @@ As an example, if you have a 60% PCB that supports ANSI and ISO you might define
|
|||||||
|
|
||||||
In an effort to keep the repo size down we're no longer accepting binary files of any format, with few exceptions. Hosting them elsewhere (such as <https://imgur.com>) and linking them in the `readme.md` is preferred.
|
In an effort to keep the repo size down we're no longer accepting binary files of any format, with few exceptions. Hosting them elsewhere (such as <https://imgur.com>) and linking them in the `readme.md` is preferred.
|
||||||
|
|
||||||
Hardware files (such as plates, cases, pcb) can be contributed to the [qmk.fm repo](https://github.com/qmk/qmk.fm) and they will be made available on [qmk.fm](http://qmk.fm). Downloadable files are stored in `/<keyboard>/` (name follows the same format as above) which are served at `http://qmk.fm/<keyboard>/`, and pages are generated from `/_pages/<keyboard>/` which are served at the same location (.md files are generated into .html files through Jekyll). Check out the `lets_split` folder for an example.
|
Hardware files (such as plates, cases, pcb) can be contributed to the [qmk.fm repo](https://github.com/qmk/qmk.fm) and they will be made available on [qmk.fm](https://qmk.fm). Downloadable files are stored in `/<keyboard>/` (name follows the same format as above) which are served at `https://qmk.fm/<keyboard>/`, and pages are generated from `/_pages/<keyboard>/` which are served at the same location (.md files are generated into .html files through Jekyll). Check out the `lets_split` folder for an example.
|
||||||
|
|
||||||
## Keyboard Defaults
|
## Keyboard Defaults
|
||||||
|
|
||||||
@@ -225,7 +225,7 @@ The year should be the first year the file is created. If work was done to that
|
|||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
The core of QMK is licensed under the [GNU General Public License](https://www.gnu.org/licenses/licenses.en.html). If you are shipping binaries for AVR processors you may choose either [GPLv2](https://www.gnu.org/licenses/old-licenses/gpl-2.0.html) or [GPLv3](https://www.gnu.org/licenses/gpl.html). If you are shipping binaries for ARM processors you must choose [GPL Version 3](https://www.gnu.org/licenses/gpl.html) to comply with the [ChibiOS](http://www.chibios.org) GPLv3 license.
|
The core of QMK is licensed under the [GNU General Public License](https://www.gnu.org/licenses/licenses.en.html). If you are shipping binaries for AVR processors you may choose either [GPLv2](https://www.gnu.org/licenses/old-licenses/gpl-2.0.html) or [GPLv3](https://www.gnu.org/licenses/gpl.html). If you are shipping binaries for ARM processors you must choose [GPL Version 3](https://www.gnu.org/licenses/gpl.html) to comply with the [ChibiOS](https://www.chibios.org) GPLv3 license.
|
||||||
|
|
||||||
If your keyboard makes use of the [uGFX](https://ugfx.io) features within QMK you must comply with the [uGFX License](https://ugfx.io/license.html), which requires a separate commercial license before selling a device containing uGFX.
|
If your keyboard makes use of the [uGFX](https://ugfx.io) features within QMK you must comply with the [uGFX License](https://ugfx.io/license.html), which requires a separate commercial license before selling a device containing uGFX.
|
||||||
|
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
## מה היא קושחת QMK?
|
## מה היא קושחת QMK?
|
||||||
|
|
||||||
QMK (*Quantum Mechanical Keyboard*) היא קהילת קוד פתוח (open source) שמתחזקת את קושחת QMK, QMK Toolbox, qmk.fm, והמסמכים המתאימים. קושחת QMK היא קושחה עבור מקלדות המבוססת על [tmk\_keyboard](http://github.com/tmk/tmk_keyboard) עם כמה תוספות עבור בקרי Atmel AVR ובאופן ספציפי יותר - [מוצרי OLKB](http://olkb.com), מקלדת [ErgoDox EZ](http://www.ergodox-ez.com), וגם [מוצרי Clueboard](http://clueboard.co/). בנוסף, הקושחה עברה פורט עבור שבבי ARM באמצעות ChibiOS. ניתן להשתמש בה על מנת להפעיל את מקלדות ה PCB המקוסטמות שלך.
|
QMK (*Quantum Mechanical Keyboard*) היא קהילת קוד פתוח (open source) שמתחזקת את קושחת QMK, QMK Toolbox, qmk.fm, והמסמכים המתאימים. קושחת QMK היא קושחה עבור מקלדות המבוססת על [tmk\_keyboard](https://github.com/tmk/tmk_keyboard) עם כמה תוספות עבור בקרי Atmel AVR ובאופן ספציפי יותר - [מוצרי OLKB](https://olkb.com), מקלדת [ErgoDox EZ](https://www.ergodox-ez.com), וגם [מוצרי Clueboard](https://clueboard.co/). בנוסף, הקושחה עברה פורט עבור שבבי ARM באמצעות ChibiOS. ניתן להשתמש בה על מנת להפעיל את מקלדות ה PCB המקוסטמות שלך.
|
||||||
|
|
||||||
## איך להשיג אותה
|
## איך להשיג אותה
|
||||||
|
|
||||||
@@ -30,5 +30,5 @@ QMK (*Quantum Mechanical Keyboard*) היא קהילת קוד פתוח (open sour
|
|||||||
|
|
||||||
## איך להתאים
|
## איך להתאים
|
||||||
|
|
||||||
לQMK יש המון [יכולות](he-il/features.md) שאפשר לנווט בהן, וכמות נכבדת של [תיעוד ודוקומנטציה](http://docs.qmk.fm) בה אפשר לנבור. רוב הפיצ׳רים באים לידי ביטוי על ידי שינוי [מיפוי המקלדת](he-il/keymap.md) ושינוי [קודי המקשים](he-il/keycodes.md).
|
לQMK יש המון [יכולות](he-il/features.md) שאפשר לנווט בהן, וכמות נכבדת של [תיעוד ודוקומנטציה](https://docs.qmk.fm) בה אפשר לנבור. רוב הפיצ׳רים באים לידי ביטוי על ידי שינוי [מיפוי המקלדת](he-il/keymap.md) ושינוי [קודי המקשים](he-il/keycodes.md).
|
||||||
</div>
|
</div>
|
||||||
|
@@ -7,15 +7,15 @@ GitHub עלול להיות קצת טריקי למי שלא מכיר את העב
|
|||||||
|
|
||||||
התחילו ב- [עמוד של QMK ב-GitHub](https://github.com/qmk/qmk_firmware), ותצמאו כפתור בחלק העליון מימין עם התיכוב "Fork":
|
התחילו ב- [עמוד של QMK ב-GitHub](https://github.com/qmk/qmk_firmware), ותצמאו כפתור בחלק העליון מימין עם התיכוב "Fork":
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
אם אתם חלק מארגון, תצטרכו לבחור לאיזה חשבון לבצע פעולת fork. ברוב המבקרים, תרצו לבצע fork לתוך החשבון הפרטי שלכם. ברגע שה-fork הסתיים (לפעמים זה יכול לקחת קצת זמן) הקליקו על כפתור ה-"Clone or Download":
|
אם אתם חלק מארגון, תצטרכו לבחור לאיזה חשבון לבצע פעולת fork. ברוב המבקרים, תרצו לבצע fork לתוך החשבון הפרטי שלכם. ברגע שה-fork הסתיים (לפעמים זה יכול לקחת קצת זמן) הקליקו על כפתור ה-"Clone or Download":
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
תוודאו שאתם בוחרים באופצייה של "HTTPS", בחרו את הקישור והעתיקו אותו:
|
תוודאו שאתם בוחרים באופצייה של "HTTPS", בחרו את הקישור והעתיקו אותו:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
מכאן והלאה, הקיש `git clone --recurse-submodules ` בשורת הפקודה והדביקו את הלינק שלכם:
|
מכאן והלאה, הקיש `git clone --recurse-submodules ` בשורת הפקודה והדביקו את הלינק שלכם:
|
||||||
|
|
||||||
@@ -65,11 +65,11 @@ To https://github.com/whoeveryouare/qmk_firmware.git
|
|||||||
|
|
||||||
השינויים שלכם יופיעו ב-fork שלכם ב-GitHub - אם תחזרו לשם (`https://github.com/<whoeveryouare>/qmk_firmware`), תוכלו ליצור "Pull Request חדש" ע״י הקשה על הכפתור הבא:
|
השינויים שלכם יופיעו ב-fork שלכם ב-GitHub - אם תחזרו לשם (`https://github.com/<whoeveryouare>/qmk_firmware`), תוכלו ליצור "Pull Request חדש" ע״י הקשה על הכפתור הבא:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
כאן תוכלו לראות בדיוק למה עשיתם commit - אם הכל נראה תקין, תוכלו להשלים את הפעולה ע״י הקשה על "Create Pull Request":
|
כאן תוכלו לראות בדיוק למה עשיתם commit - אם הכל נראה תקין, תוכלו להשלים את הפעולה ע״י הקשה על "Create Pull Request":
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
אחרי שהגשתם, אנו עלולים לפנות אליכם לגבי השינויים שהצעתם, נבקש שתבצעו שינויים ובסופו של דבר נקבל את השינויים! תודה שתרמתם לפרוייקט QMK :)
|
אחרי שהגשתם, אנו עלולים לפנות אליכם לגבי השינויים שהצעתם, נבקש שתבצעו שינויים ובסופו של דבר נקבל את השינויים! תודה שתרמתם לפרוייקט QMK :)
|
||||||
</div>
|
</div>
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<div dir="rtl" markdown="1">
|
<div dir="rtl" markdown="1">
|
||||||
# חומרה
|
# חומרה
|
||||||
|
|
||||||
QMK רצה על מגוון של חומרות. אם המעבד שלך יכול להיות ממוקד (מטורגט) ע״י [LUFA](http://www.fourwalledcubicle.com/LUFA.php) או [ChibiOS](http://www.chibios.com) כנראה שתוכל לגרום ל QMK לרוץ על המעבד. קטע זה מדבר על הרצת QMK, ותקשורת עם, סוגים שונים של חומרות.
|
QMK רצה על מגוון של חומרות. אם המעבד שלך יכול להיות ממוקד (מטורגט) ע״י [LUFA](https://www.fourwalledcubicle.com/LUFA.php) או [ChibiOS](https://www.chibios.org) כנראה שתוכל לגרום ל QMK לרוץ על המעבד. קטע זה מדבר על הרצת QMK, ותקשורת עם, סוגים שונים של חומרות.
|
||||||
|
|
||||||
* [מדריך למקלדת](hardware_keyboard_guidelines.md)
|
* [מדריך למקלדת](hardware_keyboard_guidelines.md)
|
||||||
* [מעבדי AVR](hardware_avr.md)
|
* [מעבדי AVR](hardware_avr.md)
|
||||||
|
@@ -95,5 +95,5 @@ Further reading:
|
|||||||
- [Wikipedia article](https://en.wikipedia.org/wiki/Keyboard_matrix_circuit)
|
- [Wikipedia article](https://en.wikipedia.org/wiki/Keyboard_matrix_circuit)
|
||||||
- [Deskthority article](https://deskthority.net/wiki/Keyboard_matrix)
|
- [Deskthority article](https://deskthority.net/wiki/Keyboard_matrix)
|
||||||
- [Keyboard Matrix Help by Dave Dribin (2000)](https://www.dribin.org/dave/keyboard/one_html/)
|
- [Keyboard Matrix Help by Dave Dribin (2000)](https://www.dribin.org/dave/keyboard/one_html/)
|
||||||
- [How Key Matrices Works by PCBheaven](http://pcbheaven.com/wikipages/How_Key_Matrices_Works/) (animated examples)
|
- [How Key Matrices Works by PCBheaven](https://pcbheaven.com/wikipages/How_Key_Matrices_Works/) (animated examples)
|
||||||
- [How keyboards work - QMK documentation](how_keyboards_work.md)
|
- [How keyboards work - QMK documentation](how_keyboards_work.md)
|
||||||
|
@@ -20,7 +20,7 @@ The following functions can provide basic control of GPIOs and are found in `qua
|
|||||||
|
|
||||||
## Advanced Settings :id=advanced-settings
|
## Advanced Settings :id=advanced-settings
|
||||||
|
|
||||||
Each microcontroller can have multiple advanced settings regarding its GPIO. This abstraction layer does not limit the use of architecture-specific functions. Advanced users should consult the datasheet of their desired device and include any needed libraries. For AVR, the standard avr/io.h library is used; for STM32, the ChibiOS [PAL library](http://chibios.sourceforge.net/docs3/hal/group___p_a_l.html) is used.
|
Each microcontroller can have multiple advanced settings regarding its GPIO. This abstraction layer does not limit the use of architecture-specific functions. Advanced users should consult the datasheet of their desired device and include any needed libraries. For AVR, the standard avr/io.h library is used; for STM32, the ChibiOS [PAL library](https://chibios.sourceforge.net/docs3/hal/group___p_a_l.html) is used.
|
||||||
|
|
||||||
## Atomic Operation
|
## Atomic Operation
|
||||||
|
|
||||||
|
@@ -246,7 +246,7 @@ To set this add `-U lfuse:w:0xFF:m -U hfuse:w:0xD8:m -U efuse:w:0xCB:m` to your
|
|||||||
avrdude -c avrisp -P COM3 -p atmega32u4 -U flash:w:main.hex:i -U lfuse:w:0xFF:m -U hfuse:w:0xD8:m -U efuse:w:0xCB:m
|
avrdude -c avrisp -P COM3 -p atmega32u4 -U flash:w:main.hex:i -U lfuse:w:0xFF:m -U hfuse:w:0xD8:m -U efuse:w:0xCB:m
|
||||||
|
|
||||||
|
|
||||||
If you are using a different controller or want different configuration, you can use [this AVR Fuse Calculator](http://www.engbedded.com/fusecalc/) to find a better value for you.
|
If you are using a different controller or want different configuration, you can use [this AVR Fuse Calculator](https://www.engbedded.com/fusecalc/) to find a better value for you.
|
||||||
|
|
||||||
## Help
|
## Help
|
||||||
|
|
||||||
|
@@ -103,6 +103,7 @@
|
|||||||
* [DIP スイッチ](ja/feature_dip_switch.md)
|
* [DIP スイッチ](ja/feature_dip_switch.md)
|
||||||
* [エンコーダ](ja/feature_encoders.md)
|
* [エンコーダ](ja/feature_encoders.md)
|
||||||
* [触覚フィードバック](ja/feature_haptic_feedback.md)
|
* [触覚フィードバック](ja/feature_haptic_feedback.md)
|
||||||
|
* [LED インジケータ](ja/feature_led_indicators.md)
|
||||||
* [Proton C 変換](ja/proton_c_conversion.md)
|
* [Proton C 変換](ja/proton_c_conversion.md)
|
||||||
* [PS/2 マウス](ja/feature_ps2_mouse.md)
|
* [PS/2 マウス](ja/feature_ps2_mouse.md)
|
||||||
* [分割キーボード](ja/feature_split_keyboard.md)
|
* [分割キーボード](ja/feature_split_keyboard.md)
|
||||||
|
@@ -33,7 +33,7 @@
|
|||||||
キーマップをファームウェアにコンパイルするには、単純に JSON を `/v1/compile` エンドポイントに POST します。以下の例では、JSON ペイロードを `json_data` という名前のファイルに配置しています。
|
キーマップをファームウェアにコンパイルするには、単純に JSON を `/v1/compile` エンドポイントに POST します。以下の例では、JSON ペイロードを `json_data` という名前のファイルに配置しています。
|
||||||
|
|
||||||
```
|
```
|
||||||
$ curl -H "Content-Type: application/json" -X POST -d "$(< json_data)" http://api.qmk.fm/v1/compile
|
$ curl -H "Content-Type: application/json" -X POST -d "$(< json_data)" https://api.qmk.fm/v1/compile
|
||||||
{
|
{
|
||||||
"enqueued": true,
|
"enqueued": true,
|
||||||
"job_id": "ea1514b3-bdfc-4a7b-9b5c-08752684f7f6"
|
"job_id": "ea1514b3-bdfc-4a7b-9b5c-08752684f7f6"
|
||||||
@@ -45,7 +45,7 @@ $ curl -H "Content-Type: application/json" -X POST -d "$(< json_data)" http://ap
|
|||||||
キーマップをサブミットした後で、簡単な HTTP GET 呼び出しを使って状態をチェックすることができます:
|
キーマップをサブミットした後で、簡単な HTTP GET 呼び出しを使って状態をチェックすることができます:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ curl http://api.qmk.fm/v1/compile/ea1514b3-bdfc-4a7b-9b5c-08752684f7f6
|
$ curl https://api.qmk.fm/v1/compile/ea1514b3-bdfc-4a7b-9b5c-08752684f7f6
|
||||||
{
|
{
|
||||||
"created_at": "Sat, 19 Aug 2017 21:39:12 GMT",
|
"created_at": "Sat, 19 Aug 2017 21:39:12 GMT",
|
||||||
"enqueued_at": "Sat, 19 Aug 2017 21:39:12 GMT",
|
"enqueued_at": "Sat, 19 Aug 2017 21:39:12 GMT",
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
git diff 0.9.50 HEAD -- docs/api_overview.md | cat
|
git diff 0.9.50 HEAD -- docs/api_overview.md | cat
|
||||||
-->
|
-->
|
||||||
|
|
||||||
QMK API は、Web と GUI ツールが [QMK](http://qmk.fm/) によってサポートされるキーボード用の任意のキーマップをコンパイルするために使うことができる、非同期 API を提供します。標準のキーマップテンプレートは、C コードのサポートを必要としない全ての QMK キーコードをサポートします。キーボードのメンテナは独自のカスタムテンプレートを提供して、より多くの機能を実現することができます。
|
QMK API は、Web と GUI ツールが [QMK](https://qmk.fm/) によってサポートされるキーボード用の任意のキーマップをコンパイルするために使うことができる、非同期 API を提供します。標準のキーマップテンプレートは、C コードのサポートを必要としない全ての QMK キーコードをサポートします。キーボードのメンテナは独自のカスタムテンプレートを提供して、より多くの機能を実現することができます。
|
||||||
|
|
||||||
## アプリケーション開発者
|
## アプリケーション開発者
|
||||||
|
|
||||||
|
@@ -54,7 +54,7 @@ int foo(void) {
|
|||||||
|
|
||||||
[Clang-format](https://clang.llvm.org/docs/ClangFormat.html) は LLVM の一部で、誰もが手動で整形するほど暇ではないため、コードを自動整形することができます。私たちは、上記のコーディング規約のほとんどを適用する設定ファイルを提供しています。空白と改行のみを変更するため、省略可能な括弧は自分で付け加えることを忘れないでください。
|
[Clang-format](https://clang.llvm.org/docs/ClangFormat.html) は LLVM の一部で、誰もが手動で整形するほど暇ではないため、コードを自動整形することができます。私たちは、上記のコーディング規約のほとんどを適用する設定ファイルを提供しています。空白と改行のみを変更するため、省略可能な括弧は自分で付け加えることを忘れないでください。
|
||||||
|
|
||||||
Windows で clang-format を入手するには [full LLVM インストーラ](http://llvm.org/builds/)を使い、Ubuntu では `sudo apt install clang-format` を使ってください。
|
Windows で clang-format を入手するには [full LLVM インストーラ](https://llvm.org/builds/)を使い、Ubuntu では `sudo apt install clang-format` を使ってください。
|
||||||
|
|
||||||
コマンドラインから実行する場合、オプションとして `-style=file` を渡すと、QMK ルートディレクトリ内の .clang-format 設定ファイルを自動的に見つけます。
|
コマンドラインから実行する場合、オプションとして `-style=file` を渡すと、QMK ルートディレクトリ内の .clang-format 設定ファイルを自動的に見つけます。
|
||||||
|
|
||||||
|
@@ -23,7 +23,7 @@ QMK は十分な容量のフラッシュメモリを備えた USB 対応 AVR ま
|
|||||||
|
|
||||||
## ARM
|
## ARM
|
||||||
|
|
||||||
[ChibiOS](http://www.chibios.org) がサポートする USB 付きの ARM チップを使うこともできます。ほとんどのチップには十分な容量のフラッシュメモリがあります。動作するとわかっているのは:
|
[ChibiOS](https://www.chibios.org) がサポートする USB 付きの ARM チップを使うこともできます。ほとんどのチップには十分な容量のフラッシュメモリがあります。動作するとわかっているのは:
|
||||||
|
|
||||||
### STMicroelectronics (STM32)
|
### STMicroelectronics (STM32)
|
||||||
|
|
||||||
|
@@ -28,7 +28,7 @@ QMK について質問したい場合は、[OLKB Subreddit](https://reddit.com/r
|
|||||||
|
|
||||||
# プロジェクトの概要 :id=project-overview
|
# プロジェクトの概要 :id=project-overview
|
||||||
|
|
||||||
QMK は主に C で書かれており、特定の機能と部品は C++ で書かれています。QMK は、キーボードの中の組み込みプロセッサ、特に AVR ([LUFA](http://www.fourwalledcubicle.com/LUFA.php)) と ARM ([ChibiOS](http://www.chibios.com)) を対象にしています。すでに Arduino プログラミングに精通している場合は、多くの概念と制限がおなじみのものです。QMK に貢献するには Arduino を使用した経験は必要ありません。
|
QMK は主に C で書かれており、特定の機能と部品は C++ で書かれています。QMK は、キーボードの中の組み込みプロセッサ、特に AVR ([LUFA](https://www.fourwalledcubicle.com/LUFA.php)) と ARM ([ChibiOS](https://www.chibios.org)) を対象にしています。すでに Arduino プログラミングに精通している場合は、多くの概念と制限がおなじみのものです。QMK に貢献するには Arduino を使用した経験は必要ありません。
|
||||||
|
|
||||||
<!-- FIXME: We should include a list of resources for learning C here. -->
|
<!-- FIXME: We should include a list of resources for learning C here. -->
|
||||||
|
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
# キーボードの挙動をカスタマイズする方法
|
# キーボードの挙動をカスタマイズする方法
|
||||||
|
|
||||||
<!---
|
<!---
|
||||||
original document: 0.10.33:docs/custom_quantum_functions.md
|
original document: 0.10.52:docs/custom_quantum_functions.md
|
||||||
git diff 0.10.33 HEAD -- docs/custom_quantum_functions.md | cat
|
git diff 0.10.52 HEAD -- docs/custom_quantum_functions.md | cat
|
||||||
-->
|
-->
|
||||||
|
|
||||||
多くの人にとって、カスタムキーボードはボタンの押下をコンピュータに送信するだけではありません。単純なボタンの押下やマクロよりも複雑なことを実行できるようにしたいでしょう。QMK にはコードを挿入したり、機能を上書きしたり、様々な状況でキーボードの挙動をカスタマイズできるフックがあります。
|
多くの人にとって、カスタムキーボードはボタンの押下をコンピュータに送信するだけではありません。単純なボタンの押下やマクロよりも複雑なことを実行できるようにしたいでしょう。QMK にはコードを挿入したり、機能を上書きしたり、様々な状況でキーボードの挙動をカスタマイズできるフックがあります。
|
||||||
@@ -93,106 +93,6 @@ keyrecord_t record {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
# LED 制御
|
|
||||||
|
|
||||||
QMK は HID 仕様で定義された5つの LED の読み取りメソッドを提供します:
|
|
||||||
|
|
||||||
* Num Lock
|
|
||||||
* Caps Lock
|
|
||||||
* Scroll Lock
|
|
||||||
* Compose
|
|
||||||
* Kana
|
|
||||||
|
|
||||||
ロック LED の状態を取得するには2つの方法があります:
|
|
||||||
|
|
||||||
* `bool led_update_kb(led_t led_state)` あるいは `_user(led_t led_state)` を実装する、または
|
|
||||||
* `led_t host_keyboard_led_state()` を呼び出す
|
|
||||||
|
|
||||||
!> `host_keyboard_led_state()` は `led_update_user()` が呼ばれる前に新しい値を既に反映している場合があります。
|
|
||||||
|
|
||||||
LED の状態を `uint8_t` として提供する2つの非推奨の関数があります:
|
|
||||||
|
|
||||||
* `uint8_t led_set_kb(uint8_t usb_led)` と `_user(uint8_t usb_led)`
|
|
||||||
* `uint8_t host_keyboard_leds()`
|
|
||||||
|
|
||||||
## `led_update_user()`
|
|
||||||
|
|
||||||
この関数はこれら5つの LED のいずれかの状態が変化すると呼ばれます。LED の状態を構造体のパラメータとして受け取ります。
|
|
||||||
|
|
||||||
慣例により、`led_update_kb()` にそのコードを実行するようフックさせるために `led_update_user()` から `true` を返し、`led_update_kb()` でコードを実行したくない場合は `false` を返します。
|
|
||||||
|
|
||||||
以下はいくつかの例です:
|
|
||||||
|
|
||||||
- レイヤー表示のような何かのために LED を使うために LED を上書きする
|
|
||||||
- `_kb()` 関数を実行したくないので、`false` を返します。これはレイヤーの挙動を上書きするためです。
|
|
||||||
- LED がオンあるいはオフになった時に音楽を再生する。
|
|
||||||
- `_kb` 関数を実行したいので、`true` を返します。これはデフォルトの LED の挙動に追加されます。
|
|
||||||
|
|
||||||
?> `led_set_*` 関数は `bool` の代わりに `void` を返すため、キーボードの LED 制御を上書きすることができません。従って、代わりに `led_update_*` を使うことをお勧めします。
|
|
||||||
|
|
||||||
### `led_update_kb()` の実装例
|
|
||||||
|
|
||||||
```c
|
|
||||||
bool led_update_kb(led_t led_state) {
|
|
||||||
bool res = led_update_user(led_state);
|
|
||||||
if(res) {
|
|
||||||
// writePin は 1 でピンを high に、0 で low に設定します。
|
|
||||||
// この例では、ピンは反転していて、
|
|
||||||
// low/0 は LED がオンになり、high/1 は LED がオフになります。
|
|
||||||
// この挙動は、LED がピンと VCC の間にあるか、ピンと GND の間にあるかどうかに依存します。
|
|
||||||
writePin(B0, !led_state.num_lock);
|
|
||||||
writePin(B1, !led_state.caps_lock);
|
|
||||||
writePin(B2, !led_state.scroll_lock);
|
|
||||||
writePin(B3, !led_state.compose);
|
|
||||||
writePin(B4, !led_state.kana);
|
|
||||||
}
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### `led_update_user()` の実装例
|
|
||||||
|
|
||||||
この不完全な例は Caps Lock がオンまたはオフになった場合に音を再生します。また LED の状態を保持する必要があるため、`true` を返します。
|
|
||||||
|
|
||||||
```c
|
|
||||||
#ifdef AUDIO_ENABLE
|
|
||||||
float caps_on[][2] = SONG(CAPS_LOCK_ON_SOUND);
|
|
||||||
float caps_off[][2] = SONG(CAPS_LOCK_OFF_SOUND);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
bool led_update_user(led_t led_state) {
|
|
||||||
#ifdef AUDIO_ENABLE
|
|
||||||
static uint8_t caps_state = 0;
|
|
||||||
if (caps_state != led_state.caps_lock) {
|
|
||||||
led_state.caps_lock ? PLAY_SONG(caps_on) : PLAY_SONG(caps_off);
|
|
||||||
caps_state = led_state.caps_lock;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### `led_update_*` 関数のドキュメント
|
|
||||||
|
|
||||||
* キーボード/リビジョン: `bool led_update_kb(led_t led_state)`
|
|
||||||
* キーマップ: `bool led_update_user(led_t led_state)`
|
|
||||||
|
|
||||||
## `host_keyboard_led_state()`
|
|
||||||
|
|
||||||
最後に受信した LED の状態を `led_t` として取得するためにこの関数を呼びます。これは、`led_update_*` の外部から、例えば [`matrix_scan_user()`](#matrix-scanning-code) の中で LED の状態を読み取るのに便利です。
|
|
||||||
|
|
||||||
## 物理的な LED の状態の設定
|
|
||||||
|
|
||||||
一部のキーボードの実装は、物理的な LED の状態を設定するための便利なメソッドを提供しています。
|
|
||||||
|
|
||||||
### Ergodox キーボード
|
|
||||||
|
|
||||||
Ergodox の実装は、個々の LED をオンあるいはオフにするために `ergodox_right_led_1`/`2`/`3_on`/`off()` と、インデックスによってそれらをオンあるいはオフにするために `ergodox_right_led_on`/`off(uint8_t led)` を提供します。
|
|
||||||
|
|
||||||
さらに、LED の明度を指定することができます。全ての LED に同じ明度を指定するなら `ergodox_led_all_set(uint8_t n)` を使い、個別の LED の明度を指定するなら `ergodox_right_led_1`/`2`/`3_set(uint8_t n)` を使い、LED のインデックスを指定して明度を指定するには `ergodox_right_led_set(uint8_t led, uint8_t n)` を使います。
|
|
||||||
|
|
||||||
Ergodox キーボードは、最低の明度として `LED_BRIGHTNESS_LO` を、最高の輝度(これはデフォルトです)として `LED_BRIGHTNESS_HI` も定義しています。
|
|
||||||
|
|
||||||
# キーボードの初期化コード
|
# キーボードの初期化コード
|
||||||
|
|
||||||
キーボードの初期化プロセスには幾つかのステップがあります。何をしたいかによって、どの関数を使うべきかに影響します。
|
キーボードの初期化プロセスには幾つかのステップがあります。何をしたいかによって、どの関数を使うべきかに影響します。
|
||||||
@@ -347,7 +247,7 @@ layer_state_t layer_state_set_user(layer_state_t state) {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
特定のレイヤーの状態を確認するには、 `IS_LAYER_ON_STATE(state, layer)` と `IS_LAYER_OFF_STATE(state, layer)` マクロを使います。
|
特定のレイヤーの状態を確認するには、`IS_LAYER_ON_STATE(state, layer)` と `IS_LAYER_OFF_STATE(state, layer)` マクロを使います。
|
||||||
|
|
||||||
`layer_state_set_*` 関数の外では、グローバルなレイヤー状態を確認するために `IS_LAYER_ON(layer)` と `IS_LAYER_OFF(layer)` マクロを使えます。
|
`layer_state_set_*` 関数の外では、グローバルなレイヤー状態を確認するために `IS_LAYER_ON(layer)` と `IS_LAYER_OFF(layer)` マクロを使えます。
|
||||||
|
|
||||||
|
@@ -9,12 +9,12 @@
|
|||||||
|
|
||||||
## キーマップ `readme.md` テンプレート :id=keyboard-readmemd-template
|
## キーマップ `readme.md` テンプレート :id=keyboard-readmemd-template
|
||||||
|
|
||||||
ほとんどのキーマップには、レイアウトを表す画像があります。画像を作成するには、[Keyboard Layout Editor](http://keyboard-layout-editor.com) を使うことができます。画像は [Imgur](http://imgur.com) や別のホスティングサービスにアップロードし、プルリクエストに画像を含めないでください。
|
ほとんどのキーマップには、レイアウトを表す画像があります。画像を作成するには、[Keyboard Layout Editor](https://keyboard-layout-editor.com) を使うことができます。画像は [Imgur](https://imgur.com) や別のホスティングサービスにアップロードし、プルリクエストに画像を含めないでください。
|
||||||
|
|
||||||
画像の下には、キーマップを理解してもらうための簡単な説明文を書いてください。
|
画像の下には、キーマップを理解してもらうための簡単な説明文を書いてください。
|
||||||
|
|
||||||
```
|
```
|
||||||

|

|
||||||
|
|
||||||
# Default Clueboard Layout
|
# Default Clueboard Layout
|
||||||
|
|
||||||
@@ -29,9 +29,9 @@ the Ctrl, Alt, or GUI modifiers are held down.
|
|||||||
```
|
```
|
||||||
# Planck
|
# Planck
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
A compact 40% (12x4) ortholinear keyboard kit made and sold by OLKB and Massdrop. [More info on qmk.fm](http://qmk.fm/planck/)
|
A compact 40% (12x4) ortholinear keyboard kit made and sold by OLKB and Massdrop. [More info on qmk.fm](https://qmk.fm/planck/)
|
||||||
|
|
||||||
* Keyboard Maintainer: [Jack Humbert](https://github.com/jackhumbert)
|
* Keyboard Maintainer: [Jack Humbert](https://github.com/jackhumbert)
|
||||||
* Hardware Supported: Planck PCB rev1, rev2, rev3, rev4, Teensy 2.0
|
* Hardware Supported: Planck PCB rev1, rev2, rev3, rev4, Teensy 2.0
|
||||||
|
@@ -125,8 +125,8 @@ QMK のほとんどのキーボードは、vendor ID として、`0xFEED` を使
|
|||||||
https://github.com/tmk/tmk_keyboard/issues/150
|
https://github.com/tmk/tmk_keyboard/issues/150
|
||||||
|
|
||||||
ここで本当にユニークな VID:PID を買うことができます。個人的な使用にはこれは必要ないと思います。
|
ここで本当にユニークな VID:PID を買うことができます。個人的な使用にはこれは必要ないと思います。
|
||||||
- http://www.obdev.at/products/vusb/license.html
|
- https://www.obdev.at/products/vusb/license.html
|
||||||
- http://www.mcselec.com/index.php?page=shop.product_details&flypage=shop.flypage&product_id=92&option=com_phpshop&Itemid=1
|
- https://www.mcselec.com/index.php?page=shop.product_details&flypage=shop.flypage&product_id=92&option=com_phpshop&Itemid=1
|
||||||
|
|
||||||
### キーボードに書き込んだが何も起こらない、あるいはキーの押下が登録されない - ARM (rev6 planck、clueboard 60、hs60v2 など) でも同じ (Feb 2019)
|
### キーボードに書き込んだが何も起こらない、あるいはキーの押下が登録されない - ARM (rev6 planck、clueboard 60、hs60v2 など) でも同じ (Feb 2019)
|
||||||
ARM ベースのチップ上での EEPROM の動作によって、保存された設定が無効になる場合があります。これはデフォルトレイヤに影響し、まだ調査中の特定の環境下でキーボードが使えなくなる*しれません*。EEPROM のリセットでこれが修正されます。
|
ARM ベースのチップ上での EEPROM の動作によって、保存された設定が無効になる場合があります。これはデフォルトレイヤに影響し、まだ調査中の特定の環境下でキーボードが使えなくなる*しれません*。EEPROM のリセットでこれが修正されます。
|
||||||
|
@@ -79,8 +79,8 @@ https://github.com/tmk/tmk_keyboard#boot-magic-configuration---virtual-dip-switc
|
|||||||
## TrackPoint はリセット回路が必要です (PS/2 マウスサポート)
|
## TrackPoint はリセット回路が必要です (PS/2 マウスサポート)
|
||||||
リセット回路が無いとハードウェアの不適切な初期化のために一貫性の無い結果になります。TPM754 の回路図を見てください。
|
リセット回路が無いとハードウェアの不適切な初期化のために一貫性の無い結果になります。TPM754 の回路図を見てください。
|
||||||
|
|
||||||
- http://geekhack.org/index.php?topic=50176.msg1127447#msg1127447
|
- https://geekhack.org/index.php?topic=50176.msg1127447#msg1127447
|
||||||
- http://www.mikrocontroller.net/attachment/52583/tpm754.pdf
|
- https://www.mikrocontroller.net/attachment/52583/tpm754.pdf
|
||||||
|
|
||||||
|
|
||||||
## 16 を超えるマトリックの列を読み込めない
|
## 16 を超えるマトリックの列を読み込めない
|
||||||
@@ -88,7 +88,7 @@ https://github.com/tmk/tmk_keyboard#boot-magic-configuration---virtual-dip-switc
|
|||||||
|
|
||||||
C では、AVR の場合 `1` は [16 bit] である [int] 型の1を意味し、15 を超えて左にシフトすることはできません。`1<<16` すると予期しないゼロが発生します。`1UL` として [unsigned long] 型を使う必要があります。
|
C では、AVR の場合 `1` は [16 bit] である [int] 型の1を意味し、15 を超えて左にシフトすることはできません。`1<<16` すると予期しないゼロが発生します。`1UL` として [unsigned long] 型を使う必要があります。
|
||||||
|
|
||||||
http://deskthority.net/workshop-f7/rebuilding-and-redesigning-a-classic-thinkpad-keyboard-t6181-60.html#p146279
|
https://deskthority.net/workshop-f7/rebuilding-and-redesigning-a-classic-thinkpad-keyboard-t6181-60.html#p146279
|
||||||
|
|
||||||
## 特別なエクストラキーが動作しない (システム、オーディオコントロールキー)
|
## 特別なエクストラキーが動作しない (システム、オーディオコントロールキー)
|
||||||
QMK でそれらを使うには、`rules.mk` 内で `EXTRAKEY_ENABLE` を定義する必要があります。
|
QMK でそれらを使うには、`rules.mk` 内で `EXTRAKEY_ENABLE` を定義する必要があります。
|
||||||
@@ -107,8 +107,8 @@ Windows では、**デバイスマネージャ**の**電源の管理**タブ内
|
|||||||
|
|
||||||
**Arduino のピンの命名は実際のチップと異なることに注意してください。** 例えば、Arduino のピン `D0` は `PD0` ではありません。回路図を自身で確認してください。
|
**Arduino のピンの命名は実際のチップと異なることに注意してください。** 例えば、Arduino のピン `D0` は `PD0` ではありません。回路図を自身で確認してください。
|
||||||
|
|
||||||
- http://arduino.cc/en/uploads/Main/arduino-leonardo-schematic_3b.pdf
|
- https://arduino.cc/en/uploads/Main/arduino-leonardo-schematic_3b.pdf
|
||||||
- http://arduino.cc/en/uploads/Main/arduino-micro-schematic.pdf
|
- https://arduino.cc/en/uploads/Main/arduino-micro-schematic.pdf
|
||||||
|
|
||||||
Arduino の Leonardo と micro には **ATMega32U4** が載っていて、TMK 用に使うことができますが、Arduino のブートローダが問題になることがあります。
|
Arduino の Leonardo と micro には **ATMega32U4** が載っていて、TMK 用に使うことができますが、Arduino のブートローダが問題になることがあります。
|
||||||
|
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
世界中で使用されている ANSI、ISO および JIS の3つの標準キーボードがあります。北米では主に ANSI が使われ、ヨーロッパおよびアフリカでは主に ISO が使われ、日本では JIS が使われます。言及されていない地域では、ANSI あるいは ISO が使われています。これらのレイアウトに対応するキーコードは以下の通りです:
|
世界中で使用されている ANSI、ISO および JIS の3つの標準キーボードがあります。北米では主に ANSI が使われ、ヨーロッパおよびアフリカでは主に ISO が使われ、日本では JIS が使われます。言及されていない地域では、ANSI あるいは ISO が使われています。これらのレイアウトに対応するキーコードは以下の通りです:
|
||||||
|
|
||||||
<!-- Source for this image: http://www.keyboard-layout-editor.com/#/gists/bf431647d1001cff5eff20ae55621e9a -->
|
<!-- Source for this image: https://www.keyboard-layout-editor.com/#/gists/bf431647d1001cff5eff20ae55621e9a -->
|
||||||

|

|
||||||
|
|
||||||
## 複雑なキーコードのカスタム名を作成する方法はありますか?
|
## 複雑なキーコードのカスタム名を作成する方法はありますか?
|
||||||
@@ -47,8 +47,8 @@ QMK には2つの機能、ブートマジックとコマンドがあり、これ
|
|||||||
`KC_SYSREQ` の代わりに、Print Screen(`KC_PSCREEN` あるいは `KC_PSCR`) のキーコードを使ってください。'Alt + Print Screen' のキーの組み合わせは、'システムリクエスト' と認識されます。
|
`KC_SYSREQ` の代わりに、Print Screen(`KC_PSCREEN` あるいは `KC_PSCR`) のキーコードを使ってください。'Alt + Print Screen' のキーの組み合わせは、'システムリクエスト' と認識されます。
|
||||||
|
|
||||||
[issue #168](https://github.com/tmk/tmk_keyboard/issues/168) と以下を見てください
|
[issue #168](https://github.com/tmk/tmk_keyboard/issues/168) と以下を見てください
|
||||||
* http://en.wikipedia.org/wiki/Magic_SysRq_key
|
* https://en.wikipedia.org/wiki/Magic_SysRq_key
|
||||||
* http://en.wikipedia.org/wiki/System_request
|
* https://en.wikipedia.org/wiki/System_request
|
||||||
|
|
||||||
## 電源キーが動作しません
|
## 電源キーが動作しません
|
||||||
|
|
||||||
@@ -65,13 +65,13 @@ https://github.com/tmk/tmk_keyboard/issues/67
|
|||||||
修飾キーおよびレイヤ切り替えの場合、リリースイベント時に修飾キーの登録を解除する、もしくは前のレイヤに戻るために、目的のレイヤの同じ位置に `KC_TRANS` を配置する必要があります。
|
修飾キーおよびレイヤ切り替えの場合、リリースイベント時に修飾キーの登録を解除する、もしくは前のレイヤに戻るために、目的のレイヤの同じ位置に `KC_TRANS` を配置する必要があります。
|
||||||
|
|
||||||
* https://github.com/tmk/tmk_core/blob/master/doc/keymap.md#31-momentary-switching
|
* https://github.com/tmk/tmk_core/blob/master/doc/keymap.md#31-momentary-switching
|
||||||
* http://geekhack.org/index.php?topic=57008.msg1492604#msg1492604
|
* https://geekhack.org/index.php?topic=57008.msg1492604#msg1492604
|
||||||
* https://github.com/tmk/tmk_keyboard/issues/248
|
* https://github.com/tmk/tmk_keyboard/issues/248
|
||||||
|
|
||||||
|
|
||||||
## メカニカルロックスイッチのサポート
|
## メカニカルロックスイッチのサポート
|
||||||
|
|
||||||
この機能は [Alps](http://deskthority.net/wiki/Alps_SKCL_Lock) のような*メカニカルロックスイッチ*用です。以下を `config.h` に追加することで有効にすることができます:
|
この機能は [Alps](https://deskthority.net/wiki/Alps_SKCL_Lock) のような*メカニカルロックスイッチ*用です。以下を `config.h` に追加することで有効にすることができます:
|
||||||
|
|
||||||
```
|
```
|
||||||
#define LOCKING_SUPPORT_ENABLE
|
#define LOCKING_SUPPORT_ENABLE
|
||||||
|
@@ -1,45 +1,145 @@
|
|||||||
# デバウンスアルゴリズム
|
# 接点バウンス / 接点チャタリング
|
||||||
|
|
||||||
<!---
|
<!---
|
||||||
original document: 0.9.19:docs/feature_debounce_type.md
|
original document: 0.11.53:docs/feature_debounce_type.md
|
||||||
git diff 0.9.19 HEAD -- docs/feature_debounce_type.md | cat
|
git diff 0.11.53 HEAD -- docs/feature_debounce_type.md | cat
|
||||||
-->
|
-->
|
||||||
|
|
||||||
QMK はデバウンス API を介して複数のデバウンスアルゴリズムをサポートします。
|
メカニカルスイッチは押した状態と放した状態の間の移行が単純ではないことが良くあります。
|
||||||
|
|
||||||
どのデバウンスメソッドが呼ばれるかのロジックは下記のとおりです。rules.mk で設定された様々な定義をチェックします。
|
理想的な世界では、スイッチを押すと、デジタルピンが次のようになることが期待されます:
|
||||||
|
(X 軸は時間を表します
|
||||||
|
```
|
||||||
|
voltage +----------------------
|
||||||
|
^ |
|
||||||
|
| |
|
||||||
|
| ------------------+
|
||||||
|
----> time
|
||||||
|
```
|
||||||
|
|
||||||
|
しかし実際の世界では、値が最終的に落ち着くまでに 0 と 1 の間を行ったり来たりする接点バウンスを見ることになるでしょう。(訳注:日本語では、バウンスとチャタリングを区別せずにチャタリングと呼んでいることが多いようです。)
|
||||||
|
```
|
||||||
|
+-+ +--+ +-------------
|
||||||
|
| | | | |
|
||||||
|
| | | | |
|
||||||
|
+-----------------+ +-+ +-+
|
||||||
|
```
|
||||||
|
スイッチが落ち着くまでにかかる時間は、スイッチの種類や経年、押す技術によって異なる場合があります。
|
||||||
|
|
||||||
|
デバイスが接点バウンスを緩和しないことを選択した場合、スイッチが押された時に起きるアクションが複数回繰り返されることがよくあります。
|
||||||
|
|
||||||
|
接点バウンス(「デバウンス」)を処理する方法はたくさんあります。RC フィルタのような追加のハードウェアを採用する方法もありますが、ソフトウェアでデバウンスを行う様々な方法もあり、よくデバウンスアルゴリズムと呼ばれます。このページでは、QMK で利用できるデバウンスメソッドについて説明します。
|
||||||
|
|
||||||
|
技術的には接点バウンス/接点チャタリングとは見なされませんが、一部のスイッチテクノロジーはノイズの影響を受けやすく、キーの状態が変化していない時に、時々短くランダムに 0 と 1 の間を行き来する様子がデジタル回路によって読み取られる場合があります。例えば:
|
||||||
|
```
|
||||||
|
+-+
|
||||||
|
| |
|
||||||
|
| |
|
||||||
|
+-----------------+ +--------------------
|
||||||
|
```
|
||||||
|
|
||||||
|
多くのデバウンスメソッド(全てではないですが)は、デバイスにノイズ耐性を持たせます。
|
||||||
|
ノイズの影響を受けやすい技術を使っている場合は、ノイズを緩和するデバウンスメソッドを選択しなければなりません。
|
||||||
|
|
||||||
|
## デバウンスアルゴリズムの種類
|
||||||
|
|
||||||
|
1) 時間の単位: タイムスタンプ (ミリ秒) vs 周期 (スキャン)
|
||||||
|
* デバウンスアルゴリズムは1つの「デバウンス時間」パラメータを持つことがよくあり、スイッチ接点の最大セトリング時間を指定します。
|
||||||
|
この時間は様々な単位で測定される場合があります:
|
||||||
|
* 周期ベースデバウンスは n 周期(スキャン)待機し、matrix_scan ごとにカウントを1減らします。
|
||||||
|
* タイムスタンプベースのデバウンスは、変更が発生したミリ秒のタイムスタンプを格納し、経過時間を計算するために減算を行います。
|
||||||
|
* 通常、タイムスタンプベースのデバウンスは、特にノイズ耐性のあるデバイスで優れています。なぜなら、物理スイッチのセトリング時間は時間の単位で指定されており、キーボードのマトリックススキャンレートに依存しないからです。
|
||||||
|
* 周期ベースのデバウンスは、補正できるセトリング時間がマトリックススキャンコードのパフォーマンスに依存するため、劣ると見なされる場合があります。
|
||||||
|
周期ベースのデバウンスを使う場合、スキャンコードのパフォーマンスを大幅に向上させると、デバウンスの効果が低下する場合があります。
|
||||||
|
周期ベースのデバウンスが望ましい状況は、ノイズが存在し、スキャンアルゴリズムが遅い、もしくは速度が可変である場合です。
|
||||||
|
デバウンスアルゴリズムが基本的にノイズ耐性がある場合でも、スキャンが遅く、タイムスタンプベースのアルゴリズムを使っている場合は、
|
||||||
|
2つのサンプル値に基づいてデバウンスを決定するため、アルゴリズムのノイズ耐性は制限されます。
|
||||||
|
* 現在、全ての組み込みデバウンスアルゴリズムは、タイムスタンプベースのデバウンスのみサポートしています。将来的には周期ベースのデバウンスを実装し、```config.h``` マクロを介して選択できるようになるでしょう。
|
||||||
|
|
||||||
|
2) 対称 vs 非対称
|
||||||
|
* 対称 - キーアップとキーダウンイベントの両方に、同じデバウンスアルゴリズムを適用します。
|
||||||
|
* 推奨される命名規則: ```sym_*```
|
||||||
|
* 非対称 - キーダウンとキーアップイベントに異なるデバウンスアルゴリズムを適用します。例えば、キーダウンはイーガー、キーアップはデファー。
|
||||||
|
* 推奨される命名規則: ```asym_*``` の後に、キーダウン、キーアップの順に使っているアルゴリズムタイプの詳細が続きます。
|
||||||
|
|
||||||
|
3) イーガー vs デファー
|
||||||
|
* イーガー - キーの変更はすぐに報告されます。DEBOUNCE ミリ秒以降の全ての入力は無視されます。
|
||||||
|
* イーガーアルゴリズムはノイズ耐性はありません
|
||||||
|
* 推奨される命名規則:
|
||||||
|
* ```sym_eager_*```
|
||||||
|
* ```asym_eager_*_*```: キーダウンはイーガーアルゴリズムを使います
|
||||||
|
* ```asym_*_eager_*```: キーアップはイーガーアルゴリズムを使います
|
||||||
|
* デファー - 変更を報告する前に DEBOUNCE ミリ秒の間変更がないことを待機します
|
||||||
|
* デファーアルゴリズムはノイズ耐性があります
|
||||||
|
* 推奨される命名規則:
|
||||||
|
* ```sym_defer_*```
|
||||||
|
* ```asym_defer_*_*```: キーダウンはデファーアルゴリズムを使います
|
||||||
|
* ```asym_*_defer_*```: キーアップはデファーアルゴリズムを使います
|
||||||
|
|
||||||
|
4) グローバル vs キーごと vs 行ごと
|
||||||
|
* グローバル - 全てのキーに対して1つのタイマー。キーの変更状態は、グローバルタイマーに影響を与えます。
|
||||||
|
* 推奨される命名規則: ```*_g```
|
||||||
|
* キーごと - キーごとに1つのタイマー。
|
||||||
|
* 推奨される命名規則: ```*_pk```
|
||||||
|
* 行ごと - 行ごとに1つのタイマー。
|
||||||
|
* 推奨される命名規則: ```*_pr```
|
||||||
|
* キーごとや行ごとのアルゴリズムはより多くのリソース(パフォーマンスと RAM 使用量の観点で)を消費しますが、高速なタイピストはグローバルよりもそれらを好む場合があります。
|
||||||
|
|
||||||
|
## QMK でサポートされるデバウンスアルゴリズム
|
||||||
|
|
||||||
|
QMK はデバウンス API を介して複数のデバウンスアルゴリズムをサポートします。
|
||||||
|
どのデバウンスメソッドが呼ばれるかのロジックは下記のとおりです。```rules.mk``` で設定された様々な定義をチェックします。
|
||||||
|
|
||||||
```
|
```
|
||||||
DEBOUNCE_DIR:= $(QUANTUM_DIR)/debounce
|
DEBOUNCE_DIR:= $(QUANTUM_DIR)/debounce
|
||||||
DEBOUNCE_TYPE?= sym_g
|
DEBOUNCE_TYPE?= sym_defer_g
|
||||||
ifneq ($(strip $(DEBOUNCE_TYPE)), custom)
|
ifneq ($(strip $(DEBOUNCE_TYPE)), custom)
|
||||||
QUANTUM_SRC += $(DEBOUNCE_DIR)/$(strip $(DEBOUNCE_TYPE)).c
|
QUANTUM_SRC += $(DEBOUNCE_DIR)/$(strip $(DEBOUNCE_TYPE)).c
|
||||||
endif
|
endif
|
||||||
```
|
```
|
||||||
|
|
||||||
# デバウンスの選択
|
### デバウンスの選択
|
||||||
|
|
||||||
| DEBOUNCE_TYPE | 説明 | 他に必要なもの |
|
| DEBOUNCE_TYPE | 説明 | 他に必要なもの |
|
||||||
| ------------- | --------------------------------------------------- | ----------------------------- |
|
| ------------- | ------------------------------------------------------------- | ---------------------------------------------------------------------------- |
|
||||||
| 未定義 | デフォルトのアルゴリズム、現在のところ sym_g を使います | 無し |
|
| 未定義 | デフォルトのアルゴリズム、現在のところ sym_defer_g を使います | 無し |
|
||||||
| custom | 独自のデバウンスコードを使います | ```SRC += debounce.c``` で独自の debounce.c を追加し、必要な関数を実装します |
|
| custom | 独自のデバウンスコードを使います | ```SRC += debounce.c``` で独自の debounce.c を追加し、必要な関数を実装します |
|
||||||
| anything_else | quantum/debounce/* から他のアルゴリズムを使います | 無し |
|
| その他 | quantum/debounce/* から他のアルゴリズムを使います | 無し |
|
||||||
|
|
||||||
**分割キーボードについて**:
|
**分割キーボードについて**:
|
||||||
デバウンスコードは分割キーボードと互換性があります。
|
デバウンスコードは分割キーボードと互換性があります。
|
||||||
|
|
||||||
# 独自のデバウンスコードの使用
|
### インクルードされているデバウンスメソッドの選択
|
||||||
* ```DEBOUNCE_TYPE = custom``` を設定します。
|
キーボードは、```rules.mk``` に次の行を追加することで、既に実装されているデバウンスメソッドの1つを選択できます:
|
||||||
* ```SRC += debounce.c``` を追加します。
|
```
|
||||||
* 独自の ```debounce.c``` を追加します。例については、```quantum/debounce``` にある現在の実装をみてください。
|
DEBOUNCE_TYPE = <アルゴリズムの名前>
|
||||||
* 毎回のマトリクススキャンの結果はその度デバウンスによって処理されます。
|
```
|
||||||
* MATRIX_ROWS ではなく num_rows を使って、分割キーボードが正しくサポートされるようにします。
|
アルゴリズムの名前は次のいずれかです:
|
||||||
|
* ```sym_defer_g``` - キーボードごとにデバウンスします。状態が変化すると、グローバルタイマが設定されます。```DEBOUNCE``` ミリ秒の間何も変化がなければ、全ての入力の変更がプッシュされます。
|
||||||
# インクルードされているデバウンスメソッド間での切り替え
|
* これは現在のデフォルトアルゴリズムです。これはメモリ使用量が最も少ない最高のパフォーマンスのアルゴリズムで、ノイズ耐性もあります。
|
||||||
独自の debounce.c をインクルードすることで独自のコードを使うか、またはインクルードされている他のコードに切り替えることができます。
|
* ```sym_eager_pr``` - 行ごとにデバウンスします。状態が変化すると、応答は即座に行われ、その後その行は ```DEBOUNCE``` ミリ秒の間入力されません。
|
||||||
含まれるデバウンスメソッドは以下の通りです:
|
|
||||||
* eager_pr - 行ごとにデバウンスします。状態が変化すると、応答は即座に行われ、その後その行は ```DEBOUNCE``` ミリ秒の間入力されません。
|
|
||||||
```NUM_KEYS``` の 8ビットカウンタの更新に高い計算コストがかかる、もしくは低スキャンレートのキーボード用で、各指は通常一度に1行しか叩かないようになっています。これは ErgoDox モデルに適しています; マトリックスは90度回転しているため、その「行」は実際には「列」であり、通常の使用では各指は一度に1つの「行」にしか当たりません。
|
```NUM_KEYS``` の 8ビットカウンタの更新に高い計算コストがかかる、もしくは低スキャンレートのキーボード用で、各指は通常一度に1行しか叩かないようになっています。これは ErgoDox モデルに適しています; マトリックスは90度回転しているため、その「行」は実際には「列」であり、通常の使用では各指は一度に1つの「行」にしか当たりません。
|
||||||
* eager_pk - キーごとにデバウンスします。状態が変化すると、応答は即座に行われ、その後そのキーは ```DEBOUNCE``` ミリ秒の間入力されません。
|
* ```sym_eager_pk``` - キーごとにデバウンスします。状態が変化すると、応答は即座に行われ、その後そのキーは ```DEBOUNCE``` ミリ秒の間入力されません。
|
||||||
* sym_g - キーボードごとにデバウンスします。状態が変化すると、グローバルタイマが設定されます。```DEBOUNCE``` ミリ秒の間何も変化がなければ、全ての入力の変更がプッシュされます。
|
* ```sym_defer_pk``` - キーごとにデバウンスします。状態が変化すると、キーごとのタイマーが設定されます。```DEBOUNCE``` ミリ秒の間そのキーに変化がなければ、キーの状態の変更がプッシュされます。
|
||||||
* sym_pk - キーごとにデバウンスします。状態が変化すると、キーごとのタイマーが設定されます。```DEBOUNCE``` ミリ秒の間そのキーに変化がなければ、キーの状態の変更がプッシュされます。
|
|
||||||
|
### 将来実装される可能性のあるいくつかのアルゴリズム:
|
||||||
|
* ```sym_defer_pr```
|
||||||
|
* ```sym_eager_g```
|
||||||
|
* ```asym_eager_defer_pk```
|
||||||
|
|
||||||
|
### 独自のデバウンスコードの使用
|
||||||
|
独自のデバウンスアルゴリズムを実装するためのオプションがあります。次のようにします:
|
||||||
|
* ```rules.mk``` に ```DEBOUNCE_TYPE = custom``` を設定します。
|
||||||
|
* ```rules.mk``` に ```SRC += debounce.c``` を追加します。
|
||||||
|
* 独自の ```debounce.c``` を追加します。例については、```quantum/debounce``` にある現在の実装を見てください。
|
||||||
|
* デバウンスは、全てのマトリクススキャンの後で発生します。
|
||||||
|
* MATRIX_ROWS ではなく num_rows を使って、分割キーボードが正しくサポートされるようにします。
|
||||||
|
* アルゴリズムが他のキーボードにも適用できる可能性がある場合、```quantum/debounce``` に追加することを検討してください。
|
||||||
|
|
||||||
|
### 古い名前
|
||||||
|
次の既存のアルゴリズムの古い名前は引き続きサポートされますが、代わりに新しい名前を使うことを推奨します。
|
||||||
|
|
||||||
|
* sym_g - sym_defer_g の古い名前
|
||||||
|
* eager_pk - sym_eager_pk の古い名前
|
||||||
|
* sym_pk - sym_defer_pk の古い名前
|
||||||
|
* eager_pr - sym_eager_pr の古い名前
|
||||||
|
119
docs/ja/feature_led_indicators.md
Normal file
119
docs/ja/feature_led_indicators.md
Normal file
@@ -0,0 +1,119 @@
|
|||||||
|
# LED インジケータ
|
||||||
|
|
||||||
|
<!---
|
||||||
|
original document: 0.10.52:docs/feature_led_indicators.md
|
||||||
|
git diff 0.10.52 HEAD -- docs/feature_led_indicators.md | cat
|
||||||
|
-->
|
||||||
|
|
||||||
|
QMK は HID 仕様で定義された5つの LED の読み取りメソッドを提供します:
|
||||||
|
|
||||||
|
* Num Lock
|
||||||
|
* Caps Lock
|
||||||
|
* Scroll Lock
|
||||||
|
* Compose
|
||||||
|
* Kana
|
||||||
|
|
||||||
|
ロック LED の状態を取得するには3つの方法があります:
|
||||||
|
* `config.h` で設定オプションを指定する
|
||||||
|
* `bool led_update_kb(led_t led_state)` あるいは `_user(led_t led_state)` を実装する、または
|
||||||
|
* `led_t host_keyboard_led_state()` を呼び出す
|
||||||
|
|
||||||
|
!> `host_keyboard_led_state()` は `led_update_user()` が呼ばれる前に新しい値を既に反映している場合があります。
|
||||||
|
|
||||||
|
LED の状態を `uint8_t` として提供する2つの非推奨の関数があります:
|
||||||
|
|
||||||
|
* `uint8_t led_set_kb(uint8_t usb_led)` と `_user(uint8_t usb_led)`
|
||||||
|
* `uint8_t host_keyboard_leds()`
|
||||||
|
|
||||||
|
## 設定オプション
|
||||||
|
|
||||||
|
インジケータを設定するには、`config.h` で以下の `#define` をします:
|
||||||
|
|
||||||
|
| 定義 | 既定値 | 説明 |
|
||||||
|
|-----------------------|------------|----------------------------------|
|
||||||
|
| `LED_NUM_LOCK_PIN` | *定義なし* | `Num Lock` LED を制御するピン |
|
||||||
|
| `LED_CAPS_LOCK_PIN` | *定義なし* | `Caps Lock` LED を制御するピン |
|
||||||
|
| `LED_SCROLL_LOCK_PIN` | *定義なし* | `Scroll Lock` LED を制御するピン |
|
||||||
|
| `LED_COMPOSE_PIN` | *定義なし* | `Compose` LED を制御するピン |
|
||||||
|
| `LED_KANA_PIN` | *定義なし* | `Kana` LED を制御するピン |
|
||||||
|
| `LED_PIN_ON_STATE` | `1` | LED が "オン" の時のインジケータピンの状態 - high の場合は`1`、low の場合は`0` |
|
||||||
|
|
||||||
|
独自のキーボードを設計しているわけではない限り、通常は上記の設定オプションを変更する必要はありません。
|
||||||
|
|
||||||
|
## `led_update_*()`
|
||||||
|
|
||||||
|
設定オプションが十分な柔軟性を提供しない場合は、提供される API フックにより LED の挙動の独自の制御ができます。これらの関数はこれら5つの LED のいずれかの状態が変化すると呼ばれます。LED の状態を構造体のパラメータとして受け取ります。
|
||||||
|
|
||||||
|
慣例により、`led_update_kb()` にそのコードを実行するようフックさせるために `led_update_user()` から `true` を返し、`led_update_kb()` でコードを実行したくない場合は `false` を返します。
|
||||||
|
|
||||||
|
以下はいくつかの例です:
|
||||||
|
|
||||||
|
- レイヤー表示のような何かのために LED を使うために LED を上書きする
|
||||||
|
- `_kb()` 関数を実行したくないので、`false` を返します。これはレイヤーの挙動を上書きするためです。
|
||||||
|
- LED がオンあるいはオフになった時に音楽を再生する。
|
||||||
|
- `_kb` 関数を実行したいので、`true` を返します。これはデフォルトの LED の挙動に追加されます。
|
||||||
|
|
||||||
|
?> `led_set_*` 関数は `bool` の代わりに `void` を返すため、キーボードの LED 制御を上書きすることができません。従って、代わりに `led_update_*` を使うことをお勧めします。
|
||||||
|
|
||||||
|
### `led_update_kb()` の実装例
|
||||||
|
|
||||||
|
```c
|
||||||
|
bool led_update_kb(led_t led_state) {
|
||||||
|
bool res = led_update_user(led_state);
|
||||||
|
if(res) {
|
||||||
|
// writePin は 1 でピンを high に、0 で low に設定します。
|
||||||
|
// この例では、ピンは反転していて、
|
||||||
|
// low/0 は LED がオンになり、high/1 は LED がオフになります。
|
||||||
|
// この挙動は、LED がピンと VCC の間にあるか、ピンと GND の間にあるかどうかに依存します。
|
||||||
|
writePin(B0, !led_state.num_lock);
|
||||||
|
writePin(B1, !led_state.caps_lock);
|
||||||
|
writePin(B2, !led_state.scroll_lock);
|
||||||
|
writePin(B3, !led_state.compose);
|
||||||
|
writePin(B4, !led_state.kana);
|
||||||
|
}
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### `led_update_user()` の実装例
|
||||||
|
|
||||||
|
この不完全な例は Caps Lock がオンまたはオフになった場合に音を再生します。また LED の状態を保持する必要があるため、`true` を返します。
|
||||||
|
|
||||||
|
```c
|
||||||
|
#ifdef AUDIO_ENABLE
|
||||||
|
float caps_on[][2] = SONG(CAPS_LOCK_ON_SOUND);
|
||||||
|
float caps_off[][2] = SONG(CAPS_LOCK_OFF_SOUND);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
bool led_update_user(led_t led_state) {
|
||||||
|
#ifdef AUDIO_ENABLE
|
||||||
|
static uint8_t caps_state = 0;
|
||||||
|
if (caps_state != led_state.caps_lock) {
|
||||||
|
led_state.caps_lock ? PLAY_SONG(caps_on) : PLAY_SONG(caps_off);
|
||||||
|
caps_state = led_state.caps_lock;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### `led_update_*` 関数のドキュメント
|
||||||
|
|
||||||
|
* キーボード/リビジョン: `bool led_update_kb(led_t led_state)`
|
||||||
|
* キーマップ: `bool led_update_user(led_t led_state)`
|
||||||
|
|
||||||
|
## `host_keyboard_led_state()`
|
||||||
|
|
||||||
|
最後に受信した LED の状態を `led_t` として取得するためにこの関数を呼びます。これは、`led_update_*` の外部から、例えば [`matrix_scan_user()`](#matrix-scanning-code) の中で LED の状態を読み取るのに便利です。
|
||||||
|
|
||||||
|
## 物理的な LED の状態の設定
|
||||||
|
|
||||||
|
一部のキーボードの実装は、物理的な LED の状態を設定するための便利なメソッドを提供しています。
|
||||||
|
|
||||||
|
### Ergodox キーボード
|
||||||
|
|
||||||
|
Ergodox の実装は、個々の LED をオンあるいはオフにするために `ergodox_right_led_1`/`2`/`3_on`/`off()` と、インデックスによってそれらをオンあるいはオフにするために `ergodox_right_led_on`/`off(uint8_t led)` を提供します。
|
||||||
|
|
||||||
|
さらに、LED の明度を指定することができます。全ての LED に同じ明度を指定するなら `ergodox_led_all_set(uint8_t n)` を使い、個別の LED の明度を指定するなら `ergodox_right_led_1`/`2`/`3_set(uint8_t n)` を使い、LED のインデックスを指定して明度を指定するには `ergodox_right_led_set(uint8_t led, uint8_t n)` を使います。
|
||||||
|
|
||||||
|
Ergodox キーボードは、最低の明度として `LED_BRIGHTNESS_LO` を、最高の輝度(これはデフォルトです)として `LED_BRIGHTNESS_HI` も定義しています。
|
@@ -61,7 +61,7 @@ I2C IS31FL3731 RGB コントローラを使ったアドレス指定可能な LED
|
|||||||
....
|
....
|
||||||
}
|
}
|
||||||
|
|
||||||
ここで、`Cx_y` は[データシート](http://www.issi.com/WW/pdf/31FL3731.pdf)およびヘッダファイル `drivers/issi/is31fl3731-simple.h` で定義されるマトリックス内の LED の位置です。`driver` は `config.h` で定義したドライバのインデックス(`0`、`1`、`2`、`3`のいずれか)です。
|
ここで、`Cx_y` は[データシート](https://www.issi.com/WW/pdf/31FL3731.pdf)およびヘッダファイル `drivers/issi/is31fl3731-simple.h` で定義されるマトリックス内の LED の位置です。`driver` は `config.h` で定義したドライバのインデックス(`0`、`1`、`2`、`3`のいずれか)です。
|
||||||
|
|
||||||
## キーコード
|
## キーコード
|
||||||
|
|
||||||
|
74
docs/ja/feature_rawhid.md
Normal file
74
docs/ja/feature_rawhid.md
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
# Raw HID
|
||||||
|
|
||||||
|
<!---
|
||||||
|
original document: 0.10.47:docs/feature_rawhid.md
|
||||||
|
git diff 0.10.47 HEAD -- docs/feature_rawhid.md | cat
|
||||||
|
-->
|
||||||
|
|
||||||
|
Raw HID は、HID インタフェースを介して QMK とホストコンピュータ間の双方向通信を可能にします。これには、キーマップをその場で切り替えたり、RGB LED の色とモードを変更したりなど、多くの潜在的な使用方法があります。
|
||||||
|
|
||||||
|
キーボードで raw HID を機能させるには、2つの主要なコンポーネントがあります。
|
||||||
|
|
||||||
|
## キーボードファームウェア
|
||||||
|
|
||||||
|
ファームウェアの実装はとても簡単です。
|
||||||
|
`rules.mk` に以下を追加します:
|
||||||
|
|
||||||
|
```make
|
||||||
|
RAW_ENABLE = yes
|
||||||
|
```
|
||||||
|
|
||||||
|
`keymap.c` に `"raw_hid.h"` を include し、以下を実装します:
|
||||||
|
|
||||||
|
```C
|
||||||
|
void raw_hid_receive(uint8_t *data, uint8_t length) {
|
||||||
|
// ここにコードを書きます。data はホストから受信したパケットです。
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
`"raw_hid.h"` ヘッダは、キーボードからホストにパケットを送信できる `void raw_hid_send(uint8_t *data, uint8_t length);` も宣言します。例として、全てのデータをホストに返すことで、ホストアプリケーションを構築する時のデバッグに使うこともできます。
|
||||||
|
|
||||||
|
```C
|
||||||
|
void raw_hid_receive(uint8_t *data, uint8_t length) {
|
||||||
|
raw_hid_send(data, length);
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
`raw_hid_receive` はホストから最大長 `RAW_EPSIZE` の可変サイズのパケットを受信することができます。一方、`raw_hid_send` はパケットを厳密に `RAW_EPSIZE` の長さで送信するため、長さ `RAW_EPSIZE` のデータを使う必要があります。
|
||||||
|
|
||||||
|
ホスト側での作業を進める前に、raw 対応のファームウェアを書き込むようにしてください。
|
||||||
|
|
||||||
|
## ホスト (Windows/macOS/Linux)
|
||||||
|
|
||||||
|
これは幾つかの掘り下げが必要になるため、より複雑な部分です。
|
||||||
|
|
||||||
|
ホストコンピュータを raw HID を使ってキーボードに接続するには、キーボードについての4つの情報が必要です。
|
||||||
|
|
||||||
|
1. Vendor ID
|
||||||
|
2. Product ID
|
||||||
|
3. Usage Page
|
||||||
|
4. Usage
|
||||||
|
|
||||||
|
前半の2つは、キーボードのメインディレクトリにあるキーボードの `config.h` で、`VENDOR_ID` と `PRODUCT_ID` で簡単に見つかります。
|
||||||
|
|
||||||
|
後半の2つは、キーボードのメインディレクトリにあるキーボードの `config.h` で、値を再定義することで上書きすることができます: `#define RAW_USAGE_PAGE 0xFF60` と `#define RAW_USAGE_ID 0x61`。
|
||||||
|
|
||||||
|
デフォルトでは、**Usage Page** は `0xFF60` で、**Usage** は `0x61` です。
|
||||||
|
|
||||||
|
### ホストの構築
|
||||||
|
|
||||||
|
独自に作成したくない場合は、利用可能な HID 実装ライブラリがある任意の言語を使ってホストを構築することができます。人気のある言語でよく使われるライブラリは以下の通りです:
|
||||||
|
|
||||||
|
* Node: [node-hid](https://github.com/node-hid/node-hid)。
|
||||||
|
* C: [hidapi](https://github.com/libusb/hidapi)。
|
||||||
|
* Java: [purejavahidapi](https://github.com/nyholku/purejavahidapi) と [hid4java](https://github.com/gary-rowe/hid4java)。
|
||||||
|
* Python: [pyhidapi](https://pypi.org/project/hid/)。
|
||||||
|
|
||||||
|
これは完全なクロスプラットフォームのリストではありませんが、最初に始めるのに十分なはずです。raw HID を使うための特別な要件は無いため、どの HID ライブラリでも動作するはずです。
|
||||||
|
|
||||||
|
これで、キーボードへの HID インタフェースを開くために必要な4つの情報全てが揃いました。必要なのは、ライブラリの利用可能な関数を使って ID パラメータを使ってデバイスを開くことだけです。
|
||||||
|
|
||||||
|
Vendor ID と Product ID はデバイスを開くために実際には必要ないことに注意してください。それらは接続した多くの HID デバイスから特定のデバイスをフィルターするためだけに使われます。多くのライブラリでは、代わりに製品名と製造元名を使ってデバイスを開くオプションがあります。`node-hid` が代表的な例です。これは USB ハブが組み込まれているデバイスや、同じ製品名または同じ製造元の複数のインタフェースがある特別な HID インタフェースで問題になります。Product ID と Vendor ID を合わせると単一のインタフェースの固有名を作成できるため、この問題を防げます。したがって、ライブラリで必要が無い場合でも、この問題を防ぐためにそれらを使うことをお勧めします。
|
||||||
|
ただし、Vendor ID や Product ID と異なり、Usage Page と Usage は通信を成功させるために必要です。
|
||||||
|
|
||||||
|
言うまでもなく、使っているライブラリに関係なく、終了したらインタフェースを必ず閉じる必要があります。オペレーティングシステムと特定の環境によっては、明示的に接続が閉じられていない場合、後で他のクライアントまたは同じクライアントの他のインスタンスに接続しなおした時に問題が発生する可能性があります。
|
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
[速記](https://en.wikipedia.org/wiki/Stenotype)は裁判所のレポート、字幕および耳が不自由な人のためのリアルタイムの文字起こしで最もよく使われる記述方法です。速記では単語はスペル、音声およびショートカット(短い)ストロークが混在する音節ごとに音節化されます。プロの速記者は、標準的なタイピングで通常見られる負担を掛けずに、はるかに少ないエラー(99.9%より高い精度)で、200-300 WPM に到達できます。
|
[速記](https://en.wikipedia.org/wiki/Stenotype)は裁判所のレポート、字幕および耳が不自由な人のためのリアルタイムの文字起こしで最もよく使われる記述方法です。速記では単語はスペル、音声およびショートカット(短い)ストロークが混在する音節ごとに音節化されます。プロの速記者は、標準的なタイピングで通常見られる負担を掛けずに、はるかに少ないエラー(99.9%より高い精度)で、200-300 WPM に到達できます。
|
||||||
|
|
||||||
[Open Steno Project](http://www.openstenoproject.org/)は、速記ストロークを単語とコマンドにリアルタイムに変換する Plover と呼ばれるオープンソースプログラムを構築しました。確立された辞書とサポートがあります。
|
[Open Steno Project](https://www.openstenoproject.org/)は、速記ストロークを単語とコマンドにリアルタイムに変換する Plover と呼ばれるオープンソースプログラムを構築しました。確立された辞書とサポートがあります。
|
||||||
|
|
||||||
## QWERTY キーボードを使った Plover :id=plover-with-qwerty-keyboard
|
## QWERTY キーボードを使った Plover :id=plover-with-qwerty-keyboard
|
||||||
|
|
||||||
@@ -57,7 +57,6 @@ void matrix_init_user() {
|
|||||||
## 速記の学習 :id=learning-stenography
|
## 速記の学習 :id=learning-stenography
|
||||||
|
|
||||||
* [Learn Plover!](https://sites.google.com/site/learnplover/)
|
* [Learn Plover!](https://sites.google.com/site/learnplover/)
|
||||||
* [QWERTY Steno](http://qwertysteno.com/Home/)
|
|
||||||
* [Steno Jig](https://joshuagrams.github.io/steno-jig/)
|
* [Steno Jig](https://joshuagrams.github.io/steno-jig/)
|
||||||
* Plover [Learning Stenography](https://github.com/openstenoproject/plover/wiki/Learning-Stenography) wiki のより多くのリソース
|
* Plover [Learning Stenography](https://github.com/openstenoproject/plover/wiki/Learning-Stenography) wiki のより多くのリソース
|
||||||
|
|
||||||
|
@@ -89,7 +89,7 @@ BOOTLOADER = caterina
|
|||||||
互換性のあるフラッシャ:
|
互換性のあるフラッシャ:
|
||||||
|
|
||||||
* [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (推奨の GUI)
|
* [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (推奨の GUI)
|
||||||
* avr109 を使った [avrdude](http://www.nongnu.org/avrdude/) / `:avrdude` (推奨のコマンドライン)
|
* avr109 を使った [avrdude](https://www.nongnu.org/avrdude/) / `:avrdude` (推奨のコマンドライン)
|
||||||
* [AVRDUDESS](https://github.com/zkemble/AVRDUDESS)
|
* [AVRDUDESS](https://github.com/zkemble/AVRDUDESS)
|
||||||
|
|
||||||
書き込み手順:
|
書き込み手順:
|
||||||
@@ -167,7 +167,7 @@ BOOTLOADER = USBasp
|
|||||||
互換性のあるフラッシャ:
|
互換性のあるフラッシャ:
|
||||||
|
|
||||||
* [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (推奨の GUI)
|
* [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (推奨の GUI)
|
||||||
* `usbasp` プログラマを使った [avrdude](http://www.nongnu.org/avrdude/)
|
* `usbasp` プログラマを使った [avrdude](https://www.nongnu.org/avrdude/)
|
||||||
* [AVRDUDESS](https://github.com/zkemble/AVRDUDESS)
|
* [AVRDUDESS](https://github.com/zkemble/AVRDUDESS)
|
||||||
|
|
||||||
書き込み手順:
|
書き込み手順:
|
||||||
|
@@ -11,15 +11,15 @@ GitHub は慣れていない人には少し注意が必要です - このガイ
|
|||||||
|
|
||||||
[QMK GitHub ページ](https://github.com/qmk/qmk_firmware)を開くと、右上に "Fork" というボタンが見えます:
|
[QMK GitHub ページ](https://github.com/qmk/qmk_firmware)を開くと、右上に "Fork" というボタンが見えます:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
あなたが組織の一員である場合は、どのアカウントにフォークするかを選択する必要があります。ほとんどの場合、あなたの個人のアカウントにフォークしたいでしょう。フォークが完了したら(しばらく時間が掛かる場合があります)、"Clone or Download" ボタンをクリックします:
|
あなたが組織の一員である場合は、どのアカウントにフォークするかを選択する必要があります。ほとんどの場合、あなたの個人のアカウントにフォークしたいでしょう。フォークが完了したら(しばらく時間が掛かる場合があります)、"Clone or Download" ボタンをクリックします:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
必ず "HTTPS" を選択し、リンクを選択してコピーします:
|
必ず "HTTPS" を選択し、リンクを選択してコピーします:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
ここから、`git clone --recurse-submodules ` をコマンドラインに入力し、リンクを貼り付けます:
|
ここから、`git clone --recurse-submodules ` をコマンドラインに入力し、リンクを貼り付けます:
|
||||||
|
|
||||||
@@ -61,10 +61,10 @@ To https://github.com/whoeveryouare/qmk_firmware.git
|
|||||||
|
|
||||||
あなたの変更は今では GitHub 上のフォークにあります - フォーク (`https://github.com/<whoeveryouare>/qmk_firmware`)に戻ると、"New Pull Request" ボタンをクリックすることで新しいプルリクエストを作成することができます:
|
あなたの変更は今では GitHub 上のフォークにあります - フォーク (`https://github.com/<whoeveryouare>/qmk_firmware`)に戻ると、"New Pull Request" ボタンをクリックすることで新しいプルリクエストを作成することができます:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
ここでは、コミットした内容を正確に確認することができます - 全て良いように見える場合は、"Create Pull Request" をクリックすることで最終的に承認することができます:
|
ここでは、コミットした内容を正確に確認することができます - 全て良いように見える場合は、"Create Pull Request" をクリックすることで最終的に承認することができます:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
サブミットの後で、私たちはあなたの変更について話し、変更を依頼し、最終的にそれを受け入れるでしょう!QMK に貢献してくれてありがとう :)
|
サブミットの後で、私たちはあなたの変更について話し、変更を依頼し、最終的にそれを受け入れるでしょう!QMK に貢献してくれてありがとう :)
|
||||||
|
@@ -9,11 +9,11 @@
|
|||||||
|
|
||||||
## 必要事項
|
## 必要事項
|
||||||
|
|
||||||
このリポジトリ内の `Vagrantfile` を使うには、[Vagrant](http://www.vagrantup.com/) およびサポートされるプロバイダがインストールされている必要があります:
|
このリポジトリ内の `Vagrantfile` を使うには、[Vagrant](https://www.vagrantup.com/) およびサポートされるプロバイダがインストールされている必要があります:
|
||||||
|
|
||||||
* [VirtualBox](https://www.virtualbox.org/) (バージョン 5.0.12 以降)
|
* [VirtualBox](https://www.virtualbox.org/) (バージョン 5.0.12 以降)
|
||||||
* 'Vagrant を使うために最もアクセスしやすいプラットフォーム' として販売
|
* 'Vagrant を使うために最もアクセスしやすいプラットフォーム' として販売
|
||||||
* [VMware Workstation](https://www.vmware.com/products/workstation) および [Vagrant VMware プラグイン](http://www.vagrantup.com/vmware)
|
* [VMware Workstation](https://www.vmware.com/products/workstation) および [Vagrant VMware プラグイン](https://www.vagrantup.com/vmware)
|
||||||
* (有料) VMware プラグインには、ライセンスされた VMware Workstation/Fusion のコピーが必要です。
|
* (有料) VMware プラグインには、ライセンスされた VMware Workstation/Fusion のコピーが必要です。
|
||||||
* [Docker](https://www.docker.com/)
|
* [Docker](https://www.docker.com/)
|
||||||
|
|
||||||
|
@@ -38,7 +38,7 @@ or open the directory in your favourite text editor.
|
|||||||
|
|
||||||
## `readme.md`
|
## `readme.md`
|
||||||
|
|
||||||
このファイルではキーボードに関する説明を記述します。[キーボード Readme テンプレート](ja/documentation_templates.md#keyboard-readmemd-template)に従って `readme.md` を記入して下さい。`readme.md` の上部に画像を配置することをお勧めします。画像は [Imgur](http://imgur.com) のような外部サービスを利用してください。
|
このファイルではキーボードに関する説明を記述します。[キーボード Readme テンプレート](ja/documentation_templates.md#keyboard-readmemd-template)に従って `readme.md` を記入して下さい。`readme.md` の上部に画像を配置することをお勧めします。画像は [Imgur](https://imgur.com) のような外部サービスを利用してください。
|
||||||
|
|
||||||
## `<keyboard>.c`
|
## `<keyboard>.c`
|
||||||
|
|
||||||
|
@@ -170,7 +170,7 @@ Clueboard は、サブフォルダをまとめるためとキーボードのリ
|
|||||||
|
|
||||||
リポジトリのサイズを小さく保つために、いくつかの例外を除いて、どの形式のバイナリファイルも受け入れないようになりました。外部の場所(<https://imgur.com>など)でホストして、`readme.md` でリンクすることをおすすめします。
|
リポジトリのサイズを小さく保つために、いくつかの例外を除いて、どの形式のバイナリファイルも受け入れないようになりました。外部の場所(<https://imgur.com>など)でホストして、`readme.md` でリンクすることをおすすめします。
|
||||||
|
|
||||||
ハードウェアのファイル(プレートやケース、PCB など)は [qmk.fm リポジトリ](https://github.com/qmk/qmk.fm)に提供でき、[qmk.fm](http://qmk.fm) で利用可能になります。ダウンロード出来るファイルは `/<keyboard>/`(名前は上記と同じ形式)に保存され、`http://qmk.fm/<keyboard>/` で提供されます。ページは `/_pages/<keyboard>/` から生成されて、同じ場所で提供されます( .mdファイルはJekyllを通して .htmlファイル変換されます)。`lets_split` ファイルを参照して下さい。
|
ハードウェアのファイル(プレートやケース、PCB など)は [qmk.fm リポジトリ](https://github.com/qmk/qmk.fm)に提供でき、[qmk.fm](https://qmk.fm) で利用可能になります。ダウンロード出来るファイルは `/<keyboard>/`(名前は上記と同じ形式)に保存され、`https://qmk.fm/<keyboard>/` で提供されます。ページは `/_pages/<keyboard>/` から生成されて、同じ場所で提供されます( .mdファイルはJekyllを通して .htmlファイル変換されます)。`lets_split` ファイルを参照して下さい。
|
||||||
|
|
||||||
## キーボードのデフォルト設定
|
## キーボードのデフォルト設定
|
||||||
|
|
||||||
@@ -213,7 +213,7 @@ QMK が提供する機能の量を考えれば、新しいユーザーが混乱
|
|||||||
|
|
||||||
## ライセンス
|
## ライセンス
|
||||||
|
|
||||||
QMK のコア部分は [GNU General Public License](https://www.gnu.org/licenses/licenses.en.html) でライセンスされます。AVR マイコン用のバイナリを提供する場合は、[GPLv2](https://www.gnu.org/licenses/old-licenses/gpl-2.0.html) か、[GPLv3](https://www.gnu.org/licenses/gpl.html) のどちらかから選択出来ます。ARM マイコン用のバイナリを提供する場合は、 [ChibiOS](http://www.chibios.org) の GPLv3 ライセンスに準拠するため、[GPL Version 3](https://www.gnu.org/licenses/gpl.html) を選択しなければいけません。
|
QMK のコア部分は [GNU General Public License](https://www.gnu.org/licenses/licenses.en.html) でライセンスされます。AVR マイコン用のバイナリを提供する場合は、[GPLv2](https://www.gnu.org/licenses/old-licenses/gpl-2.0.html) か、[GPLv3](https://www.gnu.org/licenses/gpl.html) のどちらかから選択出来ます。ARM マイコン用のバイナリを提供する場合は、 [ChibiOS](https://www.chibios.org) の GPLv3 ライセンスに準拠するため、[GPL Version 3](https://www.gnu.org/licenses/gpl.html) を選択しなければいけません。
|
||||||
|
|
||||||
[uGFX](https://ugfx.io) を使用している場合は、[uGFX License](https://ugfx.io/license.html) に準拠する必要があります。uGFX を利用したデバイスを販売するには個別に商用ライセンスを取得しなければいけません。
|
[uGFX](https://ugfx.io) を使用している場合は、[uGFX License](https://ugfx.io/license.html) に準拠する必要があります。uGFX を利用したデバイスを販売するには個別に商用ライセンスを取得しなければいけません。
|
||||||
|
|
||||||
|
@@ -100,5 +100,5 @@
|
|||||||
- [Wikipedia の記事](https://en.wikipedia.org/wiki/Keyboard_matrix_circuit)
|
- [Wikipedia の記事](https://en.wikipedia.org/wiki/Keyboard_matrix_circuit)
|
||||||
- [Deskthority の記事](https://deskthority.net/wiki/Keyboard_matrix)
|
- [Deskthority の記事](https://deskthority.net/wiki/Keyboard_matrix)
|
||||||
- [Dave Dribin による Keyboard Matrix Help (2000)](https://www.dribin.org/dave/keyboard/one_html/)
|
- [Dave Dribin による Keyboard Matrix Help (2000)](https://www.dribin.org/dave/keyboard/one_html/)
|
||||||
- [PCBheaven による How Key Matrices Works](http://pcbheaven.com/wikipages/How_Key_Matrices_Works/) (アニメーションの例)
|
- [PCBheaven による How Key Matrices Works](https://pcbheaven.com/wikipages/How_Key_Matrices_Works/) (アニメーションの例)
|
||||||
- [キーボードの仕組み - QMK ドキュメント](ja/how_keyboards_work.md)
|
- [キーボードの仕組み - QMK ドキュメント](ja/how_keyboards_work.md)
|
||||||
|
78
docs/ja/internals_defines.md
Normal file
78
docs/ja/internals_defines.md
Normal file
@@ -0,0 +1,78 @@
|
|||||||
|
# `defines` グループ {#group__defines}
|
||||||
|
|
||||||
|
## 概要
|
||||||
|
|
||||||
|
メンバー | 説明
|
||||||
|
--------------------------------|---------------------------------------------
|
||||||
|
`define `[`SYSEX_BEGIN`](#group__defines_1ga1a3c39bb790dda8a368c4247caabcf79) |
|
||||||
|
`define `[`SYSEX_END`](#group__defines_1ga753706d1d28e6f96d7caf1973e80feed) |
|
||||||
|
`define `[`MIDI_STATUSMASK`](#group__defines_1gab78a1c818a5f5dab7a8946543f126c69) |
|
||||||
|
`define `[`MIDI_CHANMASK`](#group__defines_1ga239edc0a6f8405d3a8f2804f1590b909) |
|
||||||
|
`define `[`MIDI_CC`](#group__defines_1ga45f116a1daab76b3c930c2cecfaef215) |
|
||||||
|
`define `[`MIDI_NOTEON`](#group__defines_1gafd416f27bf3590868c0c1f55c30be4c7) |
|
||||||
|
`define `[`MIDI_NOTEOFF`](#group__defines_1gabed24bea2d989fd655e2ef2ad0765adc) |
|
||||||
|
`define `[`MIDI_AFTERTOUCH`](#group__defines_1ga3a322d8cfd53576a2e167c1840551b0f) |
|
||||||
|
`define `[`MIDI_PITCHBEND`](#group__defines_1gabcc799504e8064679bca03f232223af4) |
|
||||||
|
`define `[`MIDI_PROGCHANGE`](#group__defines_1gaefb3f1595ffbb9db66b46c2c919a3d42) |
|
||||||
|
`define `[`MIDI_CHANPRESSURE`](#group__defines_1gaeb3281cc7fcd0daade8ed3d2dfc33dbe) |
|
||||||
|
`define `[`MIDI_CLOCK`](#group__defines_1gafa5e4e295aafd15ab7893344599b3b89) |
|
||||||
|
`define `[`MIDI_TICK`](#group__defines_1ga3b99408ff864613765d4c3c2ceb52aa7) |
|
||||||
|
`define `[`MIDI_START`](#group__defines_1ga8233631c85823aa546f932ad8975caa4) |
|
||||||
|
`define `[`MIDI_CONTINUE`](#group__defines_1gab24430f0081e27215b0da84dd0ee745c) |
|
||||||
|
`define `[`MIDI_STOP`](#group__defines_1ga3af9271d4b1f0d22904a0b055f48cf62) |
|
||||||
|
`define `[`MIDI_ACTIVESENSE`](#group__defines_1gacd88ed42dba52bb4b2052c5656362677) |
|
||||||
|
`define `[`MIDI_RESET`](#group__defines_1ga02947f30ca62dc332fdeb10c5868323b) |
|
||||||
|
`define `[`MIDI_TC_QUARTERFRAME`](#group__defines_1gaaa072f33590e236d1bfd8f28e833ae31) |
|
||||||
|
`define `[`MIDI_SONGPOSITION`](#group__defines_1ga412f6ed33a2150051374bee334ee1705) |
|
||||||
|
`define `[`MIDI_SONGSELECT`](#group__defines_1gafcab254838b028365ae0259729e72c4e) |
|
||||||
|
`define `[`MIDI_TUNEREQUEST`](#group__defines_1ga8100b907b8c0a84e58b1c53dcd9bd795) |
|
||||||
|
`define `[`SYSEX_EDUMANUFID`](#group__defines_1ga5ef855ed955b00a2239ca16afbeb164f) |
|
||||||
|
|
||||||
|
## メンバー
|
||||||
|
|
||||||
|
#### `define `[`SYSEX_BEGIN`](#group__defines_1ga1a3c39bb790dda8a368c4247caabcf79) {#group__defines_1ga1a3c39bb790dda8a368c4247caabcf79}
|
||||||
|
|
||||||
|
#### `define `[`SYSEX_END`](#group__defines_1ga753706d1d28e6f96d7caf1973e80feed) {#group__defines_1ga753706d1d28e6f96d7caf1973e80feed}
|
||||||
|
|
||||||
|
#### `define `[`MIDI_STATUSMASK`](#group__defines_1gab78a1c818a5f5dab7a8946543f126c69) {#group__defines_1gab78a1c818a5f5dab7a8946543f126c69}
|
||||||
|
|
||||||
|
#### `define `[`MIDI_CHANMASK`](#group__defines_1ga239edc0a6f8405d3a8f2804f1590b909) {#group__defines_1ga239edc0a6f8405d3a8f2804f1590b909}
|
||||||
|
|
||||||
|
#### `define `[`MIDI_CC`](#group__defines_1ga45f116a1daab76b3c930c2cecfaef215) {#group__defines_1ga45f116a1daab76b3c930c2cecfaef215}
|
||||||
|
|
||||||
|
#### `define `[`MIDI_NOTEON`](#group__defines_1gafd416f27bf3590868c0c1f55c30be4c7) {#group__defines_1gafd416f27bf3590868c0c1f55c30be4c7}
|
||||||
|
|
||||||
|
#### `define `[`MIDI_NOTEOFF`](#group__defines_1gabed24bea2d989fd655e2ef2ad0765adc) {#group__defines_1gabed24bea2d989fd655e2ef2ad0765adc}
|
||||||
|
|
||||||
|
#### `define `[`MIDI_AFTERTOUCH`](#group__defines_1ga3a322d8cfd53576a2e167c1840551b0f) {#group__defines_1ga3a322d8cfd53576a2e167c1840551b0f}
|
||||||
|
|
||||||
|
#### `define `[`MIDI_PITCHBEND`](#group__defines_1gabcc799504e8064679bca03f232223af4) {#group__defines_1gabcc799504e8064679bca03f232223af4}
|
||||||
|
|
||||||
|
#### `define `[`MIDI_PROGCHANGE`](#group__defines_1gaefb3f1595ffbb9db66b46c2c919a3d42) {#group__defines_1gaefb3f1595ffbb9db66b46c2c919a3d42}
|
||||||
|
|
||||||
|
#### `define `[`MIDI_CHANPRESSURE`](#group__defines_1gaeb3281cc7fcd0daade8ed3d2dfc33dbe) {#group__defines_1gaeb3281cc7fcd0daade8ed3d2dfc33dbe}
|
||||||
|
|
||||||
|
#### `define `[`MIDI_CLOCK`](#group__defines_1gafa5e4e295aafd15ab7893344599b3b89) {#group__defines_1gafa5e4e295aafd15ab7893344599b3b89}
|
||||||
|
|
||||||
|
#### `define `[`MIDI_TICK`](#group__defines_1ga3b99408ff864613765d4c3c2ceb52aa7) {#group__defines_1ga3b99408ff864613765d4c3c2ceb52aa7}
|
||||||
|
|
||||||
|
#### `define `[`MIDI_START`](#group__defines_1ga8233631c85823aa546f932ad8975caa4) {#group__defines_1ga8233631c85823aa546f932ad8975caa4}
|
||||||
|
|
||||||
|
#### `define `[`MIDI_CONTINUE`](#group__defines_1gab24430f0081e27215b0da84dd0ee745c) {#group__defines_1gab24430f0081e27215b0da84dd0ee745c}
|
||||||
|
|
||||||
|
#### `define `[`MIDI_STOP`](#group__defines_1ga3af9271d4b1f0d22904a0b055f48cf62) {#group__defines_1ga3af9271d4b1f0d22904a0b055f48cf62}
|
||||||
|
|
||||||
|
#### `define `[`MIDI_ACTIVESENSE`](#group__defines_1gacd88ed42dba52bb4b2052c5656362677) {#group__defines_1gacd88ed42dba52bb4b2052c5656362677}
|
||||||
|
|
||||||
|
#### `define `[`MIDI_RESET`](#group__defines_1ga02947f30ca62dc332fdeb10c5868323b) {#group__defines_1ga02947f30ca62dc332fdeb10c5868323b}
|
||||||
|
|
||||||
|
#### `define `[`MIDI_TC_QUARTERFRAME`](#group__defines_1gaaa072f33590e236d1bfd8f28e833ae31) {#group__defines_1gaaa072f33590e236d1bfd8f28e833ae31}
|
||||||
|
|
||||||
|
#### `define `[`MIDI_SONGPOSITION`](#group__defines_1ga412f6ed33a2150051374bee334ee1705) {#group__defines_1ga412f6ed33a2150051374bee334ee1705}
|
||||||
|
|
||||||
|
#### `define `[`MIDI_SONGSELECT`](#group__defines_1gafcab254838b028365ae0259729e72c4e) {#group__defines_1gafcab254838b028365ae0259729e72c4e}
|
||||||
|
|
||||||
|
#### `define `[`MIDI_TUNEREQUEST`](#group__defines_1ga8100b907b8c0a84e58b1c53dcd9bd795) {#group__defines_1ga8100b907b8c0a84e58b1c53dcd9bd795}
|
||||||
|
|
||||||
|
#### `define `[`SYSEX_EDUMANUFID`](#group__defines_1ga5ef855ed955b00a2239ca16afbeb164f) {#group__defines_1ga5ef855ed955b00a2239ca16afbeb164f}
|
||||||
|
|
@@ -25,4 +25,4 @@ QMK には、マイクロコントローラに依存しない GPIO 制御抽象
|
|||||||
|
|
||||||
## 高度な設定 :id=advanced-settings
|
## 高度な設定 :id=advanced-settings
|
||||||
|
|
||||||
各マイクロコントローラは GPIO に関して複数の高度な設定を持つことができます。この抽象レイヤーは、アーキテクチャー固有の機能の使用法を制限しません。上級ユーザは、目的のデバイスのデータシートを参照し、必要なライブラリを含めてください。AVR については、標準 avr/io.h ライブラリが使われます; STM32 については ChibiOS [PAL ライブラリ](http://chibios.sourceforge.net/docs3/hal/group___p_a_l.html)が使われます。
|
各マイクロコントローラは GPIO に関して複数の高度な設定を持つことができます。この抽象レイヤーは、アーキテクチャー固有の機能の使用法を制限しません。上級ユーザは、目的のデバイスのデータシートを参照し、必要なライブラリを含めてください。AVR については、標準 avr/io.h ライブラリが使われます; STM32 については ChibiOS [PAL ライブラリ](https://chibios.sourceforge.net/docs3/hal/group___p_a_l.html)が使われます。
|
||||||
|
148
docs/ja/internals_midi_device.md
Normal file
148
docs/ja/internals_midi_device.md
Normal file
@@ -0,0 +1,148 @@
|
|||||||
|
# `midi_device` グループ {#group__midi__device}
|
||||||
|
|
||||||
|
<!---
|
||||||
|
original document: 0.10.9:docs/internals_midi_device.md
|
||||||
|
git diff 0.10.9 HEAD -- docs/internals_midi_device.md | cat
|
||||||
|
-->
|
||||||
|
|
||||||
|
独自の MIDI デバイスを実装する時に、関数を使います。
|
||||||
|
|
||||||
|
実際にデバイスを介してバイトを送信するために、送信関数を設定します。このメソッドは、このデバイスで例えば midi_send_cc のような送信関数を呼ぶ時に呼ばれます。
|
||||||
|
|
||||||
|
midi_device_input を使ってデバイスからの入力データを処理し、それをデバイスに関連付けられたコールバックで渡します。
|
||||||
|
|
||||||
|
デバイスのプロセス関数の最初に呼び出される関数が必要な場合、midi_device_set_pre_input_process_func を使います。通常、入力をポーリングして midi_device_input に渡します。
|
||||||
|
|
||||||
|
## 概要
|
||||||
|
|
||||||
|
メンバー | 説明
|
||||||
|
--------------------------------|---------------------------------------------
|
||||||
|
`define `[`MIDI_INPUT_QUEUE_LENGTH`](#group__midi__device_1ga4aaa419caebdca2bbdfc1331e79781a8) |
|
||||||
|
`enum `[`input_state_t`](#group__midi__device_1gac203e877d3df4275ceb8e7180a61f621) |
|
||||||
|
`public void `[`midi_device_input`](#group__midi__device_1gad8d3db8eb35d9cfa51ef036a0a9d70db)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t cnt,uint8_t * input)` | 入力バイトを処理します。この関数はバイトを解析し、指定されたデバイスに関連する適切なコールバックを呼びます。この関数は、カスタムデバイスを作成していて、MIDI 入力が必要な場合に使います。
|
||||||
|
`public void `[`midi_device_set_send_func`](#group__midi__device_1ga59f5a46bdd4452f186cc73d9e96d4673)`(`[`MidiDevice`](#struct__midi__device)` * device,midi_var_byte_func_t send_func)` | 出力データバイトの送信に使われるコールバック関数を設定します。これは、カスタムデバイスを作成している場合のみ使われます。ロックを気にすることなく様々な MIDI 送信関数を呼び出すことができるように、コールバック関数で割り込みを無効にすることができます。
|
||||||
|
`public void `[`midi_device_set_pre_input_process_func`](#group__midi__device_1ga4de0841b87c04fc23cb56b6451f33b69)`(`[`MidiDevice`](#struct__midi__device)` * device,midi_no_byte_func_t pre_process_func)` | midi_device_process 呼び出しの最初に呼ばれるコールバックを設定します。これは入力データをポーリングし、midi_device_input 関数を介してデータを送信できます。カスタムデバイスを作成している場合のみ、これを使う可能性があります。
|
||||||
|
`struct `[`_midi_device`](docs/api_midi_device.md#struct__midi__device) | この構造体は、MIDI デバイスの入出力関数と処理データを表します。
|
||||||
|
|
||||||
|
## メンバー
|
||||||
|
|
||||||
|
#### `define `[`MIDI_INPUT_QUEUE_LENGTH`](#group__midi__device_1ga4aaa419caebdca2bbdfc1331e79781a8) {#group__midi__device_1ga4aaa419caebdca2bbdfc1331e79781a8}
|
||||||
|
|
||||||
|
#### `enum `[`input_state_t`](#group__midi__device_1gac203e877d3df4275ceb8e7180a61f621) {#group__midi__device_1gac203e877d3df4275ceb8e7180a61f621}
|
||||||
|
|
||||||
|
値 | 説明
|
||||||
|
--------------------------------|---------------------------------------------
|
||||||
|
IDLE |
|
||||||
|
ONE_BYTE_MESSAGE |
|
||||||
|
TWO_BYTE_MESSAGE |
|
||||||
|
THREE_BYTE_MESSAGE |
|
||||||
|
SYSEX_MESSAGE |
|
||||||
|
|
||||||
|
#### `public void `[`midi_device_input`](#group__midi__device_1gad8d3db8eb35d9cfa51ef036a0a9d70db)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t cnt,uint8_t * input)` {#group__midi__device_1gad8d3db8eb35d9cfa51ef036a0a9d70db}
|
||||||
|
|
||||||
|
入力バイトを処理します。この関数はバイトを解析し、指定されたデバイスに関連する適切なコールバックを呼びます。この関数は、カスタムデバイスを作成していて、MIDI 入力が必要な場合に使います。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `device` 入力を関連付ける MIDI デバイス
|
||||||
|
|
||||||
|
* `cnt` 処理中のバイト数
|
||||||
|
|
||||||
|
* `input` 処理するバイトデータ
|
||||||
|
|
||||||
|
#### `public void `[`midi_device_set_send_func`](#group__midi__device_1ga59f5a46bdd4452f186cc73d9e96d4673)`(`[`MidiDevice`](#struct__midi__device)` * device,midi_var_byte_func_t send_func)` {#group__midi__device_1ga59f5a46bdd4452f186cc73d9e96d4673}
|
||||||
|
|
||||||
|
出力データバイトの送信に使われるコールバック関数を設定します。これは、カスタムデバイスを作成している場合のみ使われます。ロックを気にすることなく様々な MIDI 送信関数を呼び出すことができるように、コールバック関数で割り込みを無効にすることができます。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `device` このコールバックを関連付ける MIDI デバイス
|
||||||
|
|
||||||
|
* `send_func` 送信を行うコールバック関数
|
||||||
|
|
||||||
|
#### `public void `[`midi_device_set_pre_input_process_func`](#group__midi__device_1ga4de0841b87c04fc23cb56b6451f33b69)`(`[`MidiDevice`](#struct__midi__device)` * device,midi_no_byte_func_t pre_process_func)` {#group__midi__device_1ga4de0841b87c04fc23cb56b6451f33b69}
|
||||||
|
|
||||||
|
midi_device_process 呼び出しの最初に呼ばれるコールバックを設定します。これは入力データをポーリングし、midi_device_input 関数を介してデータを送信できます。カスタムデバイスを作成している場合のみ、これを使う可能性があります。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `device` このコールバックを関連付ける MIDI デバイス
|
||||||
|
|
||||||
|
* `midi_no_byte_func_t` 実際のコールバック関数
|
||||||
|
|
||||||
|
# `_midi_device` 構造体 {#struct__midi__device}
|
||||||
|
|
||||||
|
この構造体は、MIDI デバイスの入出力関数と処理データを表します。
|
||||||
|
|
||||||
|
デバイスは、実際の物理デバイス [シリアルポート、USB ポート]、または仮想デバイスを表すことができます。この構造体を直接変更する必要はありません。
|
||||||
|
|
||||||
|
## 概要
|
||||||
|
|
||||||
|
| メンバー | 説明
|
||||||
|
--------------------------------|---------------------------------------------
|
||||||
|
`public midi_var_byte_func_t `[`send_func`](docs/api_midi_device.md#struct__midi__device_1a25d4c94b4bbccd5b98f1032b469f3ff9) |
|
||||||
|
`public midi_three_byte_func_t `[`input_cc_callback`](docs/api_midi_device.md#struct__midi__device_1a6da5236c1bc73877728df92d213a78d1) |
|
||||||
|
`public midi_three_byte_func_t `[`input_noteon_callback`](docs/api_midi_device.md#struct__midi__device_1aa10b15cf1a7fb825a5df0d2abbe34a1c) |
|
||||||
|
`public midi_three_byte_func_t `[`input_noteoff_callback`](docs/api_midi_device.md#struct__midi__device_1aaf290043078534d3a5a0ea4c840eba84) |
|
||||||
|
`public midi_three_byte_func_t `[`input_aftertouch_callback`](docs/api_midi_device.md#struct__midi__device_1acb0b4901c545cec4b28b126f2d8c315f) |
|
||||||
|
`public midi_three_byte_func_t `[`input_pitchbend_callback`](docs/api_midi_device.md#struct__midi__device_1a305fea672caeb996f2233bf8cd2bef18) |
|
||||||
|
`public midi_three_byte_func_t `[`input_songposition_callback`](docs/api_midi_device.md#struct__midi__device_1a5f3f13638b3fef3fc561ed1bf301d586) |
|
||||||
|
`public midi_two_byte_func_t `[`input_progchange_callback`](docs/api_midi_device.md#struct__midi__device_1adaf1da617c9a10a9dcad00ab1959d3da) |
|
||||||
|
`public midi_two_byte_func_t `[`input_chanpressure_callback`](docs/api_midi_device.md#struct__midi__device_1ab7ca2925c539915d43974eff604d85f7) |
|
||||||
|
`public midi_two_byte_func_t `[`input_songselect_callback`](docs/api_midi_device.md#struct__midi__device_1a89bed8a5a55376120cfc0a62b42f057f) |
|
||||||
|
`public midi_two_byte_func_t `[`input_tc_quarterframe_callback`](docs/api_midi_device.md#struct__midi__device_1ad9813e75d22e284f9f65a907d20600f0) |
|
||||||
|
`public midi_one_byte_func_t `[`input_realtime_callback`](docs/api_midi_device.md#struct__midi__device_1a9448eba4afb7e43650434748db3777be) |
|
||||||
|
`public midi_one_byte_func_t `[`input_tunerequest_callback`](docs/api_midi_device.md#struct__midi__device_1a0cb8fd53e00cf1d4202d4fa04d038e8d) |
|
||||||
|
`public midi_sysex_func_t `[`input_sysex_callback`](docs/api_midi_device.md#struct__midi__device_1afff9a0ce641762aaef24c1e6953ec9a2) |
|
||||||
|
`public midi_var_byte_func_t `[`input_fallthrough_callback`](docs/api_midi_device.md#struct__midi__device_1abb974ec6d734001b4a0e370f292be503) |
|
||||||
|
`public midi_var_byte_func_t `[`input_catchall_callback`](docs/api_midi_device.md#struct__midi__device_1aae0d535129d4fd650edc98eb3f7584f8) |
|
||||||
|
`public midi_no_byte_func_t `[`pre_input_process_callback`](docs/api_midi_device.md#struct__midi__device_1aeb0bb8923d66c23d874e177dc4265754) |
|
||||||
|
`public uint8_t `[`input_buffer`](docs/api_midi_device.md#struct__midi__device_1a7c5684857d6af4ebc4dc12da27bd6b2a) |
|
||||||
|
`public input_state_t `[`input_state`](docs/api_midi_device.md#struct__midi__device_1a69a687d2d1c449ec15a11c07a5722e39) |
|
||||||
|
`public uint16_t `[`input_count`](docs/api_midi_device.md#struct__midi__device_1a68dea8e7b6151e89c85c95caa612ee5d) |
|
||||||
|
`public uint8_t `[`input_queue_data`](docs/api_midi_device.md#struct__midi__device_1ada41de021135dc423abedcbb30f366ff) |
|
||||||
|
`public `[`byteQueue_t`](#structbyte_queue__t)` `[`input_queue`](#struct__midi__device_1a49c8538a8a02193c58e28a56eb695d8f) |
|
||||||
|
|
||||||
|
## メンバー
|
||||||
|
|
||||||
|
#### `public midi_var_byte_func_t `[`send_func`](docs/api_midi_device.md#struct__midi__device_1a25d4c94b4bbccd5b98f1032b469f3ff9) {#struct__midi__device_1a25d4c94b4bbccd5b98f1032b469f3ff9}
|
||||||
|
|
||||||
|
#### `public midi_three_byte_func_t `[`input_cc_callback`](docs/api_midi_device.md#struct__midi__device_1a6da5236c1bc73877728df92d213a78d1) {#struct__midi__device_1a6da5236c1bc73877728df92d213a78d1}
|
||||||
|
|
||||||
|
#### `public midi_three_byte_func_t `[`input_noteon_callback`](docs/api_midi_device.md#struct__midi__device_1aa10b15cf1a7fb825a5df0d2abbe34a1c) {#struct__midi__device_1aa10b15cf1a7fb825a5df0d2abbe34a1c}
|
||||||
|
|
||||||
|
#### `public midi_three_byte_func_t `[`input_noteoff_callback`](docs/api_midi_device.md#struct__midi__device_1aaf290043078534d3a5a0ea4c840eba84) {#struct__midi__device_1aaf290043078534d3a5a0ea4c840eba84}
|
||||||
|
|
||||||
|
#### `public midi_three_byte_func_t `[`input_aftertouch_callback`](docs/api_midi_device.md#struct__midi__device_1acb0b4901c545cec4b28b126f2d8c315f) {#struct__midi__device_1acb0b4901c545cec4b28b126f2d8c315f}
|
||||||
|
|
||||||
|
#### `public midi_three_byte_func_t `[`input_pitchbend_callback`](docs/api_midi_device.md#struct__midi__device_1a305fea672caeb996f2233bf8cd2bef18) {#struct__midi__device_1a305fea672caeb996f2233bf8cd2bef18}
|
||||||
|
|
||||||
|
#### `public midi_three_byte_func_t `[`input_songposition_callback`](docs/api_midi_device.md#struct__midi__device_1a5f3f13638b3fef3fc561ed1bf301d586) {#struct__midi__device_1a5f3f13638b3fef3fc561ed1bf301d586}
|
||||||
|
|
||||||
|
#### `public midi_two_byte_func_t `[`input_progchange_callback`](docs/api_midi_device.md#struct__midi__device_1adaf1da617c9a10a9dcad00ab1959d3da) {#struct__midi__device_1adaf1da617c9a10a9dcad00ab1959d3da}
|
||||||
|
|
||||||
|
#### `public midi_two_byte_func_t `[`input_chanpressure_callback`](docs/api_midi_device.md#struct__midi__device_1ab7ca2925c539915d43974eff604d85f7) {#struct__midi__device_1ab7ca2925c539915d43974eff604d85f7}
|
||||||
|
|
||||||
|
#### `public midi_two_byte_func_t `[`input_songselect_callback`](docs/api_midi_device.md#struct__midi__device_1a89bed8a5a55376120cfc0a62b42f057f) {#struct__midi__device_1a89bed8a5a55376120cfc0a62b42f057f}
|
||||||
|
|
||||||
|
#### `public midi_two_byte_func_t `[`input_tc_quarterframe_callback`](docs/api_midi_device.md#struct__midi__device_1ad9813e75d22e284f9f65a907d20600f0) {#struct__midi__device_1ad9813e75d22e284f9f65a907d20600f0}
|
||||||
|
|
||||||
|
#### `public midi_one_byte_func_t `[`input_realtime_callback`](docs/api_midi_device.md#struct__midi__device_1a9448eba4afb7e43650434748db3777be) {#struct__midi__device_1a9448eba4afb7e43650434748db3777be}
|
||||||
|
|
||||||
|
#### `public midi_one_byte_func_t `[`input_tunerequest_callback`](docs/api_midi_device.md#struct__midi__device_1a0cb8fd53e00cf1d4202d4fa04d038e8d) {#struct__midi__device_1a0cb8fd53e00cf1d4202d4fa04d038e8d}
|
||||||
|
|
||||||
|
#### `public midi_sysex_func_t `[`input_sysex_callback`](docs/api_midi_device.md#struct__midi__device_1afff9a0ce641762aaef24c1e6953ec9a2) {#struct__midi__device_1afff9a0ce641762aaef24c1e6953ec9a2}
|
||||||
|
|
||||||
|
#### `public midi_var_byte_func_t `[`input_fallthrough_callback`](docs/api_midi_device.md#struct__midi__device_1abb974ec6d734001b4a0e370f292be503) {#struct__midi__device_1abb974ec6d734001b4a0e370f292be503}
|
||||||
|
|
||||||
|
#### `public midi_var_byte_func_t `[`input_catchall_callback`](docs/api_midi_device.md#struct__midi__device_1aae0d535129d4fd650edc98eb3f7584f8) {#struct__midi__device_1aae0d535129d4fd650edc98eb3f7584f8}
|
||||||
|
|
||||||
|
#### `public midi_no_byte_func_t `[`pre_input_process_callback`](docs/api_midi_device.md#struct__midi__device_1aeb0bb8923d66c23d874e177dc4265754) {#struct__midi__device_1aeb0bb8923d66c23d874e177dc4265754}
|
||||||
|
|
||||||
|
#### `public uint8_t `[`input_buffer`](docs/api_midi_device.md#struct__midi__device_1a7c5684857d6af4ebc4dc12da27bd6b2a) {#struct__midi__device_1a7c5684857d6af4ebc4dc12da27bd6b2a}
|
||||||
|
|
||||||
|
#### `public input_state_t `[`input_state`](docs/api_midi_device.md#struct__midi__device_1a69a687d2d1c449ec15a11c07a5722e39) {#struct__midi__device_1a69a687d2d1c449ec15a11c07a5722e39}
|
||||||
|
|
||||||
|
#### `public uint16_t `[`input_count`](docs/api_midi_device.md#struct__midi__device_1a68dea8e7b6151e89c85c95caa612ee5d) {#struct__midi__device_1a68dea8e7b6151e89c85c95caa612ee5d}
|
||||||
|
|
||||||
|
#### `public uint8_t `[`input_queue_data`](docs/api_midi_device.md#struct__midi__device_1ada41de021135dc423abedcbb30f366ff) {#struct__midi__device_1ada41de021135dc423abedcbb30f366ff}
|
||||||
|
|
||||||
|
#### `public `[`byteQueue_t`](#structbyte_queue__t)` `[`input_queue`](#struct__midi__device_1a49c8538a8a02193c58e28a56eb695d8f) {#struct__midi__device_1a49c8538a8a02193c58e28a56eb695d8f}
|
||||||
|
|
36
docs/ja/internals_midi_device_setup_process.md
Normal file
36
docs/ja/internals_midi_device_setup_process.md
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
# `midi_device_setup_process` グループ {#group__midi__device__setup__process}
|
||||||
|
|
||||||
|
<!---
|
||||||
|
original document: 0.10.9:docs/internals_midi_device_setup_process.md
|
||||||
|
git diff 0.10.9 HEAD -- docs/internals_midi_device_setup_process.md | cat
|
||||||
|
-->
|
||||||
|
|
||||||
|
これらは、デバイスを初期化して実行するために使う必要があるメソッドです。
|
||||||
|
|
||||||
|
## 概要
|
||||||
|
|
||||||
|
メンバー | 説明
|
||||||
|
--------------------------------|---------------------------------------------
|
||||||
|
`public void `[`midi_device_init`](#group__midi__device__setup__process_1gaf29deddc94ea98a59daa0bde1aefd9d9)`(`[`MidiDevice`](#struct__midi__device)` * device)` | デバイスを初期化します。
|
||||||
|
`public void `[`midi_device_process`](#group__midi__device__setup__process_1gaa3d5993d0e998a1b59bbf5ab9c7b492b)`(`[`MidiDevice`](#struct__midi__device)` * device)` | 入力データを処理します。
|
||||||
|
|
||||||
|
## メンバー
|
||||||
|
|
||||||
|
#### `public void `[`midi_device_init`](#group__midi__device__setup__process_1gaf29deddc94ea98a59daa0bde1aefd9d9)`(`[`MidiDevice`](#struct__midi__device)` * device)` {#group__midi__device__setup__process_1gaf29deddc94ea98a59daa0bde1aefd9d9}
|
||||||
|
|
||||||
|
デバイスを初期化します。
|
||||||
|
|
||||||
|
問題のデバイスを使う前にこれを呼び出す必要があります。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `device` 初期化するデバイス
|
||||||
|
|
||||||
|
#### `public void `[`midi_device_process`](#group__midi__device__setup__process_1gaa3d5993d0e998a1b59bbf5ab9c7b492b)`(`[`MidiDevice`](#struct__midi__device)` * device)` {#group__midi__device__setup__process_1gaa3d5993d0e998a1b59bbf5ab9c7b492b}
|
||||||
|
|
||||||
|
入力データを処理します。
|
||||||
|
|
||||||
|
このメソッドは入力処理を駆動します。入力コールバックが呼び出されることが予想される場合は、このメソッドを頻繁に呼び出す必要があります。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `device` 処理するデバイス
|
||||||
|
|
59
docs/ja/internals_midi_util.md
Normal file
59
docs/ja/internals_midi_util.md
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
# `midi_util` グループ {#group__midi__util}
|
||||||
|
|
||||||
|
<!---
|
||||||
|
original document: 0.10.9:docs/internals_midi_util.md
|
||||||
|
git diff 0.10.9 HEAD -- docs/internals_midi_util.md | cat
|
||||||
|
-->
|
||||||
|
|
||||||
|
## 概要
|
||||||
|
|
||||||
|
| メンバー | 説明
|
||||||
|
--------------------------------|---------------------------------------------
|
||||||
|
| `enum `[`midi_packet_length_t`](#group__midi__util_1gae29ff56aee2b430ffe53933b97e5e79e) | 可能なパケット長の値の列挙型。
|
||||||
|
| `public bool `[`midi_is_statusbyte`](#group__midi__util_1ga12e3b42ff9cbb4b4f2bc455fc8743ee5)`(uint8_t theByte)` | 指定されたバイトがステータスバイトであるかどうかを検査します。
|
||||||
|
| `public bool `[`midi_is_realtime`](#group__midi__util_1gad2f52c363e34a8000d80c983c324e2d7)`(uint8_t theByte)` | 指定されたバイトがリアルタイムメッセージであるかどうかを検査します。
|
||||||
|
| `public `[`midi_packet_length_t`](#group__midi__util_1gae29ff56aee2b430ffe53933b97e5e79e)` `[`midi_packet_length`](#group__midi__util_1gaa168b43af6ae9de0debce1625e4b8175)`(uint8_t status)` | 指定されたステータスバイトに関連付けられたパケットの長さを調べます。
|
||||||
|
|
||||||
|
## メンバー
|
||||||
|
|
||||||
|
#### `enum `[`midi_packet_length_t`](#group__midi__util_1gae29ff56aee2b430ffe53933b97e5e79e) {#group__midi__util_1gae29ff56aee2b430ffe53933b97e5e79e}
|
||||||
|
|
||||||
|
| 値 | 説明
|
||||||
|
--------------------------------|---------------------------------------------
|
||||||
|
UNDEFINED |
|
||||||
|
ONE |
|
||||||
|
TWO |
|
||||||
|
THREE |
|
||||||
|
|
||||||
|
可能なパケット長の値の列挙型。
|
||||||
|
|
||||||
|
#### `public bool `[`midi_is_statusbyte`](#group__midi__util_1ga12e3b42ff9cbb4b4f2bc455fc8743ee5)`(uint8_t theByte)` {#group__midi__util_1ga12e3b42ff9cbb4b4f2bc455fc8743ee5}
|
||||||
|
|
||||||
|
指定されたバイトがステータスバイトであるかどうかを検査します。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `theByte` 検査するバイト
|
||||||
|
|
||||||
|
#### 返り値
|
||||||
|
指定されたバイトが MIDI ステータスバイトの場合は true
|
||||||
|
|
||||||
|
#### `public bool `[`midi_is_realtime`](#group__midi__util_1gad2f52c363e34a8000d80c983c324e2d7)`(uint8_t theByte)` {#group__midi__util_1gad2f52c363e34a8000d80c983c324e2d7}
|
||||||
|
|
||||||
|
指定されたバイトがリアルタイムメッセージであるかどうかを検査します。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `theByte` 検査するバイト
|
||||||
|
|
||||||
|
#### 返り値
|
||||||
|
リアルタイムメッセージの場合は true、それ以外の場合は false
|
||||||
|
|
||||||
|
#### `public `[`midi_packet_length_t`](#group__midi__util_1gae29ff56aee2b430ffe53933b97e5e79e)` `[`midi_packet_length`](#group__midi__util_1gaa168b43af6ae9de0debce1625e4b8175)`(uint8_t status)` {#group__midi__util_1gaa168b43af6ae9de0debce1625e4b8175}
|
||||||
|
|
||||||
|
指定されたステータスバイトに関連付けられたパケットの長さを調べます。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `status` ステータスバイト
|
||||||
|
|
||||||
|
#### 返り値
|
||||||
|
パケットの長さ。バイトがステータスバイトではない場合、あるいは sysex ステータスバイトの場合は、UNDEFINED を返します。
|
||||||
|
|
246
docs/ja/internals_send_functions.md
Normal file
246
docs/ja/internals_send_functions.md
Normal file
@@ -0,0 +1,246 @@
|
|||||||
|
# `send_functions` グループ {#group__send__functions}
|
||||||
|
|
||||||
|
<!---
|
||||||
|
original document: 0.10.9:docs/internals_send_functions.md
|
||||||
|
git diff 0.10.9 HEAD -- docs/internals_send_functions.md | cat
|
||||||
|
-->
|
||||||
|
|
||||||
|
これらは、デバイスを介して MIDI データを送信するために使う関数です。
|
||||||
|
|
||||||
|
## 概要
|
||||||
|
|
||||||
|
メンバー | 説明
|
||||||
|
--------------------------------|---------------------------------------------
|
||||||
|
`public void `[`midi_send_cc`](#group__send__functions_1gaaf884811c92df405ca8fe1a00082f960)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t chan,uint8_t num,uint8_t val)` | 指定されたデバイスを介して、コントロールチェンジメッセージを送信します。
|
||||||
|
`public void `[`midi_send_noteon`](#group__send__functions_1ga467bcf46dbf03ec269ce565b46bc2775)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t chan,uint8_t num,uint8_t vel)` | 指定されたデバイスを介してノートオンメッセージを送信します。
|
||||||
|
`public void `[`midi_send_noteoff`](#group__send__functions_1gaedb7d8805425eef5d47d57ddcb4c7a49)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t chan,uint8_t num,uint8_t vel)` | 指定されたデバイスを介してノートオフメッセージを送信します。
|
||||||
|
`public void `[`midi_send_aftertouch`](#group__send__functions_1ga0014847571317a0e34b2ef46a6bc584f)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t chan,uint8_t note_num,uint8_t amt)` | 指定されたデバイスを介してアフタータッチメッセージを送信します。
|
||||||
|
`public void `[`midi_send_pitchbend`](#group__send__functions_1gae5a4a1e71611e7534be80af9ce3d3491)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t chan,int16_t amt)` | 指定されたデバイスを介してピッチベンドメッセージを送信します。
|
||||||
|
`public void `[`midi_send_programchange`](#group__send__functions_1ga7b15588ef25e5e1ff09c2afc3151ce86)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t chan,uint8_t num)` | 指定されたデバイスを介してプログラムチェンジメッセージを送信します。
|
||||||
|
`public void `[`midi_send_channelpressure`](#group__send__functions_1gaf23e69fdf812e89c0036f51f88ab2e1b)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t chan,uint8_t amt)` | 指定されたデバイスを介してチャンネルプレッシャーメッセージを送信します。
|
||||||
|
`public void `[`midi_send_clock`](#group__send__functions_1ga4e1b11a7cdb0875f6e03ce7c79c581aa)`(`[`MidiDevice`](#struct__midi__device)` * device)` | 指定されたデバイスを介してクロックメッセージを送信します。
|
||||||
|
`public void `[`midi_send_tick`](#group__send__functions_1ga2b43c7d433d940c5b907595aac947972)`(`[`MidiDevice`](#struct__midi__device)` * device)` | 指定されたデバイスを介してティックメッセージを送信します。
|
||||||
|
`public void `[`midi_send_start`](#group__send__functions_1ga1569749a8d58ccc56789289d7c7245cc)`(`[`MidiDevice`](#struct__midi__device)` * device)` | 指定されたデバイスを介してスタートメッセージを送信します。
|
||||||
|
`public void `[`midi_send_continue`](#group__send__functions_1gaed5dc29d754a27372e89ab8bc20ee120)`(`[`MidiDevice`](#struct__midi__device)` * device)` | 指定されたデバイスを介してコンティニューメッセージを送信します。
|
||||||
|
`public void `[`midi_send_stop`](#group__send__functions_1ga026e1a620276cb653ac501aa0d12a988)`(`[`MidiDevice`](#struct__midi__device)` * device)` | 指定されたデバイスを介してストップメッセージを送信します。
|
||||||
|
`public void `[`midi_send_activesense`](#group__send__functions_1ga9b6e4c6ce4719d2604187b325620db37)`(`[`MidiDevice`](#struct__midi__device)` * device)` | 指定されたデバイスを介してアクティブセンスメッセージを送信します。
|
||||||
|
`public void `[`midi_send_reset`](#group__send__functions_1ga3671e39a6d93ca9568fc493001af1b1b)`(`[`MidiDevice`](#struct__midi__device)` * device)` | 指定されたデバイスを介してリセットメッセージを送信します。
|
||||||
|
`public void `[`midi_send_tcquarterframe`](#group__send__functions_1ga5b85639910eec280bb744c934d0fd45a)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t time)` | 指定されたデバイスを介してタイムコードクォータフレームメッセージを送信します。
|
||||||
|
`public void `[`midi_send_songposition`](#group__send__functions_1gab1c9eeef3b57a8cd2e6128d18e85eb7f)`(`[`MidiDevice`](#struct__midi__device)` * device,uint16_t pos)` | 指定されたデバイスを介してソングポジションメッセージを送信します。
|
||||||
|
`public void `[`midi_send_songselect`](#group__send__functions_1ga42de7838ba70d949af9a50f9facc3c50)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t song)` | 指定されたデバイスを介してソングセレクトメッセージを送信します。
|
||||||
|
`public void `[`midi_send_tunerequest`](#group__send__functions_1ga8db6c7e04d48e4d2266dd59118ca0656)`(`[`MidiDevice`](#struct__midi__device)` * device)` | 指定されたデバイスを介してチューンリクエストメッセージを送信します。
|
||||||
|
`public void `[`midi_send_byte`](#group__send__functions_1ga857e85eb90b288385642d4d991e09881)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t b)` | 指定されたデバイスを介してバイトを送信します。
|
||||||
|
`public void `[`midi_send_data`](#group__send__functions_1ga36e2f2e45369d911b76969361679054b)`(`[`MidiDevice`](#struct__midi__device)` * device,uint16_t count,uint8_t byte0,uint8_t byte1,uint8_t byte2)` | 最大3バイトのデータを送信します。
|
||||||
|
`public void `[`midi_send_array`](#group__send__functions_1ga245243cb1da18d2cea18d4b18d846ead)`(`[`MidiDevice`](#struct__midi__device)` * device,uint16_t count,uint8_t * array)` | フォーマットされた MIDI データの配列を送信します。
|
||||||
|
|
||||||
|
## メンバー
|
||||||
|
|
||||||
|
#### `public void `[`midi_send_cc`](#group__send__functions_1gaaf884811c92df405ca8fe1a00082f960)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t chan,uint8_t num,uint8_t val)` {#group__send__functions_1gaaf884811c92df405ca8fe1a00082f960}
|
||||||
|
|
||||||
|
指定されたデバイスを介して、コントロールチェンジメッセージ(cc)を送信します。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `device` 送信に使うデバイス
|
||||||
|
|
||||||
|
* `chan` 送信するチャンネル、0-15
|
||||||
|
|
||||||
|
* `num` コントロールチェンジナンバー
|
||||||
|
|
||||||
|
* `val` コントロールチェンジナンバーの値
|
||||||
|
|
||||||
|
#### `public void `[`midi_send_noteon`](#group__send__functions_1ga467bcf46dbf03ec269ce565b46bc2775)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t chan,uint8_t num,uint8_t vel)` {#group__send__functions_1ga467bcf46dbf03ec269ce565b46bc2775}
|
||||||
|
|
||||||
|
指定されたデバイスを介してノートオンメッセージを送信します。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `device` 送信に使うデバイス
|
||||||
|
|
||||||
|
* `chan` 送信するチャンネル、0-15
|
||||||
|
|
||||||
|
* `num` ノート番号
|
||||||
|
|
||||||
|
* `vel` ノートベロシティ
|
||||||
|
|
||||||
|
#### `public void `[`midi_send_noteoff`](#group__send__functions_1gaedb7d8805425eef5d47d57ddcb4c7a49)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t chan,uint8_t num,uint8_t vel)` {#group__send__functions_1gaedb7d8805425eef5d47d57ddcb4c7a49}
|
||||||
|
|
||||||
|
指定されたデバイスを介してノートオフメッセージを送信します。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `device` 送信に使うデバイス
|
||||||
|
|
||||||
|
* `chan` 送信するチャンネル、0-15
|
||||||
|
|
||||||
|
* `num` ノート番号
|
||||||
|
|
||||||
|
* `vel` ノートベロシティ
|
||||||
|
|
||||||
|
#### `public void `[`midi_send_aftertouch`](#group__send__functions_1ga0014847571317a0e34b2ef46a6bc584f)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t chan,uint8_t note_num,uint8_t amt)` {#group__send__functions_1ga0014847571317a0e34b2ef46a6bc584f}
|
||||||
|
|
||||||
|
指定されたデバイスを介してアフタータッチメッセージを送信します。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `device` 送信に使うデバイス
|
||||||
|
|
||||||
|
* `chan` 送信するチャンネル、0-15
|
||||||
|
|
||||||
|
* `note_num` ノート番号
|
||||||
|
|
||||||
|
* `amt` アフタータッチ量
|
||||||
|
|
||||||
|
#### `public void `[`midi_send_pitchbend`](#group__send__functions_1gae5a4a1e71611e7534be80af9ce3d3491)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t chan,int16_t amt)` {#group__send__functions_1gae5a4a1e71611e7534be80af9ce3d3491}
|
||||||
|
|
||||||
|
指定されたデバイスを介してピッチベンドメッセージを送信します。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `device` 送信に使うデバイス
|
||||||
|
|
||||||
|
* `chan` 送信するチャンネル、0-15
|
||||||
|
|
||||||
|
* `amt` ベンド量の範囲: -8192..8191、0 はベンドしないことを意味します
|
||||||
|
|
||||||
|
#### `public void `[`midi_send_programchange`](#group__send__functions_1ga7b15588ef25e5e1ff09c2afc3151ce86)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t chan,uint8_t num)` {#group__send__functions_1ga7b15588ef25e5e1ff09c2afc3151ce86}
|
||||||
|
|
||||||
|
指定されたデバイスを介してプログラムチェンジメッセージを送信します。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `device` 送信に使うデバイス
|
||||||
|
|
||||||
|
* `chan` 送信するチャンネル、0-15
|
||||||
|
|
||||||
|
* `num` 変更先のプログラム
|
||||||
|
|
||||||
|
#### `public void `[`midi_send_channelpressure`](#group__send__functions_1gaf23e69fdf812e89c0036f51f88ab2e1b)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t chan,uint8_t amt)` {#group__send__functions_1gaf23e69fdf812e89c0036f51f88ab2e1b}
|
||||||
|
|
||||||
|
指定されたデバイスを介してチャンネルプレッシャーメッセージを送信します。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `device` 送信に使うデバイス
|
||||||
|
|
||||||
|
* `chan` 送信するチャンネル、0-15
|
||||||
|
|
||||||
|
* `amt` チャンネルプレッシャーの量
|
||||||
|
|
||||||
|
#### `public void `[`midi_send_clock`](#group__send__functions_1ga4e1b11a7cdb0875f6e03ce7c79c581aa)`(`[`MidiDevice`](#struct__midi__device)` * device)` {#group__send__functions_1ga4e1b11a7cdb0875f6e03ce7c79c581aa}
|
||||||
|
|
||||||
|
指定されたデバイスを介してクロックメッセージを送信します。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `device` 送信に使うデバイス
|
||||||
|
|
||||||
|
#### `public void `[`midi_send_tick`](#group__send__functions_1ga2b43c7d433d940c5b907595aac947972)`(`[`MidiDevice`](#struct__midi__device)` * device)` {#group__send__functions_1ga2b43c7d433d940c5b907595aac947972}
|
||||||
|
|
||||||
|
指定されたデバイスを介してティックメッセージを送信します。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `device` 送信に使うデバイス
|
||||||
|
|
||||||
|
#### `public void `[`midi_send_start`](#group__send__functions_1ga1569749a8d58ccc56789289d7c7245cc)`(`[`MidiDevice`](#struct__midi__device)` * device)` {#group__send__functions_1ga1569749a8d58ccc56789289d7c7245cc}
|
||||||
|
|
||||||
|
指定されたデバイスを介してスタートメッセージを送信します。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `device` 送信に使うデバイス
|
||||||
|
|
||||||
|
#### `public void `[`midi_send_continue`](#group__send__functions_1gaed5dc29d754a27372e89ab8bc20ee120)`(`[`MidiDevice`](#struct__midi__device)` * device)` {#group__send__functions_1gaed5dc29d754a27372e89ab8bc20ee120}
|
||||||
|
|
||||||
|
指定されたデバイスを介してコンティニューメッセージを送信します。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `device` 送信に使うデバイス
|
||||||
|
|
||||||
|
#### `public void `[`midi_send_stop`](#group__send__functions_1ga026e1a620276cb653ac501aa0d12a988)`(`[`MidiDevice`](#struct__midi__device)` * device)` {#group__send__functions_1ga026e1a620276cb653ac501aa0d12a988}
|
||||||
|
|
||||||
|
指定されたデバイスを介してストップメッセージを送信します。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `device` 送信に使うデバイス
|
||||||
|
|
||||||
|
#### `public void `[`midi_send_activesense`](#group__send__functions_1ga9b6e4c6ce4719d2604187b325620db37)`(`[`MidiDevice`](#struct__midi__device)` * device)` {#group__send__functions_1ga9b6e4c6ce4719d2604187b325620db37}
|
||||||
|
|
||||||
|
指定されたデバイスを介してアクティブセンスメッセージを送信します。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `device` 送信に使うデバイス
|
||||||
|
|
||||||
|
#### `public void `[`midi_send_reset`](#group__send__functions_1ga3671e39a6d93ca9568fc493001af1b1b)`(`[`MidiDevice`](#struct__midi__device)` * device)` {#group__send__functions_1ga3671e39a6d93ca9568fc493001af1b1b}
|
||||||
|
|
||||||
|
指定されたデバイスを介してリセットメッセージを送信します。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `device` 送信に使うデバイス
|
||||||
|
|
||||||
|
#### `public void `[`midi_send_tcquarterframe`](#group__send__functions_1ga5b85639910eec280bb744c934d0fd45a)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t time)` {#group__send__functions_1ga5b85639910eec280bb744c934d0fd45a}
|
||||||
|
|
||||||
|
指定されたデバイスを介してタイムコードクォータフレームメッセージを送信します。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `device` 送信に使うデバイス
|
||||||
|
|
||||||
|
* `time` このクォータフレームの時間。範囲は、0..16383
|
||||||
|
|
||||||
|
#### `public void `[`midi_send_songposition`](#group__send__functions_1gab1c9eeef3b57a8cd2e6128d18e85eb7f)`(`[`MidiDevice`](#struct__midi__device)` * device,uint16_t pos)` {#group__send__functions_1gab1c9eeef3b57a8cd2e6128d18e85eb7f}
|
||||||
|
|
||||||
|
指定されたデバイスを介してソングポジションメッセージを送信します。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `device` 送信に使うデバイス
|
||||||
|
|
||||||
|
* `pos` ソングポジション
|
||||||
|
|
||||||
|
#### `public void `[`midi_send_songselect`](#group__send__functions_1ga42de7838ba70d949af9a50f9facc3c50)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t song)` {#group__send__functions_1ga42de7838ba70d949af9a50f9facc3c50}
|
||||||
|
|
||||||
|
指定されたデバイスを介してソングセレクトメッセージを送信します。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `device` 送信に使うデバイス
|
||||||
|
|
||||||
|
* `song` 選択するソング
|
||||||
|
|
||||||
|
#### `public void `[`midi_send_tunerequest`](#group__send__functions_1ga8db6c7e04d48e4d2266dd59118ca0656)`(`[`MidiDevice`](#struct__midi__device)` * device)` {#group__send__functions_1ga8db6c7e04d48e4d2266dd59118ca0656}
|
||||||
|
|
||||||
|
指定されたデバイスを介してチューンリクエストメッセージを送信します。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `device` 送信に使うデバイス
|
||||||
|
|
||||||
|
#### `public void `[`midi_send_byte`](#group__send__functions_1ga857e85eb90b288385642d4d991e09881)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t b)` {#group__send__functions_1ga857e85eb90b288385642d4d991e09881}
|
||||||
|
|
||||||
|
指定されたデバイスを介してバイトを送信します。
|
||||||
|
|
||||||
|
これは、指定された MIDI デバイスを介してデータを送信する一般的なメソッドです。これは、この API に実装されていない sysex データまたはメッセージがある場合、それらを送信するのに役立ちます。そのようなものを見つけた場合は、私たちがそれらを追加できるように、作者に連絡してください。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `device` 送信に使うデバイス
|
||||||
|
|
||||||
|
* `b` 送信するバイト
|
||||||
|
|
||||||
|
#### `public void `[`midi_send_data`](#group__send__functions_1ga36e2f2e45369d911b76969361679054b)`(`[`MidiDevice`](#struct__midi__device)` * device,uint16_t count,uint8_t byte0,uint8_t byte1,uint8_t byte2)` {#group__send__functions_1ga36e2f2e45369d911b76969361679054b}
|
||||||
|
|
||||||
|
最大3バイトのデータを送信します。
|
||||||
|
|
||||||
|
これを使って sysex を通過できるように count に4の剰余が適用されます。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `device` 送信に使うデバイス
|
||||||
|
|
||||||
|
* `count` 送信するバイト数、4の剰余が適用されます
|
||||||
|
|
||||||
|
* `byte0` 最初のバイト
|
||||||
|
|
||||||
|
* `byte1` 2番目のバイト。cnt % 4 != 2 の場合は無視されます
|
||||||
|
|
||||||
|
* `byte2` 3番目のバイト。cnt % 4 != 3 の場合は無視されます
|
||||||
|
|
||||||
|
#### `public void `[`midi_send_array`](#group__send__functions_1ga245243cb1da18d2cea18d4b18d846ead)`(`[`MidiDevice`](#struct__midi__device)` * device,uint16_t count,uint8_t * array)` {#group__send__functions_1ga245243cb1da18d2cea18d4b18d846ead}
|
||||||
|
|
||||||
|
フォーマットされた MIDI データの配列を送信します。
|
||||||
|
|
||||||
|
sysex に使うことができます。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `device` 送信に使うデバイス
|
||||||
|
|
||||||
|
* `count` 送信するバイト数
|
||||||
|
|
||||||
|
* `array` バイトの配列
|
||||||
|
|
66
docs/ja/internals_sysex_tools.md
Normal file
66
docs/ja/internals_sysex_tools.md
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
# `sysex_tools` グループ {#group__sysex__tools}
|
||||||
|
|
||||||
|
<!---
|
||||||
|
original document: 0.10.9:docs/internals_sysex_tools.md
|
||||||
|
git diff 0.10.9 HEAD -- docs/internals_sysex_tools.md | cat
|
||||||
|
-->
|
||||||
|
|
||||||
|
## 概要
|
||||||
|
|
||||||
|
| メンバー | 説明
|
||||||
|
--------------------------------|---------------------------------------------
|
||||||
|
| `public uint16_t `[`sysex_encoded_length`](#group__sysex__tools_1ga061e5607030412d6e62e2390d8013f0a)`(uint16_t decoded_length)` | エンコード後のメッセージの長さを計算します。
|
||||||
|
| `public uint16_t `[`sysex_decoded_length`](#group__sysex__tools_1ga121fc227d3acc1c0ea08c9a5c26fa3b0)`(uint16_t encoded_length)` | デコード後のメッセージの長さを計算します。
|
||||||
|
| `public uint16_t `[`sysex_encode`](#group__sysex__tools_1ga54d77f8d32f92a6f329daefa2b314742)`(uint8_t * encoded,const uint8_t * source,uint16_t length)` | sysex メッセージで安全に送信できるようにデータをエンコードします。
|
||||||
|
| `public uint16_t `[`sysex_decode`](#group__sysex__tools_1gaaad1d9ba2d5eca709a0ab4ba40662229)`(uint8_t * decoded,const uint8_t * source,uint16_t length)` | エンコードされたデータをデコードします。
|
||||||
|
|
||||||
|
## メンバー
|
||||||
|
|
||||||
|
#### `public uint16_t `[`sysex_encoded_length`](#group__sysex__tools_1ga061e5607030412d6e62e2390d8013f0a)`(uint16_t decoded_length)` {#group__sysex__tools_1ga061e5607030412d6e62e2390d8013f0a}
|
||||||
|
|
||||||
|
エンコード後のメッセージの長さを計算します。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `decoded_length` エンコードするメッセージの長さのバイト数。
|
||||||
|
|
||||||
|
#### 返り値
|
||||||
|
エンコード後のメッセージの長さのバイト数。
|
||||||
|
|
||||||
|
#### `public uint16_t `[`sysex_decoded_length`](#group__sysex__tools_1ga121fc227d3acc1c0ea08c9a5c26fa3b0)`(uint16_t encoded_length)` {#group__sysex__tools_1ga121fc227d3acc1c0ea08c9a5c26fa3b0}
|
||||||
|
|
||||||
|
デコード後のメッセージの長さを計算します。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `encoded_length` エンコードされたメッセージの長さのバイト数。
|
||||||
|
|
||||||
|
#### 返り値
|
||||||
|
デコードされた後のメッセージの長さのバイト数。
|
||||||
|
|
||||||
|
#### `public uint16_t `[`sysex_encode`](#group__sysex__tools_1ga54d77f8d32f92a6f329daefa2b314742)`(uint8_t * encoded,const uint8_t * source,uint16_t length)` {#group__sysex__tools_1ga54d77f8d32f92a6f329daefa2b314742}
|
||||||
|
|
||||||
|
sysex メッセージで安全に送信できるようにデータをエンコードします。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `encoded` 出力データバッファは、少なくとも sysex_encoded_length(length) バイトの長さが必要です。
|
||||||
|
|
||||||
|
* `source` エンコードされるデータの入力バッファ。
|
||||||
|
|
||||||
|
* `length` 入力バッファからエンコードするバイト数。
|
||||||
|
|
||||||
|
#### 返り値
|
||||||
|
エンコードされたバイト数。
|
||||||
|
|
||||||
|
#### `public uint16_t `[`sysex_decode`](#group__sysex__tools_1gaaad1d9ba2d5eca709a0ab4ba40662229)`(uint8_t * decoded,const uint8_t * source,uint16_t length)` {#group__sysex__tools_1gaaad1d9ba2d5eca709a0ab4ba40662229}
|
||||||
|
|
||||||
|
エンコードされたデータをデコードします。
|
||||||
|
|
||||||
|
#### パラメータ
|
||||||
|
* `decoded` 出力データバッファは、少なくとも sysex_decoded_length(length) バイトの長さが必要です。
|
||||||
|
|
||||||
|
* `source` デコードされるデータの入力バッファ。
|
||||||
|
|
||||||
|
* `length` 入力バッファからデコードするバイト数。
|
||||||
|
|
||||||
|
#### 返り値
|
||||||
|
デコードされたバイト数。
|
||||||
|
|
@@ -277,7 +277,7 @@ High ヒューズは 0xD9 か 0x99 のどちらかになります。
|
|||||||
avrdude -c avrisp -P COM3 -p atmega32u4 -U flash:w:main.hex:i -U lfuse:w:0xFF:m -U hfuse:w:0xD8:m -U efuse:w:0xCB:m
|
avrdude -c avrisp -P COM3 -p atmega32u4 -U flash:w:main.hex:i -U lfuse:w:0xFF:m -U hfuse:w:0xD8:m -U efuse:w:0xCB:m
|
||||||
|
|
||||||
|
|
||||||
別のコントローラーを使用している場合や、別の設定を希望する場合は、この[AVR ヒューズ計算機](http:/www.engbedded.comfusecalc)を使用して、より適切な値を見つけることができます。
|
別のコントローラーを使用している場合や、別の設定を希望する場合は、この[AVR ヒューズ計算機](https://www.engbedded.com/fusecalc)を使用して、より適切な値を見つけることができます。
|
||||||
|
|
||||||
## ヘルプ
|
## ヘルプ
|
||||||
|
|
||||||
|
@@ -48,7 +48,7 @@ MT(MOD_LCTL | MOD_LSFT, KC_ESC)
|
|||||||
| `RCAG_T(kc)` | | 押したままの場合は右 Control、右 Alt と右 GUI、タップした場合は `kc` |
|
| `RCAG_T(kc)` | | 押したままの場合は右 Control、右 Alt と右 GUI、タップした場合は `kc` |
|
||||||
| `C_S_T(kc)` | | 押したままの場合は左 Control と左 Shift、タップした場合は `kc` |
|
| `C_S_T(kc)` | | 押したままの場合は左 Control と左 Shift、タップした場合は `kc` |
|
||||||
| `MEH_T(kc)` | | 押したままの場合は左 Control、左 Shift と左 Alt、タップした場合は `kc` |
|
| `MEH_T(kc)` | | 押したままの場合は左 Control、左 Shift と左 Alt、タップした場合は `kc` |
|
||||||
| `HYPR_T(kc)` | `ALL_T(kc)` | 押したままの場合は左 Control、左 Shift、左 Alt と左 GUI、タップした場合は `kc` - より詳しくは[ここ](http://brettterpstra.com/2012/12/08/a-useful-caps-lock-key/)を見てください |
|
| `HYPR_T(kc)` | `ALL_T(kc)` | 押したままの場合は左 Control、左 Shift、左 Alt と左 GUI、タップした場合は `kc` - より詳しくは[ここ](https://brettterpstra.com/2012/12/08/a-useful-caps-lock-key/)を見てください |
|
||||||
|
|
||||||
## 注意事項
|
## 注意事項
|
||||||
|
|
||||||
|
@@ -16,7 +16,7 @@ QMK は、簡単なことは簡単に、そして、難しいことを可能な
|
|||||||
|
|
||||||
お使いのキーボードで QMK を実行できるかどうか不明ですか?
|
お使いのキーボードで QMK を実行できるかどうか不明ですか?
|
||||||
もし作成したキーボードがメカニカルキーボードの場合、実行できる可能性が高いです。
|
もし作成したキーボードがメカニカルキーボードの場合、実行できる可能性が高いです。
|
||||||
QMK は[多くの趣味のキーボード](http://qmk.fm/keyboards/)をサポートしています。
|
QMK は[多くの趣味のキーボード](https://qmk.fm/keyboards/)をサポートしています。
|
||||||
現在使用しているキーボードが QMK を実行できない場合、QMK を実行できるキーボードの選択肢はたくさんあります。
|
現在使用しているキーボードが QMK を実行できない場合、QMK を実行できるキーボードの選択肢はたくさんあります。
|
||||||
|
|
||||||
## このガイドは私のためにあるのでしょうか?
|
## このガイドは私のためにあるのでしょうか?
|
||||||
|
@@ -52,7 +52,7 @@ Linux か Unix 環境を用意するだけで、QMK に残りをインストー
|
|||||||
|
|
||||||
MSYS2 と Git と QMK CLI のインストールが必要です。
|
MSYS2 と Git と QMK CLI のインストールが必要です。
|
||||||
|
|
||||||
[MSYS2 homepage](http://www.msys2.org) のインストール手順に従ってください。開いている MSYS2 の全ターミナル画面を閉じて、新しい MinGW 64-bit ターミナル画面を開きます。**注意: これはインストールが完了した時に開く MSYS ターミナルと同じ *ではありません*。**
|
[MSYS2 homepage](https://www.msys2.org) のインストール手順に従ってください。開いている MSYS2 の全ターミナル画面を閉じて、新しい MinGW 64-bit ターミナル画面を開きます。**注意: これはインストールが完了した時に開く MSYS ターミナルと同じ *ではありません*。**
|
||||||
|
|
||||||
それから、次のように実行します:
|
それから、次のように実行します:
|
||||||
|
|
||||||
|
@@ -28,7 +28,7 @@ Eclipse のような IDE の使用は、プレーンテキストエディタの
|
|||||||
Eclipse は Java アプリケーションであるため、実行するには Java 8 以降をインストールする必要があります。JRE または JDK を選択できますが、Java 開発を行う場合は後者が役に立ちます。
|
Eclipse は Java アプリケーションであるため、実行するには Java 8 以降をインストールする必要があります。JRE または JDK を選択できますが、Java 開発を行う場合は後者が役に立ちます。
|
||||||
|
|
||||||
# Eclipse とプラグインのインストール
|
# Eclipse とプラグインのインストール
|
||||||
Eclipse は用途に応じて[いくつかのフレーバー](http://www.eclipse.org/downloads/eclipse-packages/)で提供されます。AVR スタックを構成するパッケージは無いため、Eclipse CDT (C/C++ 開発ツール)から始め、必要なプラグインをインストールする必要があります。
|
Eclipse は用途に応じて[いくつかのフレーバー](https://www.eclipse.org/downloads/eclipse-packages/)で提供されます。AVR スタックを構成するパッケージは無いため、Eclipse CDT (C/C++ 開発ツール)から始め、必要なプラグインをインストールする必要があります。
|
||||||
|
|
||||||
## Eclipse CDT のダウンロードとインストール
|
## Eclipse CDT のダウンロードとインストール
|
||||||
システムに既に Eclipse CDT がある場合は、この手順をスキップできます。ただし、より良いサポートのために最新の状態に保つことをお勧めします。
|
システムに既に Eclipse CDT がある場合は、この手順をスキップできます。ただし、より良いサポートのために最新の状態に保つことをお勧めします。
|
||||||
@@ -37,7 +37,7 @@ Eclipse は用途に応じて[いくつかのフレーバー](http://www.eclipse
|
|||||||
|
|
||||||
インストールは非常に簡単です: [5 Steps to install Eclipse](https://eclipse.org/downloads/eclipse-packages/?show_instructions=TRUE) に従い、ステップ3で **Eclipse IDE for C/C++ Developers** を選択します。
|
インストールは非常に簡単です: [5 Steps to install Eclipse](https://eclipse.org/downloads/eclipse-packages/?show_instructions=TRUE) に従い、ステップ3で **Eclipse IDE for C/C++ Developers** を選択します。
|
||||||
|
|
||||||
あるいは、直接 [Eclipse IDE for C/C++ Developers をダウンロード](http://www.eclipse.org/downloads/eclipse-packages/)([現在のバージョンへの直接リンク](http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/neonr))し、選択した場所にパッケージを解凍することもできます (これにより `eclipse` フォルダが作成されます)。
|
あるいは、直接 [Eclipse IDE for C/C++ Developers をダウンロード](https://www.eclipse.org/downloads/eclipse-packages/)([現在のバージョンへの直接リンク](https://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/neonr))し、選択した場所にパッケージを解凍することもできます (これにより `eclipse` フォルダが作成されます)。
|
||||||
|
|
||||||
## 最初の起動
|
## 最初の起動
|
||||||
インストールが完了したら、<kbd>Launch</kbd> ボタンをクリックします。(パッケージを手動で解凍した場合は、Eclipse をインストールしたフォルダを開き、`eclipse` 実行可能ファイルをダブルクリックします)
|
インストールが完了したら、<kbd>Launch</kbd> ボタンをクリックします。(パッケージを手動で解凍した場合は、Eclipse をインストールしたフォルダを開き、`eclipse` 実行可能ファイルをダブルクリックします)
|
||||||
@@ -49,8 +49,8 @@ Workspace 選択で入力を促された場合は、Eclipse メタデータと
|
|||||||
## 必要なプラグインをインストール
|
## 必要なプラグインをインストール
|
||||||
注意: プラグインをインストールするごとに、Eclipse を再起動する必要はありません。全てのプラグインがインストールされたら単に1回再起動します。
|
注意: プラグインをインストールするごとに、Eclipse を再起動する必要はありません。全てのプラグインがインストールされたら単に1回再起動します。
|
||||||
|
|
||||||
### [The AVR Plugin](http://avr-eclipse.sourceforge.net/)
|
### [The AVR Plugin](https://avr-eclipse.sourceforge.net/)
|
||||||
これは最も重要なプラグインで、Eclipse が AVR C コードを_理解_できるようになります。[更新サイトを使うための指示](http://avr-eclipse.sourceforge.net/wiki/index.php/Plugin_Download#Update_Site)に従い、未署名コンテンツのセキュリティ警告に同意します。
|
これは最も重要なプラグインで、Eclipse が AVR C コードを_理解_できるようになります。[更新サイトを使うための指示](https://avr-eclipse.sourceforge.net/wiki/index.php/Plugin_Download#Update_Site)に従い、未署名コンテンツのセキュリティ警告に同意します。
|
||||||
|
|
||||||
### [ANSI Escape in Console](https://marketplace.eclipse.org/content/ansi-escape-console)
|
### [ANSI Escape in Console](https://marketplace.eclipse.org/content/ansi-escape-console)
|
||||||
このプラグインは QMK makefile によって生成された色付きビルド出力を適切に表示するために必要です。
|
このプラグインは QMK makefile によって生成された色付きビルド出力を適切に表示するために必要です。
|
||||||
@@ -71,7 +71,7 @@ Workspace 選択で入力を促された場合は、Eclipse メタデータと
|
|||||||
* _AVR-GCC Toolchain_ を選択します;
|
* _AVR-GCC Toolchain_ を選択します;
|
||||||
* 残りをそのままにして、<kbd>Finish</kbd> をクリックします
|
* 残りをそのままにして、<kbd>Finish</kbd> をクリックします
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
3. これでプロジェクトがロードされインデックスされます。左側の _Project Explorer_ から、簡単にファイルを参照できます。
|
3. これでプロジェクトがロードされインデックスされます。左側の _Project Explorer_ から、簡単にファイルを参照できます。
|
||||||
|
|
||||||
|
@@ -80,7 +80,7 @@ QMK は `KC_NO` を使って、スイッチマトリックス内のスイッチ
|
|||||||
|
|
||||||
## JSON ファイルのビルド
|
## JSON ファイルのビルド
|
||||||
|
|
||||||
JSON ファイルをビルドする最も簡単な方法は、[Keyboard Layout Editor](http://www.keyboard-layout-editor.com/) ("KLE") でレイアウトを作成することです。この Raw Data を QMK tool に入れて、Configurator が読み出して使用する JSON ファイルに変換します。KLE は numpad レイアウトをデフォルトで開くため、Getting Started の説明を削除し、残りを使います。
|
JSON ファイルをビルドする最も簡単な方法は、[Keyboard Layout Editor](https://www.keyboard-layout-editor.com/) ("KLE") でレイアウトを作成することです。この Raw Data を QMK tool に入れて、Configurator が読み出して使用する JSON ファイルに変換します。KLE は numpad レイアウトをデフォルトで開くため、Getting Started の説明を削除し、残りを使います。
|
||||||
|
|
||||||
レイアウトが望み通りのものになったら、KLE の Raw Data タブに移動し、内容をコピーします:
|
レイアウトが望み通りのものになったら、KLE の Raw Data タブに移動し、内容をコピーします:
|
||||||
|
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
Atmel、Cypress、Kinetis、NXP、ST、TI など多くの企業が生産する 32 ビット MCU のライン。
|
Atmel、Cypress、Kinetis、NXP、ST、TI など多くの企業が生産する 32 ビット MCU のライン。
|
||||||
|
|
||||||
## AVR
|
## AVR
|
||||||
[Atmel](http://www.microchip.com/) が生産する 8 ビット MCU のライン。AVR は TMK がサポートしていた元のプラットフォームでした。
|
[Atmel](https://www.microchip.com/) が生産する 8 ビット MCU のライン。AVR は TMK がサポートしていた元のプラットフォームでした。
|
||||||
|
|
||||||
## AZERTY
|
## AZERTY
|
||||||
標準的な Français (フランス) キーボードレイアウト。キーボードの最初の6つのキーから命名されました。
|
標準的な Français (フランス) キーボードレイアウト。キーボードの最初の6つのキーから命名されました。
|
||||||
@@ -131,7 +131,7 @@ QMK にコードを送信するリクエスト。全てのユーザが個人の
|
|||||||
キーが既に押されている間にキーを押すことを指す用語。似たものに 2KRO、6KRO、NKRO が含まれます。
|
キーが既に押されている間にキーを押すことを指す用語。似たものに 2KRO、6KRO、NKRO が含まれます。
|
||||||
|
|
||||||
## スキャンコード
|
## スキャンコード
|
||||||
単一のキーを表す USB 経由の HID レポートの一部として送信される1バイトの数値。これらの値は、[USB-IF](http://www.usb.org/) が発行する [HID Usage Tables](https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf) に記載されています。
|
単一のキーを表す USB 経由の HID レポートの一部として送信される1バイトの数値。これらの値は、[USB-IF](https://www.usb.org/) が発行する [HID Usage Tables](https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf) に記載されています。
|
||||||
|
|
||||||
## スペースカデットシフト
|
## スペースカデットシフト
|
||||||
左または右 shift を1回以上タップすることで、様々なタイプの括弧を入力できる特別な shift キーのセット。
|
左または右 shift を1回以上タップすることで、様々なタイプの括弧を入力できる特別な shift キーのセット。
|
||||||
|
@@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
### キー辞書形式
|
### キー辞書形式
|
||||||
|
|
||||||
レイアウトの各キー辞書は、キーの物理プロパティを記述します。<http://keyboard-layout-editor.com> の Raw Code に精通している場合、多くの概念が同じであることが分かります。可能な限り同じキー名とレイアウトの選択を再利用しますが、keyboard-layout-editor とは異なって各キーはステートレスで、前のキーからプロパティを継承しません。
|
レイアウトの各キー辞書は、キーの物理プロパティを記述します。<https://keyboard-layout-editor.com> の Raw Code に精通している場合、多くの概念が同じであることが分かります。可能な限り同じキー名とレイアウトの選択を再利用しますが、keyboard-layout-editor とは異なって各キーはステートレスで、前のキーからプロパティを継承しません。
|
||||||
|
|
||||||
全てのキーの位置と回転は、キーボードの左上と、各キーの左上を基準にして指定されます。
|
全てのキーの位置と回転は、キーボードの左上と、各キーの左上を基準にして指定されます。
|
||||||
|
|
||||||
|
@@ -51,6 +51,7 @@ HID Keyboard/Keypad usage ページでは 256 未満の usage が定義されて
|
|||||||
| Norwegian | `keymap_norwegian.h` |
|
| Norwegian | `keymap_norwegian.h` |
|
||||||
| Polish | `keymap_polish.h` |
|
| Polish | `keymap_polish.h` |
|
||||||
| Portuguese | `keymap_portuguese.h` |
|
| Portuguese | `keymap_portuguese.h` |
|
||||||
|
| Portuguese (macOS, ISO) | `keymap_portuguese_osx_iso.h` |
|
||||||
| Portuguese (Brazil) | `keymap_br_abnt2.h` |
|
| Portuguese (Brazil) | `keymap_br_abnt2.h` |
|
||||||
| Romanian | `keymap_romanian.h` |
|
| Romanian | `keymap_romanian.h` |
|
||||||
| Russian* | `keymap_russian.h` |
|
| Russian* | `keymap_russian.h` |
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user