Compare commits

..

191 Commits

Author SHA1 Message Date
6e32dd123f [Keyboard] add rhymestone by marksard (#9708)
* Keyboard: add treeadstone48

* rename layout defines

* Use of pragma once

* move common include code

* fixed info.json

* change keymap layout from kc to normal

* fix alpha revision keymap

* fixed info.json

* remove USE_Link_Time_Optimization

* Add keyboard the Rhymestone

* fixed by PR review

* fixed by review

* Update keyboards/rhymestone/readme.md

fixed

* Fixed possible changes to oled_write_P

* Change the name of the layout definition

* Update keyboards/rhymestone/info.json

* Update keyboards/rhymestone/keymaps/default/keymap.c

* Update keyboards/rhymestone/keymaps/default/keymap.c

* Update keyboards/rhymestone/keymaps/default/keymap.c

* Update keyboards/rhymestone/keymaps/default/keymap.c

* Update keyboards/rhymestone/keymaps/switch_tester/keymap.c

* Update keyboards/rhymestone/keymaps/switch_tester/keymap.c

* Update keyboards/rhymestone/rev1/rev1.h

* add empty rules.mk in rev1

* Update from other review

* Update keyboards/rhymestone/rules.mk

* fixed other review

* move rhymestone to marksard directory

* move rhymestone to marksard directory (Commit the necessary modifications)

* remove
2020-09-04 04:14:34 -07:00
82a830196f fix link in docs/ja/*.md (#10232)
* fix link in docs/ja/feature_split_keyboard.md

* fix link in docs/ja/faq_build.md

* fix link in docs/ja/faq_general.md

* fix link in  docs/ja/faq_keymap.md

* fix link in docs/ja/how_a_matrix_works.md

* fix link in docs/ja/reference_glossary.md
2020-09-04 04:12:43 -07:00
6a79d99ea2 [Keyboard] add leftover30 by marksard (#10140)
* Keyboard: add treeadstone48

* rename layout defines

* Use of pragma once

* move common include code

* fixed info.json

* change keymap layout from kc to normal

* fix alpha revision keymap

* fixed info.json

* remove USE_Link_Time_Optimization

* Add keyboard leftover30

* update keymap

* Update keyboards/marksard/leftover30/config.h

I guess I was mistaken. Thank you.

* Update keyboards/marksard/leftover30/keymaps/default/keymap.c

* Update keyboards/marksard/leftover30/leftover30.c

* Update keyboards/marksard/leftover30/keymaps/default/keymap.c

* Update keyboards/marksard/leftover30/keymaps/default/keymap.c

* Update keyboards/marksard/leftover30/keymaps/default/keymap.c

* Update keyboards/marksard/leftover30/keymaps/default/keymap.c

* Update keyboards/marksard/leftover30/keymaps/default/keymap.c

* Update keyboards/marksard/leftover30/keymaps/default/keymap.c

* Update keyboards/marksard/leftover30/keymaps/default/keymap.c

* Update keyboards/marksard/leftover30/keymaps/default/keymap.c

* Update keyboards/marksard/leftover30/keymaps/default/keymap.c

* changed user led custom method

* Update keyboards/marksard/leftover30/config.h

* Update keyboards/marksard/leftover30/config.h

* Update keyboards/marksard/leftover30/keymaps/default/rules.mk

* Update keyboards/marksard/leftover30/rules.mk

* Update from other review

* Update keyboards/marksard/leftover30/readme.md

* fixed kanji key procedure

* Update keyboards/marksard/leftover30/config.h

* Update keyboards/marksard/leftover30/config.h

* Update keyboards/marksard/leftover30/config.h

* fixed by review
2020-09-04 03:31:36 -07:00
umi
2e4a75e2bc [Docs] Japanese translation of docs/serial_driver.md (#10014)
* add serial_drive.md translation

* update table style

* update based on comment

* update based on comment
2020-09-03 19:58:03 -07:00
umi
c3f3b34d7c [Docs] Japanese translation of api_*.md (#9992)
* add api related translation

* update based on comment

* update based on comment

* update based on comment
2020-09-03 19:54:23 -07:00
umi
98278968b7 [Docs] Japanese translation of docs/reference_glossary.md (#9880)
* add reference_glossary.md translation

* update based on comment

* update based on comment

* update based on comment
2020-09-03 19:44:39 -07:00
umi
361003934e [Docs] Japanese translation of docs/quantum_keycodes.md (#10137)
* add quantum_keycodes.md translation

* update based on comment
2020-09-03 19:01:37 -07:00
umi
c10b011828 [Docs] Japanese translation of docs/syllabus.md (#10016)
* add syllabus.md translation

* update based on comment

* update based on comment
2020-09-03 18:56:04 -07:00
umi
6eefc20c2a [Docs] Japanese translation of docs/support.md (#10015)
* add support.md translation

* update based on comment
2020-09-03 18:50:53 -07:00
umi
2282104526 [Docs] Japanese translation of docs/translating.md (#10018)
* add translating.md translation

* update based on comment

* update based on comment
2020-09-04 03:28:53 +09:00
umi
9b9587527f [Docs] Japanese translation of docs/reference_info_json.md (#9881)
* add reference_info_json.md translation

* update based on comment

* update based on comment
2020-09-04 03:25:21 +09:00
c1a6b5f430 [Keyboard] add Bakeneko 60 (#10212)
* Add Bakeneko 60 keyboard

* Apply suggestions from code review
2020-09-03 09:09:36 -07:00
25e93b4b67 format code according to conventions [skip ci] 2020-09-03 11:25:14 +00:00
2f26e14dc6 Update ISSI3741 (#9912)
* [Driver] bugfix reset the scaling register flag to FALSE

* Update drivers/issi/is31fl3741.c

Co-authored-by: Ryan <fauxpark@gmail.com>

* Add CS & SW defines for ISSI3741

* Make IS31FL3741 control register update clearer

Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Jumail Mundekkat <mundekkat@hotmail.com>
2020-09-03 20:37:04 +10:00
bad589ec59 [Keyboard] reviung33 (#10162)
* [Keyboard] Add keyboard Reviung41

* Modified files

* deleted keyboards/reviung41/keymaps/default/config.h

* modified keyboards/rebiung41/keymaps/default/keymap.c

* modified keyboards/reviung41/readme.md

* modified keyboards/reviung41/readme.md

* modified keyboards/reviung41/readme.md

* Update readme.md

Change the image photo of readme.md.

* [Keyboard] Add reviung61

* Update readme.md

* fix keyboards/reviung61/ and add keymap default_rgb

* fix keyboards/reviung61/info.json

* fix keyboards/reviung61/info.json

* remove keyboards/reviung61/keymaps/default/config.h

* [keyboard] Fixed readme.md for reviung39 and 61.

* [keyboard] add keyboard reviung33

* fix keyboards/reviung33/rules.mk

* modified: keyboards/reving33/config.h

* modified: keyboards/reving33/info.json

* modified: keyboards/reving33/keymaps/default/keymap.c
2020-09-03 01:42:09 -07:00
eead2c6087 Update DZ60 Information (#10186)
* Remove #define DESCRIPTION

* Update readme.md

* Update keyboards/readme.md

* Update keyboards/readme.md
2020-09-03 01:36:04 -07:00
04293bcd5b [Keymap] add sixkeyboard:via (#10172)
* Adding VIA support for sixkeyboard

* Update keyboards/sixkeyboard/keymaps/via/keymap.c

* Update keyboards/sixkeyboard/keymaps/via/keymap.c

* Update keyboards/sixkeyboard/keymaps/via/keymap.c

* Update keyboards/sixkeyboard/keymaps/via/keymap.c

* Update keymap.c

added suggested header. left my name out and changed year to 2020.
2020-09-03 01:34:42 -07:00
e7cc5a35c2 [Keymap] update ortho_4x12 jotix (#10157)
* mouse_layout

* add_mouse_btns

* reset_with_ctrl+esc+bspc

* add_mousekeys_on_right

* mod-tap-mouse-layer

* fn_layer
2020-09-03 01:28:07 -07:00
9808bfaf26 [Keyboard] add Sneakbox Alice Clone (#9792)
* Initial Commit for alice clone pcb

Initial commit for alice clone pcb

* Update keyboards/sneakbox/aliceclone/config.h

Change to #pragma once. Thanks.

* Update keyboards/sneakbox/aliceclone/config.h

* Update keyboards/sneakbox/aliceclone/kb.c

* Rename kb.h to aliceclone.h

* Update keyboards/sneakbox/aliceclone/keymaps/default/keymap.c

* Update keyboards/sneakbox/aliceclone/keymaps/default/keymap.c

* Update keyboards/sneakbox/aliceclone/keymaps/default/keymap.c

* Update keyboards/sneakbox/aliceclone/keymaps/default/keymap.c

* Update keyboards/sneakbox/aliceclone/keymaps/default/keymap.c

Got it. Thanks.

* Update keyboards/sneakbox/aliceclone/readme.md

* Update keyboards/sneakbox/aliceclone/readme.md

* Update keyboards/sneakbox/aliceclone/rules.mk

* Update keymap.c

* Rename kb.c to aliceclone.c

* Update keyboards/sneakbox/aliceclone/config.h

* Update keyboards/sneakbox/aliceclone/aliceclone.h

* Update keyboards/sneakbox/aliceclone/aliceclone.h

* Update keyboards/sneakbox/aliceclone/aliceclone.h

* Update keyboards/sneakbox/aliceclone/config.h

Got it. Thanks.

* Update keyboards/sneakbox/aliceclone/readme.md

Got it, the parent company folder needs to be added for make to find the source. Forgot that. Thanks.

* Update keyboards/sneakbox/aliceclone/config.h

* Info.json now reflects QMK configurator metadata

Previously, .json represented via metadata.

* Changed typo ) to } at end of line 9.

* Update keymap.c

Updated the spacing of the keymap layout to be more readable.

* Update keymap.c

Updated this VIA keymap for formatting to make it more readable.

* Update keymap.c

Updated formatting of the rotary encoder function

* Update keymap.c

* Update info.json

Corrected key layout and aligned for straight keymap, removed rotation references

* Update keymap.c

Adjusted formatting for key layout for readability

* Adjusted formatting for key layout for readability

Adjusted formatting for key layout for readability

* Added GPLv2 License header

* Added GPLv2 license header

* Update aliceclone.c

* Updated the LAYOUT map 

LAYOUT map now resembles the actual keymap with correct KXY keys corresponding to switch position.

* GPLv2 license header added

* Update keyboards/sneakbox/aliceclone/config.h

* GPLv2 License Header added

* Updated License Header, Added keymap layers

Added total of 4 keymap layers, fixed keymap visual formatting. License header GPLv2

* Added extra layers, corrected layer references

* Updated formatting for keymap.c LAYOUT

* Update keyboards/sneakbox/aliceclone/aliceclone.h

Updated

* Update keyboards/sneakbox/aliceclone/info.json

Updated

* Update keyboards/sneakbox/aliceclone/info.json

Updated

* Update keyboards/sneakbox/aliceclone/info.json

Updated formatting

* Update keyboards/sneakbox/aliceclone/keymaps/default/keymap.c

Reviewed and approved. Thanks.

* Update keyboards/sneakbox/aliceclone/keymaps/default/keymap.c

Reviewed. Understood. Thanks.

* Update keyboards/sneakbox/aliceclone/keymaps/default/keymap.c

Got it. Removed.

* Update keyboards/sneakbox/aliceclone/keymaps/via/keymap.c

Agreed. Thanks for the suggestion.

* Update keyboards/sneakbox/aliceclone/readme.md

* Update keyboards/sneakbox/aliceclone/readme.md

* Update keymap.c

tabs spaces formatting

* Update keymap.c

Tabs and spaces. Remove L3 L4

* syntax in enum layer_names

removed comma after "_FN"

* Update aliceclone.h

renamed LAYOUT_all to LAYOUT

* Update keymap.c

Updated keymap

* Update keymap.c

* Update keyboards/sneakbox/aliceclone/readme.md

* Update keyboards/sneakbox/aliceclone/keymaps/via/keymap.c

* Update keyboards/sneakbox/aliceclone/keymaps/via/keymap.c

* Update keyboards/sneakbox/aliceclone/keymaps/via/keymap.c

* Update keyboards/sneakbox/aliceclone/keymaps/via/keymap.c

* Update keyboards/sneakbox/aliceclone/aliceclone.h

* Update keyboards/sneakbox/aliceclone/keymaps/default/keymap.c

* Update keyboards/sneakbox/aliceclone/keymaps/default/keymap.c
2020-09-03 01:24:55 -07:00
2ab307a940 [Keymap] add 40percentclub/mf68:andyjack (#10208)
* Initial checkin of my 40percentclub/mf68 keymap

* Add gplv2 license header
2020-09-01 23:31:57 -07:00
4086729f5e [Keyboard] Add Chavdai40% rev2 (#10210)
* add chavdai40 rev2

* add chavdai40 rev2

* change include quantum.h to top of h files
2020-09-01 23:29:17 -07:00
4701001524 add centromere:mattly keymap (#10177)
* mattly's mirrored centromere layout

* Update keyboards/centromere/keymaps/mattly/keymap.c

* Update keyboards/centromere/keymaps/mattly/rules.mk
2020-09-01 18:01:24 -07:00
6e618baa57 update 4pplet/waffling60 keyboard (#10143)
* Update config.h

added debounce to prevent stuttering with some switches

* Update README.md
2020-09-01 17:36:00 -07:00
825ef0bd96 add keebio/bdn9:ghostseven keymap (#10154)
Keebio BDN9 Additional Keymap - Rev Encoders
2020-09-01 17:31:34 -07:00
58600d3f65 (setta21 & getta25) Keymaps Update (#10170)
OLED is turned off by default.
2020-09-01 17:28:55 -07:00
f145696dad E85 Hotswap/Soldered Fixes (#10173)
* split up the e85 into hotswap and soldered variants

* remove layout_all LAYOUT macro for hotswap pcb

* add copyright header to  to all config files

* remove list of alternate bootloaders

* spruce up config file

* comply with PR check list

* Update keyboards/exclusive/e85/hotswap/info.json

* Update keyboards/exclusive/e85/hotswap/info.json

* Update keyboards/exclusive/e85/hotswap/info.json

* Update keyboards/exclusive/e85/rules.mk

* Update keyboards/exclusive/e85/config.h

* Update keyboards/exclusive/e85/hotswap/config.h

* Update keyboards/exclusive/e85/soldered/config.h

* remove LAYOUT_all in hotswap and also remove superfluous comments

* remove the soldered tsangan map
2020-09-01 14:45:25 -07:00
7fe01239dd update ai03/soyuz:mrsendyyk keymap (#10161)
Update ai03 Soyuz readme.md and keymap.c

* Update readme.md

* Update readme.md

* Update keymap.c

* Update keymap.c

* Update readme.md

* Update readme.md

* Update readme.md

* Update readme.md
2020-09-01 09:18:36 -07:00
32910738fd add bm60rgb:jbradforddillon keymap (#10133)
* Added bm60rgb keymap

* Fix copyright
2020-09-01 09:11:16 -07:00
4889625015 bm60rgb: fixed LED layout; add underglow support (#10132)
* Fixed the LED layout for the bm60rgb

* Added underglow support
2020-09-01 09:09:24 -07:00
744940bbd9 hineybush/h88: update h88 LED stuff (#10101)
* update h88.c

* Update keyboards/hineybush/h88/h88.c
2020-09-01 09:05:03 -07:00
0bec817479 keebio/viterbi/rev2/: replaced change PRODUCT_ID (#10167)
* replaced #define PRODUCT_ID 0x1157 with #define PRODUCT_ID 0x2157 

replaced product id to distinguish rev2 from rev1.
bakingpy gave me permission through discord chat.
2020-09-01 08:55:31 -07:00
umi
80fd81ad6b [Docs] Japanese translation of docs/ref_functions.md (#9878)
* add ref_functions.md translation

* modify internal link for ja

* update based on comment

* reflect #9892 change

* update based on comment

* update based on comment
2020-09-01 18:31:25 +09:00
d16d866597 [Keyboard] 1upkeyboards/1up60rgb: fix broken Enter (#10188)
The recent change to unnest macros put the enter on the wrong matrix key. On the 1uprgb, the ANSI and ISO enters share the same cell as does the ANSI and ISO backslash.
2020-08-31 22:41:41 -07:00
0032cb026b [Keyboard] YMDK NP21 refactor (#10181) 2020-08-31 22:30:07 -07:00
854a94f383 [Keymap] update dz60:mrsendyyk (#10160)
Update DZ60 Personal readme.md and keymap.c

* Update readme.md

* Update keymap.c

* Update keymap.c

* Update readme.md

* Update readme.md

* Update readme.md

* Update keymap.c

* Update readme.md

* Update

* Update readme.md

* Update keymap.c

* Update readme.md
2020-08-31 22:26:52 -07:00
4a6cfb06c5 TMO50: use layer_state_set_kb at keyboard level (#10150)
* Change TMO to use layer_state_set_kb as is customary at the keyboard level.

This also factors out `process_indicator_led` to a separate method.
2020-08-31 22:19:51 -07:00
a9a2817f3a [Keymap] Add ddeklerk ortho_4x12 layout (#10109)
* Add ddeklerk ortho_4x12 layout

* Add license header
2020-08-31 21:44:47 -07:00
4286b81af0 [Keymap] add dmqdesign/spin:gorbachev (#9919)
* Add keymap for DQM Design Spin macropad

* changes from code review

* state -> layer_state

* Formatting fixes

* Formatting fixes

* Formatting fixes

* Formatting fixes

* Formatting fixes
2020-08-31 21:23:29 -07:00
fa740c1286 [Keyboard] Mechlovin Delphine (#9835)
* add

* ADD

* update

* update

* update

* update

* Update rgb_led.c

* Update rgb_led.c
2020-08-31 17:20:19 -07:00
69804bb243 Fixed Spanish keymap extra ES_DIAE symbol (#10211)
* Fixed Spanish keymap extra ES_DIAE symbol

`ES_DIAE` should be `S(ES_ACUT)` not `S(ES_GRV)`

* Update quantum/keymap_extras/keymap_spanish.h

Co-authored-by: Ryan <fauxpark@gmail.com>

Co-authored-by: Ryan <fauxpark@gmail.com>
2020-09-01 08:23:31 +10:00
a3db72df72 format code according to conventions [skip ci] 2020-08-29 22:57:48 +00:00
000eb14d78 update "Breaking Changes" doc 2020-08-29 14:30:02 -07:00
d3721bdff9 Revert "Branch point for 2020 Aug 29 Breaking Change"
This reverts commit 7259126e8d67e83a9bd48dcf0914be1849d638b5.
2020-08-29 14:30:02 -07:00
c56b9a1ce9 Add ChangeLog for 2020 Aug 29 Breaking Changes 2020-08-29 14:30:02 -07:00
bdd8d2679b Allow joysticks to be used without analog pins (#10169)
* Allow joysticks to be used without analog pins

* change how analog/digital joysticks are specified
2020-08-29 14:30:02 -07:00
629cfc7f5e K-Type refactor (#9864)
* K-Type refactor

* Declare QMK in product name again

* Hopefully fix matrix scanning

* Maybe this time

* Partial (literally) RGB Matrix support

* Put RGB_MATRIX_ENABLE into rgb keymap for now

* Add ifdefs for RGB config

* Set layer 1 to actually be layer 1...

* Update keyboards/k_type/readme.md

* Put all RGB config in keymap for now

* Set SDB high?

* Before `rgb_matrix_init()` would be best

* User level, not keyboard

* Combating dropped keys

* Nope

* Readme for RGB keymap

* Remove custom matrix
2020-08-29 14:30:02 -07:00
0f596881b3 Remove support for Adafruit EZ-Key (#10103)
* Remove support for Adafruit EZ-Key

* Update docs/ja/feature_bluetooth.md

Co-authored-by: Takeshi ISHII <2170248+mtei@users.noreply.github.com>

Co-authored-by: Takeshi ISHII <2170248+mtei@users.noreply.github.com>
2020-08-29 14:30:02 -07:00
15df82cdf3 Fix DMA stream ID calculation in ws2812_pwm (#10008)
Some STM32 chips have STM32_DMA1_STREAM1 as the first DMA stream, others
(F4xx, F7xx, H7xx) have STM32_DMA1_STREAM0.  Instead of those names, use
STM32_DMA_STREAM(0), which should always give the first stm32_dma_stream_t
structure in the DMA streams array, so that the stream ID would be
calculated correctly.
2020-08-29 14:30:02 -07:00
1de39e5632 Define STM32_DMA_REQUIRED when using DMA-based WS2812 driver on STM32. (#10127) 2020-08-29 14:30:02 -07:00
b89b2030af Kiibohd bootloader, take 2 (#10129) 2020-08-29 14:30:02 -07:00
fa6cf85727 Add a method to read the OLED display buffer from user space (#8777)
* Adding extern and declaration

* Change to mediated buffer read

* Adding raw byte read

* Restore write raw... D'Oh

* Working struct return

* Pack that struct

* Remove conditional packing and add example to docs

* Cleanup tab/spaces

* Update docs/feature_oled_driver.md

Prettify formatting

* Update drivers/oled/oled_driver.h

Prettify formatting
2020-08-29 14:30:02 -07:00
92385b3fb6 Better handle LTO_ENABLE (#9832)
* Better handle LTO_ENABLE

Especially when calling from command line

* Replace LINK_TIME_OPTIMIZATION_ENABLE with LTO_ENABLE

* Remove long for LTO from show_options.mk
2020-08-29 14:30:02 -07:00
3f392c09b6 More Bluetooth refactoring (#9905) 2020-08-29 14:30:02 -07:00
47f8947bf5 Update vusb to match 3rd endpoint. (#9020)
* Update vusb to match 3rd endpoint.

- With the addition of https://github.com/qmk/v-usb/pull/1 a 3rd endpoint (endpoint4) becomes available.
- We can assign mouse/extrakeys to that endpoint as its a desirable feature and leave rawhid and console to compete for the 2nd endpoint.

NOTE: The version of vusb.c in future branch is older than master. Just remember that it will need a #error if both raw_hid and console are enabled at the same time.

* Final Fixes

* Update tmk_core/protocol/vusb/vusb.c

* Update tmk_core/protocol/vusb/vusb.c

* Update tmk_core/protocol/vusb/usbconfig.h

* Update tmk_core/protocol/vusb/usbconfig.h

* Update tmk_core/protocol/vusb/usbconfig.h

* Update tmk_core/protocol/vusb/usbconfig.h

* Updated vusb submodule to latest commit
2020-08-29 14:30:02 -07:00
9ef4526a2f Remove unused CORTEX_VTOR_INIT (#10053) 2020-08-29 14:30:02 -07:00
15b5ff1dc2 Remove f072 backlight warning (#10040)
* Remove f072 backlight warning

* Remove f072 backlight warning from docs
2020-08-29 14:30:02 -07:00
21a00b7f02 ARM backlight - timer implementation (#8291)
* Add GPT timer based backlight driver

* Update to tim15 to avoid conflict with audio

* Update quantum/backlight/backlight_timer.c
2020-08-29 14:30:02 -07:00
568cae28ec #define AUTO_SHIFT_SETUP (#8441)
* #define AUTO_SHIFT_SETUP

* Clarification

Changed `#ifndef` to `#ifdef` and moved enable disable outside AUTO_SHIFT_SETUP

* AUTO_SHIFT_NO_SETUp
2020-08-29 14:30:02 -07:00
167daa9cf8 Add ability to dump all makefile variables for the specified target. (#8256) 2020-08-29 14:30:02 -07:00
d00ac5dfb6 Add st-flash flash target (#9964)
* Add `st-flash` flash target

Add support for flashing the firmware via the `st-flash` utility from
the STLink Tools package (https://github.com/stlink-org/stlink).

* Add `st-flash` to the `qmk flash -b` output
2020-08-29 14:30:02 -07:00
ea43bc8972 Keebio RGB wiring update (#7754)
* Change RGB wiring for Levinson

* Update RGB wiring for Iris

* Update RGB wiring for Nyquist

* Update RGB wiring for Quefrency

* Update RGB wiring for Viterbi

* Update RGB wiring for Fourier

* Update RGB wiring for BFO

* Handle redefinition of RGBLED_SPLIT
2020-08-29 14:30:02 -07:00
dba8148764 Fix Czech keycodes (#9987) 2020-08-29 14:30:02 -07:00
12333b7c5e Fix joystick compile issues (#9949) 2020-08-29 14:30:02 -07:00
e34eca361f Noeeprom functions for rgb_matrix (#9487)
* Add eeprom_helpers for toggle, mode, sethsv, speed; add set_speed; add noeeprom versions of toggle, step, hue, sat, val, and speed

* qmk cformat rgb_matrix

* Add rgb_matrix_set_speed and *_noeeprom functions

* Do not expose rgb_matrix_*_eeprom_helper functions
2020-08-29 14:30:02 -07:00
c990dc1e6c Add support for hsv->rgb conversion without using CIE curve. (#9856)
* Add support for hsv->rgb conversion without using CIE curve.

* Modify anavi/macropad8 to disable unicode (was unused), otherwise firmware size is too large.
2020-08-29 14:30:02 -07:00
200444f8d2 [Keyboard] relocating boards by flehrad (#9635)
Co-authored-by: flehrad <flehrad@users.noreply.github.com>
2020-08-29 14:30:02 -07:00
4764aa8711 The Key Company project consolidation (#9547)
* Consolidate TKC projects and increase VIA keymap count to 4.

* Updated readme files.

* Removed config.h via limitation of 2 dynamic keymaps

* Reduce dynamic keymaps from 4 to 3 due to EEPROM space limitations.

* Update dynamic_keymap.c

* Restore 4 dynamic keymaps for VIA in TKC projects.

* Update quantum/dynamic_keymap.c
2020-08-29 14:30:02 -07:00
e6266b19be Initialize Layer State on startup (#8318)
* Initialize Layer State on startup

Right now, on startup, the default layer state gets called and set, triggering the callback functions for the default layer state. However, the normal layer state never actually gets initialized.  It's set to 0 directly, by default, but the callback functions are never actually called.  This creates some inconsistency in the behavior for end users.  This adds a simple "clear" that triggers the callback on startup.  This should produce more consisten behavior between the two functions and layer masks.

* Stupid hack

* Fix type casting?

* Fix compile issues with magic is disabled
2020-08-29 14:30:02 -07:00
4b74f985ec Tweak the Christmas animation effect to be less harsh on the eyes (#7648)
* Tweak the Christmas animation effect to be less harsh on the eyes

* Further improve the tweaked Christmas animation code

- Use constants where it makes sense
- Instead of complicated math, use a static variable to keep track if it's animating from or to red
- Don't use pow (but a simple macro instead)
- Using floating point math is necessary for the fraction in the cubic bezier function to work

* Update docs for the tweaked Christmas animation effect

* Further improve memory usage

- Don't use floats, but 32 bit ints instead (where needed)
- Replace limits.h with constant

* Fix typo
2020-08-29 14:30:02 -07:00
d4be07dad3 Hid joystick interface (#4226)
* add support for hid gamepad interface
add documentation for HID joystick
Add joystick_task to read analog axes values even when no key is pressed or release. update doc
Update docs/feature_joystick.md
Manage pin setup and read to maintain matrix scan after analog read

* Incorporates patches and changes to HID reporting

There are some patches provided by @a-chol incorporated on this commit,
and also some changes I made to the HID Report structure.

The most interesting is the one dealing with number of buttons: Linux
doesn't seem to care, but Windows requires the HID structure to be byte
aligned (that's in the spec). So if one declares 8/16/32... buttons they
should not have any issues, but this is what happens when you have 9
buttons:

```
 bits |0|1|2|3|4|5|6|7|
      |*|*|*|*|*|*|*|*| axis 0 (report size 8)
      |*|*|*|*|*|*|*|*| ...
      |*|*|*|*|*|*|*|*|
      |*|*|*|*|*|*|*|*|
      |*|*|*|*|*|*|*|*|
      |*|*|*|*|*|*|*|*|
      |*|*|*|*|*|*|*|*| axis 6
      |*|*|*|*|*|*|*|*| first 8 buttons (report size 1)
      |*| | | | | | | | last of 9 buttons, not aligned
```

So for that I added a conditonal that will add a number of reports with
size 1 to make sure it aligns to the next multiple of 8. Those reports
send dummy inputs that don't do anything aside from aligning the data.

Tested on Linux, Windows 10 and Street Fighter (where the joystick is
recognized as direct-input)

* Add save and restore of each pin used in reading joystick (AVR).
Allow output pin to be JS_VIRTUAL_AXIS if the axis is connected to Vcc
instead of an output pin from the MCU.

Fix joystick report id

Fix broken v-usb hid joystick interface. Make it more resilient to unusual settings (none multiple of eight button count, 0 buttons or 0 axes)

Correct adc reading for multiple axes. Piecewise range conversion for uncentered raw value range. Input, output and ground pin configuration per axis.

Documentation fixes

* Fix port addressing for joystick analog read

* The other required set of changes
As per the PR, the changes still holding it up.
Add onekey for testing.
Fix ARM builds.
Fix device descriptor when either axes or buttons is zero.
Add compile-time check for at least one axis or button.
Move definition to try to fix conflict.
PR review comments.
qmk cformat

* avoid float functions to compute range mapping for axis adc reading

* Remove V-USB support for now. Updated docs accordingly.

* Update tmk_core/protocol/lufa/lufa.c

Co-Authored-By: Ryan <fauxpark@gmail.com>

* Update tmk_core/protocol/usb_descriptor.c

Co-Authored-By: Ryan <fauxpark@gmail.com>

* Update tmk_core/protocol/usb_descriptor.c

Co-Authored-By: Ryan <fauxpark@gmail.com>

* Update tmk_core/protocol/usb_descriptor.c

Co-Authored-By: Ryan <fauxpark@gmail.com>

* Add support for joystick adc reading for stm32 MCUs. Fix joystick hid report sending for chibios

* Fix HID joystick report sending for ChibiOS.
Add one analog axis to the onekey:joystick keymap.
Fix pin state save and restore during joystick analog read for STM32
MCUs.

* Update tmk_core/protocol/chibios/usb_main.c

Co-Authored-By: Ryan <fauxpark@gmail.com>

* Update tmk_core/protocol/lufa/lufa.c

Co-Authored-By: Ryan <fauxpark@gmail.com>

* Add missing mcuconf.h and halconf.h to onekey:joystick keymap.
Add suggested fixes from PR.

* Switch saveState and restoreState signature to use pin_t type.
onekey:joystick : add a second axis, virtual and programmatically animated.

* Update docs/feature_joystick.md

Co-Authored-By: Ryan <fauxpark@gmail.com>

* Update docs/feature_joystick.md

Co-Authored-By: Ryan <fauxpark@gmail.com>

* Add PR corrections

* Remove halconf.h and mcuconf.h from onekey keymaps

* Change ADC_PIN to A0

Co-authored-by: achol <allecooll@hotmail.com>
Co-authored-by: José Júnior <jose.junior@gmail.com>
Co-authored-by: a-chol <achol@notamail.com>
Co-authored-by: Nick Brassel <nick@tzarc.org>
Co-authored-by: Ryan <fauxpark@gmail.com>
2020-08-29 14:30:02 -07:00
9d3b26a475 Update features to use Custom Tapping Term when appropriate (#6259)
* Update Space Cadet to use Custom Tapping Term functionality

* Detect correct keycode for space cadet tapping term

* Update tap dancing to use global custom tapping term

* Update documentation for Tap Dances

* formatting pass

* Apply suggestions from code review

Co-Authored-By: fauxpark <fauxpark@gmail.com>

* Update docs/feature_tap_dance.md

Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>

* Update for future

* Update user keymaps for space cadet

* Fix typos

* Clean up tapping term stuff

* Fix compiler issue if NO_ACTION_TAPPING is enabled

Co-authored-by: fauxpark <fauxpark@gmail.com>
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
2020-08-29 14:30:02 -07:00
3c74edbc69 Disable NKRO on V-USB controllers (#9054)
* Disable NKRO on V-USB controllers

* not _currently_ supported text

Co-authored-by: Ryan <fauxpark@gmail.com>

Co-authored-by: Ryan <fauxpark@gmail.com>
2020-08-29 14:30:02 -07:00
686a9d35ff Re-fix the STM32 dual-bank bootloader stuff. (#9738)
* Re-fix the dual-bank bootloader stuff.

* Use wait_ms() instead of using nop's for a delay, as ChibiOS is actually running at the time of bootloader jump.
2020-08-29 14:30:02 -07:00
b0335b2731 Bigger combo index (#9318)
* Add change log

* Change combo index from uint8_t to uint16_t
2020-08-29 14:30:02 -07:00
93e7a8f74c Add dual-bank STM32 bootloader support, given GPIO toggle on BOOT0 to charge RC circuit. (#8778) 2020-08-29 14:30:02 -07:00
d0abad27ab Fix the mousekey scrolling (#9174)
Mousekey scrolling should have a separate repeat variable
to keep track of scrolling acceleration, instead of being
tied to mouse movement scolling in mousekeys. The send function
should record when the last movement was made since this is
when movement is actually sent. Doing this fixes the bug where
the initial press of a mousekey scroll button causes a double scroll.

Signed-off-by: Daniel Hong <daniel.hong@live.com>
2020-08-29 14:30:02 -07:00
86e30c2609 F303/Proton-C migration. (#9315) 2020-08-29 14:30:02 -07:00
c6b7a0d386 Add support for DMAMUX-capable MCU configuration with WS2812 PWM driver. (#9471) 2020-08-29 14:30:02 -07:00
8a4a0c25fd Change analogRead calls to analogReadPin (#9023)
* Change analogRead calls to analogReadPin

* Add ChangeLog

* Update docs, remove mention of `analogRead()`

* Retarget changelog for next round
2020-08-29 14:30:02 -07:00
60e5733c48 qmk cformat on develop (#9501) 2020-08-29 14:30:02 -07:00
3b34858b77 Don't compile outputselect.c if Bluetooth is disabled (#9356) 2020-08-29 14:30:02 -07:00
e7434c874b Remove inclusion of adafruit_ble.h from ssd1306.c (#9355) 2020-08-29 14:30:02 -07:00
69e0ad1b2c Additional cleanups for V-USB code (#9310) 2020-08-29 14:30:02 -07:00
a3933bdbe7 Attempt to fix CI for non-master branches. (#9308) 2020-08-29 14:30:02 -07:00
1193e45bf4 Convert CONSUMER2BLUEFRUIT() and CONSUMER2RN42() macros to static inline functions (#9055) 2020-08-29 14:30:02 -07:00
f209f91c7c Various tidyups for USB descriptor code (#9005) 2020-08-29 14:30:02 -07:00
385d49cc39 Initial work for consolidation of ChibiOS platform files (#8327)
* Initial work for consolidation of board files and default ChibiOS configs.

* Migrate F401/F411 black pills for testing.

* Add early init bootloader jump flag.

* Add support for I2C in order to use i2c_scanner keymap.

* Add F401/F411 HSE bypass to get things booting.

* Exempt "hooked" ChibiOS conf files from updater script.

* Fix up ordering for bootloader_defs file check.

* Match previous $(KEYBOARD_PATHS) value for Proton-C, updated for all board configs.
2020-08-29 14:30:02 -07:00
5cc3ab38c9 Remove iWRAP protocol (#9284) 2020-08-29 14:30:02 -07:00
3dbbd4cf44 Branch point for 2020 Aug 29 Breaking Change
Update readme.md
2020-08-29 14:30:02 -07:00
0f9b7b9768 Add debug logging to run() (#9986) 2020-08-28 08:03:42 -07:00
c9eaf1ac2b update info.json file for handwired/zergo (#10117)
* Rename keyboards/handwired/zergo/keymap.c to keyboards/handwired/zergo/keymaps/default/keymap.c

* Update rules.mk

* Update rules.mk

* Update bootloader.mk

* Update rules.mk

* Update bootloader.mk

* Update info.json

* Update rules.mk

* Update zergo.h

* Update info.json

* Update keymap.c

* Update keyboards/handwired/zergo/info.json

* Update keyboards/handwired/zergo/keymaps/default/keymap.c
2020-08-26 12:36:23 -07:00
d949932c08 Fix ChibiOS backlight not turning off on suspend (#10114)
* Fix ChibiOS backlight not turning off on suspend

* Add missing code for backlight as caps lock too
2020-08-26 11:15:43 -07:00
2f9eb4cd22 [Keyboard] For Science (#9607)
* Add a compiling layout based on minidox

* Add the correct pins

* Add old for science code

* Update to 2020 standards

* Get the keymap working

* update config

* Update pinout

* Fix pins

* Make requested changes

* Add info.json for configurator

* for science - PR comments

* Apply suggestions from code review
2020-08-26 09:55:18 -07:00
bad662b830 [Keyboard] Handwired pteron38 (#10035)
* setup handwired pteron38

* Clean up readme

* readme follow template

* c formatting conventions

* remove  file size comments from rules.mk

* use direct link to imgur image

* Apply suggestions from code review

* add license
2020-08-26 01:12:19 -07:00
c3ab20511d kbd67/mkiirgb - allow disabling rgb matrix (#10147)
* kbd67/mkiirgb - allow disabling rgb matrix

wrap rgb matrix funs in defines

* kbd67mkiirgb - changes per review

remove kb funcs that just call the user version. what's left is all rgb
matrix stuff so we can just wrap the whole file.
2020-08-26 01:09:45 -07:00
78362b1dc1 Fix Configurator data: underscore33/rev1
Missed this on a previous PR.
2020-08-25 17:13:06 -07:00
eb84f134c1 [Keyboard] _33 v2 (#9899)
* Initial prep for PR

* Fixing jsons for revs

* Remove old keymap ref in readme

* Add Rev1 default layout

* Fix extra comma in default r1 keymap

* Changed default keymap for r1 to match new split bottom row macro name, updated via keymap readme, updated r1 json to match layout macro name, updated split space macro for r1

* Moved combo configs to default keymaps, removed unused bootloader selections

* Update keyboards/underscore33/rev1/rules.mk

* Update keyboards/underscore33/rev2/rules.mk

* Refactor _33 folder structure

* Add VIA keymap to rev1

* Rename macros and product_id as suggested
2020-08-25 12:47:16 -07:00
b3987d7b3a format code according to conventions [skip ci] 2020-08-25 09:47:03 +00:00
eli
1f09fcaa69 [Keyboard] Pink Labs e88 (#9865)
* Add files via upload

* Update readme.md

* Update readme.md

* Delete info.json

* Delete rules.mk

* Delete readme.md

* Delete f13.h

* Delete f13.c

* Delete config.h

* Delete keymap.c

* Delete readme.md

* Add files via upload

* Update keymap.c

* Update config.h

* Update config.h

* Update rules.mk

* Update keyboards/e88/config.h

* Update keyboards/e88/readme.md

* Update keyboards/e88/keymaps/default/keymap.c

* Update keyboards/e88/rules.mk

* Update keyboards/e88/rules.mk

* Update keyboards/e88/config.h

* Update keyboards/e88/rules.mk

* Update keyboards/e88/rules.mk

* Create info.json

* Update config.h

* Update keyboards/e88/info.json

* Update keyboards/e88/readme.md

* Update keyboards/e88/config.h

* Update keyboards/e88/info.json
2020-08-25 02:29:11 -07:00
b338a4d886 Add noeeprom speed function for RGBLIGHT (#9706)
* [Docs] Add Speed functions to RGB Light docs

* Add noeeprom functions for speed

* Fix wording in doc

Co-authored-by: Ryan <fauxpark@gmail.com>

Co-authored-by: Ryan <fauxpark@gmail.com>
2020-08-25 19:08:09 +10:00
1fd2f2f022 Compiler warning when using WS2812 (#9955)
Specifically, when rgb matrix is enabled and using the ws2812 driver, and rgb light is enabled at the same time, print a message about coexistance because it can cause issues, since you cannot change pins/config for the WS2812 driver.
2020-08-25 19:05:39 +10:00
c9c63806a7 MSYS2: install packages for AVR toolchain (#10078) 2020-08-25 19:04:42 +10:00
5460489b51 [Keyboard] Barleycorn (#10118)
* Initial commit

* Barleycorn rename

* Update readme.md

* PR checklist fixes

* Update info.json

* Update keyboards/barleycorn/rules.mk

* Update keyboards/barleycorn/config.h

* Update keyboards/barleycorn/rules.mk

* Update keyboards/barleycorn/config.h

* Update keyboards/barleycorn/info.json

* Update keyboards/barleycorn/info.json

* Update keyboards/barleycorn/readme.md

* Update keyboards/barleycorn/rules.mk

* Update keyboards/barleycorn/rules.mk

* PR review

* Update keyboards/barleycorn/readme.md

* Update keyboards/barleycorn/rules.mk

* Update keyboards/barleycorn/keymaps/default/readme.md

* Update keyboards/barleycorn/keymaps/iso/readme.md

* Update keyboards/barleycorn/rules.mk

* Update keyboards/barleycorn/readme.md

* Update keyboards/barleycorn/rules.mk

* Update keyboards/barleycorn/matrix.c

* Update keyboards/barleycorn/barleycorn.c

* added ansi/iso keymaps!

* Update keyboards/barleycorn/info.json
2020-08-24 20:37:01 -07:00
ecb2121069 [Keyboard] KiwiKeebs MacroBoard v1.0 (#10080)
* KiwiKeebs v.10 QMK

* Rename files and folder structure for QMK pull request

* Deleted unused files

* Added starter keymap

* Changes to make pull request compliant

* Removed lines for PR error

* Error fix in json for PR

* Update keyboards/kiwikeebsmacro/kiwikeebsmacro.h

* Update keyboards/kiwikeebsmacro/readme.md

* Update keyboards/kiwikeebsmacro/keymaps/default/readme.md

* Update keyboards/kiwikeebsmacro/keymaps/default/keymap.c

* Update keyboards/kiwikeebsmacro/info.json

* Update keyboards/kiwikeebsmacro/keymaps/default/keymap.c

* Update keyboards/kiwikeebsmacro/config.h

* Changed structure to allow for future boards

* Update keyboards/kiwikeebs/macro/config.h

* Update keyboards/kiwikeebs/macro/info.json

* Update keyboards/kiwikeebs/macro/keymaps/default/keymap.c

* Update keyboards/kiwikeebs/macro/keymaps/default/keymap.c

* Amended rotarty to use kb instead of user

* Updated structure after pull request commits

* Update keyboards/kiwikeebs/macro/config.h

* Update keyboards/kiwikeebs/macro/info.json
2020-08-24 20:36:05 -07:00
1272371f15 [Keymap] add miuni32:cassdelacruzmunoz (#10108)
* created keymap for miuni32:cassdelacruzmunoz

* add license headers

* fixed error
2020-08-24 16:56:27 -07:00
80d92525db Upstream a good default keymap for the Ferris handwired (#9926)
* Proper default keymap

* Update keyboards/handwired/ferris/keymaps/default/readme.md
2020-08-24 14:56:48 -07:00
297bda1c1f add num lock indicator functionality to hineybush/h10 (#10100)
* add num lock indicator functionality to h10

* Update keyboards/hineybush/h10/h10.c
2020-08-24 14:55:49 -07:00
5772ac8bf6 [Keyboard] 10 ble oled usbhub pad (#10095)
* Create rules.mk

* Create glcdfonr.c

* Create keymap.c

* Create keymap.c

* Create rules.mk

* Add files via upload

* Update readme.md

* Update readme.md

* Update readme.md

* Update config.h

* Update 10bleoledhub.h

* Update 10bleoledhub.c

* Update info.json

* Update keymap.c

* Update keymap.c

* Rename glcdfonr.c to glcdfont.c

* Update config.h

* Update config.h

* Update config.h

* Update rules.mk

* Update 10bleoledhub.c

* Update 10bleoledhub.h

* Update info.json

* Update config.h

* Update rules.mk

* Update keymap.c

* Update keymap.c

* Update glcdfont.c

* Update keyboards/10bleoledhub/rules.mk

* Update keyboards/10bleoledhub/keymaps/via/keymap.c

* Update keyboards/10bleoledhub/keymaps/default/keymap.c

* Update keyboards/10bleoledhub/config.h

* Update keyboards/10bleoledhub/config.h

* Update keyboards/10bleoledhub/10bleoledhub.h
2020-08-24 11:55:24 -07:00
958e3f85cb Update Lily58 Keymaps and VendorID (#9979)
* Update keymaps and venderID

* update config.h

* Update keyboards/lily58/keymaps/yuchi/keymap.c
2020-08-24 09:08:35 -07:00
b139d34924 Update Ortho60 VIA keymap (#10130)
* Added the license header and made the layers generic
2020-08-24 07:49:25 -07:00
0ea476a311 [Keymap] chrisae9 dz60 updates (#10098)
* Changed keyboard layout and updated some keys

* Updated keymap

* Updated layout and pictures

* Remove old keymap

Co-authored-by: chis <chis@chis.chis.dev>
2020-08-23 23:13:11 -07:00
8937c14514 FIX rabbit_capture_plan info.json (#10139) 2020-08-23 00:27:01 -07:00
92da1f0b97 [Keyboard] Drakon (#10071)
* Drakon60

* Updates

* Update: Deletion of XXX in WKL keymap

* Update keymap.c

* Revert "Updates"

This reverts commit b4f97d38777ae3f41d6b20b0da69d90945c1ed8a.

* Update keyboards/drakon/info.json

* Update keyboards/drakon/info.json

* Update keyboards/drakon/info.json

* Update keyboards/drakon/config.h

* Update keyboards/drakon/config.h

* Update keyboards/drakon/rules.mk

* Update keyboards/drakon/rules.mk

* Update keyboards/drakon/rules.mk

* Update keyboards/drakon/rules.mk

* Update keyboards/drakon/keymaps/wkl/readme.md

* Update keyboards/drakon/keymaps/logo/keymap.c

* Update keyboards/drakon/keymaps/default/keymap.c

* Update keyboards/drakon/keymaps/wkl/keymap.c

* Update keyboards/drakon/config.h

* Update keyboards/drakon/config.h

* Update keyboards/drakon/keymaps/logo/readme.md

* Update keyboards/drakon/config.h

* Update keyboards/drakon/readme.md

* Update keyboards/drakon/rules.mk

* Update keyboards/drakon/drakon.c

* Update config.h

Deletion as recommended

* Update config.h

Correction of the deletion

* Update config.h

Deletion of line as recommended

* Update config.h

Deleted line as recommended

* Update keymap.c

Deleted line as recommended

* Deletion of File

* Delete config.h

* Delete config.h

* Delete config.h

* Update keyboards/drakon/config.h

* Update keyboards/drakon/keymaps/wkl/keymap.c

* Update keyboards/drakon/keymaps/default/keymap.c

* Update keyboards/drakon/keymaps/wkl/keymap.c
2020-08-22 18:24:09 -07:00
a7cb1ceade [Keyboard] Add "rabbit capture plan" keyboard (#9895)
* add rabbit_capture_plan

* update keymap.c

* Update keyboards/rabbit_capture_plan/paw3204.c

Co-authored-by: Drashna Jaelre <drashna@live.com>

* move bto_to keymap

* remove paw3204

Co-authored-by: Drashna Jaelre <drashna@live.com>
2020-08-22 16:18:53 -07:00
42eeb315a5 [Keyboard] add support for ModelM USB board (#9846)
* add support for ModelM USB board

* EMI improvement: remove unnecessary toggling of MOSI pin

* address review comments

* Update keyboards/mschwingen/modelm/rules.mk

Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>

* Update keyboards/mschwingen/modelm/rules.mk

Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>

* Update keyboards/mschwingen/modelm/config.h

Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>

* Update keyboards/mschwingen/modelm/config.h

Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>

* Update keyboards/mschwingen/modelm/rules.mk

Co-authored-by: Drashna Jaelre <drashna@live.com>

* Update keyboards/mschwingen/modelm/keymaps/default/keymap.c

Co-authored-by: Drashna Jaelre <drashna@live.com>

* update printf usage

* add comment

* EMI improvement: remove unnecessary toggling of MOSI signal

* remove trailing space

* use shorter macros as suggested in review by noroadsleft, re-format table to line up columns

* Update keyboards/mschwingen/modelm/config.h

Co-authored-by: Ryan <fauxpark@gmail.com>

* Update keyboards/mschwingen/modelm/rules.mk

Co-authored-by: Ryan <fauxpark@gmail.com>

* Update keyboards/mschwingen/modelm/rules.mk

Co-authored-by: Ryan <fauxpark@gmail.com>

* Update keyboards/mschwingen/modelm/rules.mk

Co-authored-by: Ryan <fauxpark@gmail.com>

* Update keyboards/mschwingen/modelm/README.md

Co-authored-by: Ryan <fauxpark@gmail.com>

* Update keyboards/mschwingen/modelm/README.md

Co-authored-by: Ryan <fauxpark@gmail.com>

* Apply suggestions from code review

use spi_read from core insteads of our own copy

Co-authored-by: Ryan <fauxpark@gmail.com>

* include spi_master.c to use spi_read()

* Update keyboards/mschwingen/modelm/README.md

Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>

* Apply suggestions from code review: correct indenting in keymap

Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>

* Apply suggestions from code review

use automatic variant defines from makefile instead of defining our own

Co-authored-by: Drashna Jaelre <drashna@live.com>

* Update keyboards/mschwingen/modelm/rules.mk: use QUANTUM_LIB_SRC for uart.c

Co-authored-by: Drashna Jaelre <drashna@live.com>

Co-authored-by: Michael Schwingen <michael@schwingen.org>
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
2020-08-22 16:02:16 -07:00
ac3dfa742a [Keyboard] added matrix 8xv2.0 additional (#9470)
* added matrix 8xv2.0 additional keyboard

* Apply suggestions from code review

Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>

* add copyright and speed up the matrix scanning

* Update keyboards/matrix/m20add/rules.mk

Co-authored-by: Drashna Jaelre <drashna@live.com>

Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
2020-08-22 13:45:06 -07:00
e02f4798f9 [Keyboard] Pterodactyl handwired (#9884)
* Working bluetooth fork of dactyl

* Refactor thanks to zvecr

* Final refactor per PR comments

* Pragma once

* Update keyboards/handwired/pterodactyl/pterodactyl.h

* Update keyboards/handwired/pterodactyl/readme.md

* Update keyboards/handwired/pterodactyl/rules.mk

* Update keyboards/handwired/pterodactyl/rules.mk

* Update keyboards/handwired/pterodactyl/config.h

* Update keyboards/handwired/pterodactyl/pterodactyl.h

* Update keyboards/handwired/pterodactyl/config.h

* Update keyboards/handwired/pterodactyl/pterodactyl.h

* update readme

* Update keyboards/handwired/pterodactyl/keymaps/default/keymap.c

* Update keyboards/handwired/pterodactyl/info.json

* Update keyboards/handwired/pterodactyl/readme.md

* Update keyboards/handwired/pterodactyl/config.h

* Update keyboards/handwired/pterodactyl/info.json

* Update keyboards/handwired/pterodactyl/keymaps/default/keymap.c

* Update keyboards/handwired/pterodactyl/keymaps/default/keymap.c

* Update keyboards/handwired/pterodactyl/keymaps/default/keymap.c

* Update keyboards/handwired/pterodactyl/keymaps/default/keymap.c

* Update keyboards/handwired/pterodactyl/pterodactyl.h

* Update keyboards/handwired/pterodactyl/keymaps/default/keymap.c

* Update keyboards/handwired/pterodactyl/matrix.c

* Fix/add formatting and info/keymap.json

* Update keyboards/handwired/pterodactyl/keymaps/default/keymap.json

* lint default/keymap.json

* format info.json
2020-08-22 12:59:24 -07:00
cf4b493c24 [Keyboard] Nemui (#10020)
* added nemui layout

* via support working

* added license headers for c and h files

* Update keyboards/nemui/keymaps/via/rules.mk

* Update keyboards/nemui/nemui.c

* Update keyboards/nemui/config.h

* Update keyboards/nemui/readme.md

* Update keyboards/nemui/rules.mk

* removed nemui.json as it was supposed to only be in via repo

* Update keyboards/nemui/keymaps/default/keymap.c

* Update keyboards/nemui/info.json

* Update keyboards/nemui/info.json

* Update keyboards/nemui/keymaps/via/keymap.c

* Update keyboards/nemui/keymaps/via/keymap.c
2020-08-22 12:40:55 -07:00
220b1c9db4 [Keyboard] Add ZSA Moonlander (#9853) 2020-08-22 07:44:42 -07:00
346bfb2a05 Update i2c_driver.md (#10131)
Update i2c_driver.md to change ARM pin number documentation, line 84 and 85
2020-08-22 14:06:16 +01:00
0f0530c5a4 Fix IDOBAO ID80 board configurations. (#9796)
* Fix IDOBAO 80 disable console and LEDs.

* Re-enabling to IDOBAO80s underglow rgb light

* fix define legacy declarements
2020-08-22 01:12:19 -07:00
08acb7ab68 Ortho48 VIA keymap (#10128) 2020-08-22 16:14:52 +10:00
70ce4ba56f Revert "Add Kiibohd bootloader type to bootloader.mk (#9908)" (#10126)
This reverts commit e2d4cd1a41c667da186891e3dbaf535c6b0717df.
2020-08-21 15:42:28 -07:00
1b0272e801 Fixed Soyuz LAYOUT_numpad_5x4 Preview on QMK Configurator (#10123) 2020-08-21 14:25:28 -07:00
22ceab9c08 Fixed DZ60 LAYOUT_60_ansi_arrow Preview on QMK Configurator (#10122) 2020-08-21 14:24:02 -07:00
930446fe96 Update reviung39 PRODUCT_ID (#10001) 2020-08-21 11:10:05 +10:00
dd763f2988 [Keymap] userspace and keymap for rupa (#9786)
* first iteration of my keymap

* * move to userspace
* "script" modes
* keymap bling

* OM and RUPA keys

and tryin to micro-optimize in process_records.c

* woops

swap shifted rupas
forgot to add codepoint for OM

* Apply suggestions from code review

Co-authored-by: Drashna Jaelre <drashna@live.com>

* add call to process_record_keymap, per review

* fall through to process_record_keymap

* license headers

Co-authored-by: Drashna Jaelre <drashna@live.com>
2020-08-20 17:07:09 -07:00
83c7c66e8c [Keyboard] AJisai74 (#10021)
* Add keyboard ajisai74

Add ajisai74 keyboard.

A 74 keys ANSI/JIS Layout keyboard.
Salicylic-acid3

* Update keyboards/ajisai74/keymaps/salicylic/keymap.c

* Update keyboards/ajisai74/keymaps/via/keymap.c

* Update keyboards/ajisai74/keymaps/via/keymap.c

* Update keyboards/ajisai74/rules.mk

* Update keyboards/ajisai74/rev1/rev1.h

* Update keyboards/ajisai74/keymaps/default/keymap.c

* Update keyboards/ajisai74/keymaps/default/keymap.c

* Update keyboards/ajisai74/keymaps/jis/keymap.c

* Keymap update

Fixed an unnecessary symbol at the end of the file.

* Update keyboards/ajisai74/readme.md

* Update keyboards/ajisai74/rev1/config.h

* Delete Rev1 directory

I removed the directory because I don't have any plans to update now.

* Update keyboards/ajisai74/rules.mk

* Added copyright

Added copyright to all files.

* Update keyboards/ajisai74/ajisai74.h
2020-08-19 18:50:43 -07:00
ec7abc2ce2 [Keyboard] HolySwitch Co Southpaw75 (#10011)
* add in drewguy's code with a few additions to the keymap

* add VID and PID

* fixup defualt keymap

* add VIA keymap

* thanks to bigchimpo for reminding me to put an Fn key in the default keymap

* make sure we have the right gitugithub url for drew

* remove description as per PR checklist

* append readme with more information

* Update keyboards/holyswitch/southpaw75/config.h

* Update keyboards/holyswitch/southpaw75/info.json

* Update keyboards/holyswitch/southpaw75/southpaw75.h

* Update keyboards/holyswitch/southpaw75/info.json
2020-08-19 18:49:31 -07:00
0b894ca99c [Keymap] update dvorak_42_key keymaps for atreus and ergodox_ez: add VSCode shortcuts (#10054)
* remove obsolete cloud9 macros, add vscode macros on the KEYNAV layer

* add vscode layer and shortcuts

* remove duplicate VSCODE layer and macros

* apply review changes
2020-08-19 18:38:52 -07:00
cdb69da86e Fix typo in docs/feature_dynamic_macros (#10085)
s/completly/completely
2020-08-19 22:59:59 +01:00
c18cbcc5ad [Keymap] VIA keymap for Cannonkeys Ortho60 (#10086)
* Adding VIA support

* Fixed Vendor ID

* Update keyboards/cannonkeys/ortho60/config.h

* Update keyboards/cannonkeys/ortho60/keymaps/via/keymap.c

* Update keyboards/cannonkeys/ortho60/config.h
2020-08-19 12:31:56 -07:00
c23e6dff78 [Keymap] xd60:shura30 (#10089)
* added my xd60 layout

* added my xd60 layout

* Update keyboards/xd60/keymaps/shura30/keymap.c

* Update keyboards/xd60/keymaps/shura30/keymap.c

* Update keyboards/xd60/keymaps/shura30/config.h
2020-08-19 12:30:00 -07:00
4f4c6e04d9 Rename keyboards/handwired/zergo/keymap.c to keyboards/handwired/zergo/keymaps/default/keymap.c (#10094) 2020-08-19 12:00:36 -07:00
057bc5da80 [Keymap] added dbroqua keymap for kbdfans/kbd6x (#10072)
* [kbdfans] Added dbroqua layout for kbd6x

Add dbroqua keymap for kbd6x

Add dbroqua layout for kbd6x with HHKB style and RGB.

* Update keymap.c

  * Change based on zvecr
  * Added RESET button
2020-08-19 11:21:39 -07:00
e4a0a5f4e1 [Keyboard] Vision keyboard by SatT (#9768)
* Add vision keyboard

* Remove bootloader_defs.h

* Update keyboards/satt/vision/readme.md

* Change Vendor ID

* Update keyboards/satt/vision/config.h

* Update keyboards/satt/vision/rules.mk

* Fix info.json

* Apply suggestions from code review

* Add license header

* Apply suggestions from code review
2020-08-19 11:18:52 -07:00
993d4058a1 60_ansi_arrows Community Layout; mrsendyyk keymaps for dz60 and maartenwut/eon65 (#9993)
* Add Layout and Keymap

* Add and Update Keymap

* Update readme.md

* Update keymap.c

* Update readme.md

* Update

* delete

* update

* Revert "update"

This reverts commit 91a3ff800c043094469dd0bb60cc454857b3a2d0.

* Update config.h

remove `DESCRIPTION` as per PR checklist

* Update config.h

* Revert "Update config.h"

This reverts commit 269df0535efb4548828463eecc3a022c99d98949.

* Revert "Update config.h"

This reverts commit cad5a3320123da4694f09fb4e3ac08cc75bab1cc.

* Update keyboards/dz60/dz60.h

* Update keyboards/dz60/keymaps/mrsendyyk/keymap.c

* Update keyboards/dz60/keymaps/mrsendyyk/keymap.c

* Update keyboards/dz60/keymaps/mrsendyyk/keymap.c

* Update keyboards/dz60/keymaps/mrsendyyk/keymap.c

* Update keyboards/dz60/keymaps/mrsendyyk/keymap.c

* Update keyboards/dz60/keymaps/mrsendyyk/keymap.c

* Update keyboards/dz60/keymaps/mrsendyyk/keymap.c

* Update keymap.c

* Update keymap.c

* Update keymap.c

* Update dz60.h

* Update keymap.c

* Update readme.md

* Update keymap.c

* Update keymap.c

* Update readme.md

* Update dz60.h

* Update keymap.c

* Update readme.md

* Update readme.md

* Update

* Update keymap.c

* Update keymap.c

* Update keymap.c

* Update readme.md

* Update keymap.c

* Update readme.md

* Update readme.md

* Update keymap.c

* Update readme.md

* Update readme.md

* Update readme.md

* Update readme.md

* Update readme.md

* Rename readme.md to README.md

* Rename readme.md to README.md

* Rename README.md to readme.md

* Rename README.md to readme.md

* Update rules.mk

* Update dz60.h

* Update keymap.c

* Update readme.md

* Update keymap.c

* Update readme.md

* Update

* Update keymap.c

* Update keymap.c

* Update keymap.c

* Update keymap.c

* Update readme.md

* Update info.json

* Update keyboards/dz60/dz60.h

* Update keyboards/dz60/dz60.h

* Update keyboards/dz60/rules.mk

* Update layouts/community/60_ansi_arrow/mrsendyyk/keymap.c

* Update layouts/community/60_ansi_arrow/mrsendyyk/keymap.c

* Update layouts/community/60_ansi_arrow/mrsendyyk/keymap.c

* Update layouts/community/60_ansi_arrow/readme.md

* Update layouts/default/60_ansi_arrow/default_60_ansi_arrow/keymap.c

* Update layouts/default/60_ansi_arrow/default_60_ansi_arrow/keymap.c

* Update layouts/default/60_ansi_arrow/default_60_ansi_arrow/keymap.c

* Update layouts/default/60_ansi_arrow/readme.md

* Update layouts/community/60_ansi_arrow/mrsendyyk/readme.md

* Update layouts/community/60_ansi_arrow/mrsendyyk/readme.md

* Update layouts/community/60_ansi_arrow/readme.md

* Update layouts/community/60_ansi_arrow/readme.md

* Update layouts/community/60_ansi_arrow/readme.md

* Update layouts/community/60_ansi_arrow/readme.md

* Update layouts/community/60_ansi_arrow/readme.md

* Update keymap.c

* Update readme.md

* Update keymap.c

* Update keymap.c

* Update readme.md
2020-08-19 11:16:10 -07:00
79f080a43f [Keyboard] add Xelus Valor (#10079)
* praxis avr

* rgb

* valor initial

* rgb limit

* readme update

* update rules.mk and include valor

* update readme

* Update rules.mk

* update readme and copyright + layout macro

* oops didnt save
2020-08-18 20:20:22 -07:00
d57bd0f65c [Keyboard] Add support for keyboard 'Bolt' (#10046)
* Add support for keyboard 'Bolt'

Add support for keyboard 'Bolt'

* Update info.json

* Update info.json

* Update keyboards/lazydesigners/bolt/config.h

Co-authored-by: Joel Challis <git@zvecr.com>

* Update keyboards/lazydesigners/bolt/rules.mk

Co-authored-by: Joel Challis <git@zvecr.com>

* Update keyboards/lazydesigners/bolt/readme.md

Co-authored-by: Joel Challis <git@zvecr.com>

* Update info.json

* Update keyboards/lazydesigners/bolt/info.json

Co-authored-by: Ryan <fauxpark@gmail.com>

* Update keyboards/lazydesigners/bolt/bolt.h

Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>

* Update keyboards/lazydesigners/bolt/info.json

Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>

* Update keyboards/lazydesigners/bolt/keymaps/default/keymap.c

Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>

* Update keyboards/lazydesigners/bolt/info.json

Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>

* Update keyboards/lazydesigners/bolt/keymaps/default/keymap.c

Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>

* Update keyboards/lazydesigners/bolt/keymaps/default/keymap.c

Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>

Co-authored-by: Joel Challis <git@zvecr.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
2020-08-18 19:29:09 -07:00
d9fe855923 [Keymap] update kejadlen keymaps (#9954)
Standardizing my keymaps under my username, rather than a keymap name.
2020-08-18 19:21:50 -07:00
df1467c86d [Keymap] jotix_ortho_4x12_layout (#10075) 2020-08-18 18:48:40 -07:00
7c81ae287c Changes to thevankeyboards/minivan:king keymap (#10032)
* Changes to minivan layout
2020-08-18 18:18:32 -07:00
3710522549 Refactor Adelais PCB (#10069)
Enable RGBLIGHT for standard pcb rev2&3

* Update rules.mk

* Update rules.mk
2020-08-18 18:13:16 -07:00
1ff68165b8 [Keyboard] NK87 (#9965)
* Initial commit

* Fix1

* Final Prettify

* Update keyboards/nk87/config.h

* Update keyboards/nk87/keymaps/default/keymap.c

* Update keyboards/nk87/keymaps/via/keymap.c

* Update keyboards/nk87/rules.mk

* Remove unnecessary junk

* Update keyboards/nk87/readme.md

* Update keyboards/nk87/readme.md

* Update keyboards/nk87/readme.md

* Update keyboards/nk87/keymaps/default/readme.md

* Update keyboards/nk87/keymaps/via/readme.md
2020-08-18 17:56:40 -07:00
33579efee3 Update keymap for Keebio/iris4/rev4 (#10062) 2020-08-19 09:13:55 +10:00
588991af69 Dawn60 update that breaks travis keyboard builds (#10082) 2020-08-19 08:13:18 +10:00
5aa55a7154 add VIA keymap for boardsource/3x4 (#10043)
* via keymap for boardsource/3x4

* fix formatting

* Apply suggestions from code review

fix rules.mk

* Update keyboards/boardsource/3x4/rules.mk

* use unique product ID

* update vendor id to be unique, update product id to make more sense
2020-08-18 14:36:46 -07:00
03090d6571 [Keyboard] generic_panda/panda65_01 (#10006)
* First commit

* Added ChibiOS files

* renamed files to remove capital letters

* Fixed layout references

* fixed image reference

* Fixing errors

* Fixed config.h

* changed second up to fn key

* renamed files and added beginning of via compatibility

* renamed keyboard

* removed vscode files

* fixing files for via compatibility

* adding via files

* working via compatibility

* Update readme.md

* Update readme.md

* First commit

* Added ChibiOS files

* renamed files to remove capital letters

* Fixed layout references

* fixed image reference

* Fixing errors

* Fixed config.h

* changed second up to fn key

* renamed files and added beginning of via compatibility

* renamed keyboard

* removed vscode files

* fixing files for via compatibility

* adding via files

* working via compatibility

* added license header to via file

* preparing for pull request

* Fixed firmware according to pull request feedback

* fixed readme according to pull request feedback

* Updated readme and removed unnecessary layers in default/keymap.c

* removed whitespace

* updated keymap readme to match suggestion
2020-08-18 14:28:25 -07:00
f99f46773e [Keyboard] zErgo handwired (#9990)
* Create readme.md

* Add files via upload

* Update readme.md

* Create info.json

* Update info.json

* Update and rename kb.c to zergo.c

* Rename kb.h to zergo.h

* Add files via upload

* Update keymap.c

* Update config.h

* Update zergo.c

* Update zergo.h

* Update rules.mk

* Update keymap.c

* Rename Makefile to makefile

* Update zergo.c

* Update zergo.h

* Update keymap.c

* Update config.h

* Update config.h

* Update zergo.h

* Update rules.mk

* Update rules.mk

* Update config.h

* Update keyboards/handwired/zergo/keymap.c

* Update keyboards/handwired/zergo/keymap.c

* Update keyboards/handwired/zergo/zergo.h

* Update keyboards/handwired/zergo/keymap.c

* Update keyboards/handwired/zergo/keymap.c

* Update keyboards/handwired/zergo/rules.mk

* Update keyboards/handwired/zergo/keymap.c

* Update readme.md

* Update readme.md

* Update keyboards/handwired/zergo/readme.md

* Update readme.md

* Update keyboards/handwired/zergo/config.h

* Update keyboards/handwired/zergo/config.h

* Update keyboards/handwired/zergo/info.json

* Update readme.md

* Update keyboards/handwired/zergo/readme.md

* Update keyboards/handwired/zergo/readme.md

* Delete makefile
2020-08-18 14:24:50 -07:00
66de3308e5 [Keyboard] Bento handwired macro pad (#9973)
* [Keyboard] Add ghostseven/bento

* Correct attribution, Dwin17

* Formatting change

* Markdown formating

* Update keyboards/ghostseven/bento/info.json

* Update keyboards/ghostseven/bento/readme.md

* Update keyboards/ghostseven/bento/rev1/config.h

* Update keyboards/ghostseven/bento/rev1/rules.mk

* Update keyboards/ghostseven/bento/rev1/rules.mk

* Update keyboards/ghostseven/bento/rev1/rules.mk

* Update keyboards/ghostseven/bento/rev1/rules.mk

* Update keyboards/ghostseven/bento/rev1/config.h

* Update keyboards/ghostseven/bento/rev1/rev1.c

* Update keyboards/ghostseven/bento/rev1/rev1.c

* Update keyboards/ghostseven/bento/rev1/config.h

* Update keyboards/ghostseven/bento/rev1/rules.mk

* Update keyboards/ghostseven/bento/readme.md

* Delete config.h

* Delete config.h

* Update rules.mk

* Rename keyboards/ghostseven/bento/readme.md to keyboards/handwired/bento/readme.md

* Rename keyboards/ghostseven/bento/rules.mk to keyboards/handwired/bento/rules.mk

* Rename keyboards/ghostseven/bento/info.json to keyboards/handwired/bento/info.json

* Rename keyboards/ghostseven/bento/bento.h to keyboards/handwired/bento/bento.h

* Rename keyboards/ghostseven/bento/bento.c to keyboards/handwired/bento/bento.c

* Rename keyboards/ghostseven/bento/rev1/rules.mk to keyboards/handwired/bento/rev1/rules.mk

* Rename keyboards/ghostseven/bento/rev1/rev1.h to keyboards/handwired/bento/rev1/rev1.h

* Rename keyboards/ghostseven/bento/rev1/rev1.c to keyboards/handwired/bento/rev1/rev1.c

* Rename keyboards/ghostseven/bento/rev1/config.h to keyboards/handwired/bento/rev1/config.h

* Rename keyboards/ghostseven/bento/keymaps/default/keymap.c to keyboards/handwired/bento/keymaps/default/keymap.c

* Update bento.h

* Change make location to handwired dir.

* added alt keymap submited by cbc02009

* Added mac dev keymap

* Licence updates
2020-08-18 13:45:33 -07:00
0e542b297d Super16 VIA support (#10076)
* Added via support for Super16
2020-08-18 13:10:43 -07:00
c0df341f5c [Keyboard] Boardsource Microdox (#9971)
* microdox keyboard workidng

* updated readme

* cleaned up for pr

* Apply suggestions from code review

* Apply suggestions from code review

* added license headers

* Update keyboards/boardsource/microdox/keymaps/default/keymap.c

* Update keyboards/boardsource/microdox/rules.mk

* Update keyboards/boardsource/microdox/rules.mk

* Update keyboards/boardsource/microdox/rules.mk
2020-08-18 12:46:09 -07:00
186b1b2ba2 function96 keyboard added (#10024)
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
2020-08-18 18:25:43 +10:00
4237d35e83 [Keyboard] HHKB Lite 2 (#9188)
* Initial commit for HHKB Lite 2

* Rearrange keymap

* Clean up config

* Fix pin assignments

* Code and filename cleanup

* Add README

* Apply suggestions from code review

Code cleanup

* Update keyboards/hhkb_lite_2/README.md

Documentation cleanup

* Change Vendor ID to unused

* One more LAYOUT

* Via keymap for HHKB Lite 2

* Remove redundant keymap.c

* Add README for Via keymap

* Fix vendorId for Via keymap

* Apply suggestions from code review

Cleanup based on review feedback

* Clean up via keymap makefile rules

* Switch to C keymap instead of JSON for Via layout

* Move bootmagic key config to main

Moved to main keyboard config to be shared by all keymaps.

* Address PR feedback

* Reformat config comments

* Format rules.mk comments

* Rename README -> readme

* Use `make` instead of `qmk` in examples
2020-08-18 00:06:19 -07:00
0d65bbaa44 [Keyboard] Pistachio (#10003)
* Add keyboard Pistachio

* Update keyboards/pistachio/keymaps/default/keymap.c

* Update keyboards/pistachio/keymaps/default/keymap.c

* Update keyboards/pistachio/config.h

* Fix Build error.

* Apply suggestions from code review
2020-08-17 23:46:56 -07:00
70acf36d16 [Keyboard] Added RAMA WORKS M65-B, M65-BX, M10-C, M50-A (#9991)
* Added RAMA WORKS M65-B, M65-BX, M10-C, M50-A

* Review changes

* Review changes

* Review changes

* Increase layers to 10 for M10-C, M10-B
2020-08-17 23:44:35 -07:00
c59a81b792 [Keyboard] Update bm40hsrgb with RGB Matrix support (#10044)
* bm40rgb: copy from kbfirmware.com

* bm40rgb: align default keymap

* bm40rgb: rename kb.c/h to bm40rgb.c/h

* bm40rgb: adjust with changes from the noroadsleft converter

* bm40rgb: adjust keyboard to support plant_mit and ortho_4x12 layouts

* bm40rgb: Add keyboard readme.md

* bm40rgb: add RGB Matrix support

* bm40rgb: remove bm40hsrgb layout

* Apply suggestions from PR

- Fix alignment in keyboards/bm40rgb/bm40rgb.c
- Remove redundant DESCRIPTION in keyboards/bm40rgb/config.h
- Tidy keyboards/bm40rgb/readme.md
- Tidy MANUFACTURER, PRODUCT in keyboards/bm40rgb/config.h
- Tidy rules.mk keyboards/bm40rgb/rules.mk
- Use PRODUCT_ID computed from SHASUM of keyboard name in keyboards/bm40rgb/config.h
- Define LAYOUT_all in keyboards/bm40rgb/bm40rgb.h

* Update keyboards/bm40rgb/info.json

* Tidy comment

* Apply suggestions from code review

* Apply suggestions from code review

* Revert "bm40rgb: remove bm40hsrgb layout"

This reverts commit 1f69a03551321bf8cf736150f1f651127c90585a.

* Move the rgbmatrix change over to bm40hsrgb

* Wrap g_led_config declaration with
2020-08-17 23:39:17 -07:00
3f5f6030f8 [Keyboard] BM60 RGB ISO (#9975)
* Add BM60 RGB ISO Keyboard

* fixed link to picture

* Update keyboards/bm60rgb_iso/bm60rgb_iso.c

* Update keyboards/bm60rgb_iso/config.h

* Update keyboards/bm60rgb_iso/config.h

* Update keyboards/bm60rgb_iso/info.json

* Update keyboards/bm60rgb_iso/info.json

* Update keyboards/bm60rgb_iso/rules.mk

* Delete vscode file

* Update my new username

* Disable console and commands

* Apply suggestions from code review
2020-08-17 23:28:47 -07:00
b21faf768e [Keyboard] AEBoards Constellation (#9972)
* open drain

* ext65 initial

* clean up messy code

* clean up  init

* update docs stm32 only and applies  to all 3 driver

* fix USE_GPIOIv1

* place documentation at bottom

* constellation initial

* cleanup

* fix ws2812.c

* Clean up rules.mk

* Update config.h

* Update config.h

* Update readme.md

* Update rules.mk

* Update rules.mk

* add license header
2020-08-17 23:12:55 -07:00
3b09add349 [Keymap] yoonbae81 keymap for JJ50 (#10052)
* Create keymap for jj50

* Update rules.mk

* Update rules.mk

* Update

* Update keymap.c
2020-08-17 22:03:55 -07:00
613e5752d7 latinpad ADD BOOTMAGIC_ENABLE = lite (#10056)
* Update rules.mk

* Update config.h

* Update keyboards/latinpad/config.h
2020-08-17 21:36:16 -07:00
4c82a40a0a [Keyboard] Maartenwut GH80-1800 (#9981)
* Add GH80-1800

* Update readme.md
2020-08-17 21:33:27 -07:00
86ea85e3ab [Keymap] Add via keymap for singa (#10050) 2020-08-17 21:26:42 -07:00
dp
3942b6f372 Redox: sync RGB on left and right sides (#10022) 2020-08-17 03:16:52 -07:00
c72c01afd4 [Keymap] Removing #4072 workaround! (#9995)
* move media keys in to move layer; rearragne f keys; use send_string for rev5 compatability

* remove send_string workaround for #4072
2020-08-17 03:12:40 -07:00
cb87f5fbeb [Keyboard] wilba.tech WT65-XT and WT65-XTX (#9999)
* Added wilba.tech WT65-XT, WT65-XTX

* Review changes

* Review changes
2020-08-17 02:21:02 -07:00
d02301e59d Swap git diff logic to github action when running qmk info (#9978)
* swap git diff logic to github action

* Print out layouts when linting
2020-08-17 02:12:45 -07:00
b4ae7badd4 Issue 9942: Add LSA, RSA, RCS, LSA_T, RSA_T, and RCS_T (#9943)
* Issue 9942: Add Quantum defines

Add codes to quantum_keycodes for LSA, RSA, RCS, and their corresponding _T macros

* 9942: Add documentation for new defines

Add documentation for new defines in feature request 9942. Also define SAGR and SAGR_T as aliases for RSA and RSA_T.

* Update quantum/quantum_keycodes.h

* Update docs/keycodes.md

* Update docs/keycodes.md

* Update docs/keycodes.md

* Update docs/keycodes.md
2020-08-17 02:08:15 -07:00
2ddcd81020 [Keymap] layer indicator lights (#10004)
* move caps lock indicator position

* use num lock and scroll lock as layer indicators
2020-08-17 01:33:57 -07:00
869b648088 Keymap Updates for DMQ Design SPIN, Boardsource 4x12, and Gingham (#9911)
* Updating keymaps for Gingham and DMQ Design SPIN and adding keymap for BoardSource 4x12

* Update keyboards/boardsource/4x12/keymaps/codecoffeecode/keymap.c
2020-08-17 01:32:07 -07:00
00af37a659 [Docs] Japanese translation of docs/proton_c_conversion.md (#9927)
* start translation docs/ja/proton_c_conversion.md

* Japanese translation is in progress.

* Japanese translation is in progress.

* update

* Update docs/ja/proton_c_conversion.md

* Update docs/ja/proton_c_conversion.md

* Update docs/ja/proton_c_conversion.md

* Update docs/ja/proton_c_conversion.md

* Update docs/ja/proton_c_conversion.md

* Update docs/ja/proton_c_conversion.md

* Update docs/ja/proton_c_conversion.md

* Update docs/ja/proton_c_conversion.md

* Update docs/ja/proton_c_conversion.md

* update docs/ja/_summary.md: GPIO congtrol
2020-08-17 01:19:52 -07:00
792a480244 [Keyboard] Maartenwut GH80-3700 (#9960)
* Add GH80-3700

* Add via keymap

* Update gh80_3700.h

* Update config.h

* LAYOUT_all -> LAYOUT_ortho_6x4

* Update readme.md
2020-08-16 19:15:30 -07:00
febf27361a update mikefightsbears keymap for Lily58 (#9988) 2020-08-16 18:44:56 -07:00
3b3a1b2a63 [Keyboard] Southpaw75 (#9844)
* adding southpaw75

* Added readme.md for Southpaw75

* adding info.json

* Update keyboards/southpaw75/rules.mk

* Update keyboards/southpaw75/southpaw75.h

* Update keyboards/southpaw75/keymaps/default/keymap.c

* Update keyboards/southpaw75/config.h

* Update keyboards/southpaw75/southpaw75.h

* Update keyboards/southpaw75/keymaps/default/keymap.c

* Update keyboards/southpaw75/rules.mk

* Update keyboards/southpaw75/rules.mk

* Update keyboards/southpaw75/config.h

* Update keyboards/southpaw75/readme.md

* Update keyboards/southpaw75/readme.md

* Update config.h

* Update keymap.c

* Update readme.md

* Update southpaw75.c

* Update southpaw75.h
2020-08-16 18:42:26 -07:00
194dc0984e [Keyboard] Kinesis + Pro Micro (#9944)
* [Keyboard] Kinesis + Pro Micro init

- docs for DIY
- custom matrix = lite
- a near-factory dvorak mapping
- optimized debouncing for lower latency

* chore: reformatting

* chore: update doc

* chore: cleanups according to PR feedback

* chore: PR feedback

* fix: compile error

* chore: add include

* fix: LEDs hanging after USB disconnect

* chore: enable QMK goodies by default

* chore: use semantic write pin
2020-08-16 18:37:42 -07:00
e071206c58 [Keyboard] Wabi handwire (#9704)
* cleaning up

* got some working bones

* working pretty well

* really livin' now

* all done

* copyright adjustments

* default keymap

* readme

* no descrip

* remove trailing slashes

* remove blank line

* remove trailing slashes

* clean up readme

* clean up rules spacing

* bootloader spacing

* made quick json from KLE converter

* remove postageboard mini references

* add actual manu and product values

* add make example

* rework

* remove double bootload define

* smoller image

* liscensed

* correct dimensions

* dimensions
2020-08-16 18:33:20 -07:00
48bd8263a3 Fix sendstring call in onekey ADC keymap (#10031) 2020-08-17 08:10:48 +10:00
249eab34e1 Update Japanese translation of _summary.md. (#10051) 2020-08-16 18:58:33 +01:00
7c7feb44b2 Add numpad llayout to ai03/soyuz & personal keymap (#10030)
* ai03 Soyuz

## Description
@ai03-2725 Soyuz:
1. Update `soyuz.h` (Add `LAYOUT_5x4`)
2. Added `keymap.c`
3. Added `readme.md`

* Update readme.md

* Update readme.md

* Update keymap.c

* Update keymap.c

* Update keymap.c

* Update keymap.c

* Update soyuz.h

Co-authored-by: Joel Challis <git@zvecr.com>

* Update keyboards/ai03/soyuz/soyuz.h

Co-authored-by: Joel Challis <git@zvecr.com>

* Update keyboards/ai03/soyuz/keymaps/mrsendyyk/keymap.c

Co-authored-by: Joel Challis <git@zvecr.com>

* Update keyboards/ai03/soyuz/keymaps/mrsendyyk/keymap.c

Co-authored-by: Joel Challis <git@zvecr.com>

* Update rules.mk

* Update keymap.c

* Update keymap.c

* Update keymap.c

* Update readme.md

* Update rules.mk

* Update soyuz.h

* Update soyuz.h

* Update

* Rename readme.md to README.md

* Update keymap.c

* Rename README.md to readme.md

Co-authored-by: Joel Challis <git@zvecr.com>
2020-08-16 02:26:48 +01:00
f64245b10b [keymap] Fixed an issue that long pressed alt key does not work on PSN_FN layer. (#10039) 2020-08-15 13:54:52 +01:00
acc4bedddc [Keyboard] Fix Planck/Rev6 compiler issue (#9953)
Specifically, don't want to have both RGBLight and RGB Matrix (with WS2812) enabled at the same time.  This will cause issues in usage, but apparently not when compiling.  Additionally, the led matrix was not encapsulated with preprocessor code.
2020-08-15 13:18:13 +01:00
c02666c4cb Add indicator LEDs for GHS.RAR (#10028)
* Add indicator LEDs for GHS.RAR

* Update keyboards/ghs/rar/rar.c

Co-authored-by: Joel Challis <git@zvecr.com>

Co-authored-by: Joel Challis <git@zvecr.com>
2020-08-14 14:56:27 +01:00
517f6d2c22 MSYS2: install packages for dfu-programmer, dfu-util, teensy-loader-cli (#10007) 2020-08-13 23:26:14 +01:00
156ed69b46 Fixing squiggle's layouts in the config.qmk.fm (#10019)
* the `layout`s in `info.json` should actually reflects the `layout`s
macros in the `rev1/rev1.h`.

* fixed complicated's thumb keys.
2020-08-13 23:14:19 +01:00
7c7078faf3 [Keymap] DZ60RGB - Add personal keymap (#9989)
* DZ60RGB V1 - Add personal configuration

(cherry picked from commit 313ce586e998f5604ed1b559bbe90de381f0b782)

* [Keymap] Didel - Add license headers

* [Keymap] Didel - Reformat Keymap

* [Keymap] Didel - Add named layers
2020-08-12 17:28:37 -07:00
c957eed04b [Keyboard] AEboards Ext65 rev2 (#9482)
* ext65rev2 initial

* open drain change and config

* pwm

* pwm streams

* spi

* ws2812 spi

* oled

* enable sleep

* keymap and dissable oled

* readd oleds

* nooled

* led_update_kb revised

* update and remove board specific files and add to ext65rev2.c

* Update OLED usb status

* Update  keyboards led state

* Layer state set kb

* Return state

* Update  keyboards led state

* Update OLED usb status

* merge master and merge rev folders

* add readme

* move board_init to only if OLED is enabled

* update readme

* update rules.mk

* Remove OLED from rules.mk

* Update config.h

* show AEBoards

* Update keyboards/aeboards/ext65/rev2/rules.mk
2020-08-12 17:24:40 -07:00
f1299f3292 fix handwired/swiftrax/cowfish PID and VID (#9922)
Co-authored-by: Swiftrax <swiftrax@gmail.com>
2020-08-13 00:08:41 +10:00
ce5cdc6f8a Add jian/keymaps/via/config.h (#9948) 2020-08-13 00:05:02 +10:00
e2d4cd1a41 Add Kiibohd bootloader type to bootloader.mk (#9908) 2020-08-12 12:28:20 +10:00
98e1e18f6b [Keyboard] Add Flatbread60, Vaneela, and VaneelaEx by nckiibs (#9817)
* creOnic added

* made requested changed by a moderator

* device name changed

* fixed flatbread60 files

* add vaneela and vaneelaEX support

* Update keyboards/nckiibs/vaneelaex/rules.mk

* vaneela rgb disabled

* include error fxied

* vaneelaex Via keymap fixed

* vaneelaex keymap fixed

* all fixed except clang part

* vaneelaex config.h error fixed, clang fixed

* Update keyboards/nckiibs/flatbread60/keymaps/default/keymap.c

* Update keyboards/nckiibs/flatbread60/keymaps/default/keymap.c

done

* Update keyboards/nckiibs/flatbread60/keymaps/default/keymap.c

done

* Update keyboards/nckiibs/flatbread60/keymaps/default/keymap.c

done

* Update keyboards/nckiibs/flatbread60/keymaps/default/keymap.c

done

* Update keyboards/nckiibs/flatbread60/keymaps/default/keymap.c

* Update keyboards/nckiibs/flatbread60/keymaps/default/keymap.c

* Update keyboards/nckiibs/flatbread60/keymaps/default/keymap.c

* Update keyboards/nckiibs/flatbread60/keymaps/default/keymap.c

* Update keyboards/nckiibs/flatbread60/keymaps/default/keymap.c

* Update keyboards/nckiibs/flatbread60/rules.mk

done

* line endings were fixed as requested

* Apply suggestions from code review

Thank you!

* requests applied and rebased

* pics changed

* flatbread via fixed

* Apply suggestions from code review

Thanks!

* Apply suggestions from code review

Done!

* Apply suggestions from code review except VIA keymaps

Questions regarding VIA keymaps are pending

* Update keyboards/nckiibs/flatbread60/keymaps/default/keymap.c

* flatbread via keymap changed

* Apply suggestions from code review
2020-08-09 07:50:48 -07:00
215b71716a Cannonkeys via keymap fixes (#9977) 2020-08-09 18:40:52 +10:00
1205 changed files with 48013 additions and 12546 deletions

View File

@ -16,16 +16,21 @@ jobs:
with:
fetch-depth: 0
- uses: trilom/file-changes-action@v1.2.3
id: file_changes
with:
output: '\n'
- name: Print info
run: |
git rev-parse --short HEAD
echo ${{ github.event.pull_request.base.sha }}
git diff --name-only ${{ github.event.pull_request.base.sha }}...
echo '${{ steps.file_changes.outputs.files}}'
- name: Run qmk info
shell: 'bash {0}'
run: |
QMK_CHANGES=$(git diff --name-only ${{ github.event.pull_request.base.sha }}...)
QMK_CHANGES=$(echo -e '${{ steps.file_changes.outputs.files}}')
QMK_KEYBOARDS=$(qmk list-keyboards)
exit_code=0
@ -41,7 +46,7 @@ jobs:
echo "linting ${KB}"
# TODO: info info always returns 0 - right now the only way to know failure is to inspect log lines
qmk info -kb ${KB} 2>&1 | tee /tmp/$$
qmk info -l -kb ${KB} 2>&1 | tee /tmp/$$
!(grep -cq ☒ /tmp/$$)
: $((exit_code = $exit_code + $?))
fi

View File

@ -27,6 +27,7 @@ addons:
install:
- npm install -g moxygen
script:
- git fetch --depth=50 origin $TRAVIS_BRANCH:$TRAVIS_BRANCH
- git rev-parse --short HEAD
- git diff --name-only HEAD $TRAVIS_BRANCH
- bash util/travis_test.sh

View File

@ -16,7 +16,8 @@
"*.hpp": "cpp",
"xstddef": "c",
"type_traits": "c",
"utility": "c"
"utility": "c",
"ranges": "c"
},
"[markdown]": {
"editor.trimAutoWhitespace": false,

View File

@ -27,6 +27,7 @@
# qmk-dfu QMK DFU (LUFA + blinkenlight)
# bootloadHID HIDBootFlash compatible (ATmega32A)
# USBasp USBaspLoader (ATmega328P)
# kiibohd Input:Club Kiibohd bootloader (only used on their boards)
#
# BOOTLOADER_SIZE can still be defined manually, but it's recommended
# you add any possible configuration to this list
@ -89,7 +90,19 @@ ifeq ($(strip $(BOOTLOADER)), lufa-ms)
BOOTLOADER_SIZE = 6144
FIRMWARE_FORMAT = bin
endif
ifdef BOOTLOADER_SIZE
OPT_DEFS += -DBOOTLOADER_SIZE=$(strip $(BOOTLOADER_SIZE))
endif
ifeq ($(strip $(BOOTLOADER)), kiibohd)
OPT_DEFS += -DBOOTLOADER_KIIBOHD
ifeq ($(strip $(MCU_ORIG)), MK20DX128)
MCU_LDSCRIPT = MK20DX128BLDR4
endif
ifeq ($(strip $(MCU_ORIG)), MK20DX256)
MCU_LDSCRIPT = MK20DX256BLDR8
endif
DFU_ARGS = -d 1C11:B007
DFU_SUFFIX_ARGS = -v 1C11 -p B007
endif

View File

@ -16,7 +16,6 @@ include common.mk
KEYBOARD_FILESAFE := $(subst /,_,$(KEYBOARD))
TARGET ?= $(KEYBOARD_FILESAFE)_$(KEYMAP)
KEYBOARD_OUTPUT := $(BUILD_DIR)/obj_$(KEYBOARD_FILESAFE)
STM32_PATH := quantum/stm32
# Force expansion
TARGET := $(TARGET)
@ -138,7 +137,7 @@ endif
ifeq ($(strip $(CONVERT_TO_PROTON_C)), yes)
TARGET := $(TARGET)_proton_c
include $(STM32_PATH)/proton_c.mk
include platforms/chibios/GENERIC_STM32_F303XC/configs/proton_c.mk
OPT_DEFS += -DCONVERT_TO_PROTON_C
endif
@ -148,12 +147,6 @@ endif
include quantum/mcu_selection.mk
ifdef MCU_FAMILY
OPT_DEFS += -DQMK_STM32
KEYBOARD_PATHS += $(STM32_PATH)
endif
# Find all the C source files to be compiled in subfolders.
KEYBOARD_SRC :=

View File

@ -264,7 +264,7 @@ ifeq ($(strip $(BACKLIGHT_CUSTOM_DRIVER)), yes)
BACKLIGHT_DRIVER := custom
endif
VALID_BACKLIGHT_TYPES := pwm software custom
VALID_BACKLIGHT_TYPES := pwm timer software custom
BACKLIGHT_ENABLE ?= no
BACKLIGHT_DRIVER ?= pwm
@ -304,6 +304,12 @@ ifeq ($(strip $(WS2812_DRIVER_REQUIRED)), yes)
SRC += ws2812.c
else
SRC += ws2812_$(strip $(WS2812_DRIVER)).c
ifeq ($(strip $(PLATFORM)), CHIBIOS)
ifeq ($(strip $(WS2812_DRIVER)), pwm)
OPT_DEFS += -DSTM32_DMA_REQUIRED=TRUE
endif
endif
endif
# add extra deps
@ -529,3 +535,19 @@ ifeq ($(strip $(AUTO_SHIFT_ENABLE)), yes)
OPT_DEFS += -DAUTO_SHIFT_MODIFIERS
endif
endif
JOYSTICK_ENABLE ?= no
ifneq ($(strip $(JOYSTICK_ENABLE)), no)
OPT_DEFS += -DJOYSTICK_ENABLE
SRC += $(QUANTUM_DIR)/process_keycode/process_joystick.c
SRC += $(QUANTUM_DIR)/joystick.c
endif
ifeq ($(strip $(JOYSTICK_ENABLE)), analog)
OPT_DEFS += -DANALOG_JOYSTICK_ENABLE
SRC += analog.c
endif
ifeq ($(strip $(JOYSTICK_ENABLE)), digital)
OPT_DEFS += -DDIGITAL_JOYSTICK_ENABLE
endif

148
docs/ChangeLog/20200829.md Normal file
View File

@ -0,0 +1,148 @@
# QMK Breaking Change - 2020 Aug 29 Changelog
Four times a year QMK runs a process for merging Breaking Changes. A Breaking Change is any change which modifies how QMK behaves in a way that is incompatible or potentially dangerous. We limit these changes to 4 times per year so that users can have confidence that updating their QMK tree will not break their keymaps.
## Changes Requiring User Action :id=changes-requiring-user-action
### Relocated Keyboards :id-relocated-keyboards
#### The Key Company project consolidation ([#9547](https://github.com/qmk/qmk_firmware/pull/9547))
#### relocating boards by flehrad to flehrad/ folder ([#9635](https://github.com/qmk/qmk_firmware/pull/9635))
Keyboards released by The Key Company and keyboards designed by flehrad have moved to vendor folders. If you own any of the keyboards listed below, please use the new names to compile your firmware moving forward.
Old Name | New Name
:--------------------- | :------------------
candybar/lefty | tkc/candybar/lefty
candybar/righty | tkc/candybar/righty
m0lly | tkc/m0lly
tkc1800 | tkc/tkc1800
bigswitch | flehrad/bigswitch
handwired/downbubble | flehrad/downbubble
handwired/numbrero | flehrad/numbrero
snagpad | flehrad/snagpad
handwired/tradestation | flehrad/tradestation
### Updated Keyboard Codebases :id=keyboard-updates
#### Keebio RGB wiring update ([#7754](https://github.com/qmk/qmk_firmware/pull/7754))
This pull request changes the configuration for Keebio split boards to use the same RGB strip wiring for each half, which provides the following improvements:
* Easier wiring due to one fewer wire needed (the wire between left DOut to extra data pin) and the fact that wiring is the same for both halves.
* RGB LEDs can be controlled by each half now instead of just master half.
* Extra data line is freed up to allow for I2C usage instead of serial.
If you have customized the value of `RGBLED_SPLIT` for your keymap, you will need to undefine it using `#undef RGBLED_SPLIT` before defining it to your customized value.
This change affects:
* BFO-9000
* Fourier
* Iris rev2
* Levinson, revs. 1 and 2
* Nyquist, revs. 1 and 2
* Quefrency rev1
* Viterbi, revs. 1 and 2
### Changes to Core Functionality :id=core-updates
* Bigger Combo index ([#9318](https://github.com/qmk/qmk_firmware/pull/9318))
Allows the Combo feature to support more than 256 combos.
Any fork that uses `process_combo_event` needs to update the function's first argument to `uint16_t`:
* Old function: `void process_combo_event(uint8_t combo_index, bool pressed)`
* New function: `void process_combo_event(uint16_t combo_index, bool pressed)`
## Core Changes :id=core-changes
### Fixes :id=core-fixes
* Mousekeys: scrolling acceleration is no longer coupled to mouse movement acceleration ([#9174](https://github.com/qmk/qmk_firmware/pull/9174))
* Keymap Extras: correctly assign Question Mark in Czech layout ([#9987](https://github.com/qmk/qmk_firmware/pull/9987))
### Additions and Enhancements :id=core-additions
* allow for WS2812 PWM to work on DMAMUX-capable devices ([#9471](https://github.com/qmk/qmk_firmware/pull/9471))
* Newer STM32 MCUs have a DMAMUX peripheral, which allows mapping of DMAs to different DMA streams, rather than hard-defining the target streams in silicon.
* Affects STM32L4+ devices, as well as the soon-to-be-supported-by-QMK STM32G4/H7 families.
* Tested on F303/Proton C (ChibiOS v19, non-DMAMUX), G474 (ChibiOS v20, with DMAMUX).
* dual-bank STM32 bootloader support ([#8778](https://github.com/qmk/qmk_firmware/pull/8778) and [#9738](https://github.com/qmk/qmk_firmware/pull/9738))
* Adds support for STM32 dual-bank flash bootloaders, by toggling a GPIO during early init in order to charge an RC circuit attached to `BOOT0`.
* The main rationale behind this is that dual-bank STM32 devices unconditionally execute user-mode code, regardless of whether or not the user-mode code jumps to the bootloader. If either flash bank is valid (and `BOOT0` is low), then the built-in bootloader will skip any sort of DFU.
* This PR allows for the initialisation sequencing to charge the RC circuit based on the example circuit posted on Discord, effectively pulling `BOOT0` high before issuing the system reset. As the RC circuit takes a while to discharge, the system reset executes the ROM bootloader which subsequently sees `BOOT0` high, and starts executing the DFU routines.
* Tested with STM32L082 (with current QMK+current ChibiOS), and STM32G474 (against ChibiOS 20.x).
* update Space Cadet and Tap Dance features to use Custom Tapping Term when appropriate ([#6259](https://github.com/qmk/qmk_firmware/pull/6259))
* For the Tap Dance feature, this completely removes the need for the `ACTION_TAP_DANCE_FN_ADVANCED_TIME` dance.
* HID Joystick Interface ([#4226](https://github.com/qmk/qmk_firmware/pull/4226) and [#9949](https://github.com/qmk/qmk_firmware/pull/9949 "Fix Joystick Compile Issues"))
* This implements a joystick feature, including a joystick_task function called from TMK, specific keycodes for joystick buttons and a USB HID interface.
* Tested on V-USB backend and Proton C; compiles but untested on LUFA.
* In order to test, you have to add `JOYSTICK_ENABLE = yes` to your `rules.mk` and
```c
#define JOYSTICK_BUTTON_COUNT 8
#define JOYSTICK_AXES_COUNT 2
```
in your config.h.
* Christmas RGB Underglow animation now fades between green and red ([#7648](https://github.com/qmk/qmk_firmware/pull/7648))
* `RGBLIGHT_EFFECT_CHRISTMAS_INTERVAL` has been greatly decreased; please check your animation if you have customized this value.
* layer state now initializes on startup ([#8318](https://github.com/qmk/qmk_firmware/pull/8318))
* This should produce more consistent behavior between the two functions and layer masks.
* added support for HSV->RGB conversion without using CIE curve ([#9856](https://github.com/qmk/qmk_firmware/pull/9856))
* added NOEEPROM functions for RGB Matrix ([#9487](https://github.com/qmk/qmk_firmware/pull/9487))
* Added eeprom_helpers for toggle, mode, sethsv, speed, similar to rgblight versions.
* Added set_speed function.
* Added helper functions, similar to those in rgblight, in order to add NOEEPROM versions of toggle, step, hue, sat, val, and speed.
* Minor: spelling correction for EEPROM in a debug message.
* flashing firmware using `st-flash` utility from [STLink Tools](https://github.com/stlink-org/stlink) is now supported ([#9964](https://github.com/qmk/qmk_firmware/pull/9964))
* add ability to dump all makefile variables for the specified target ([#8256](https://github.com/qmk/qmk_firmware/pull/8256))
* Adds a new subtarget to builds, `dump_vars`, which allows for printing out all the variables that make knows about, after all substitutions occur.
* Example: `make handwired/onekey/proton_c:default:dump_vars`
* add ability to change the Auto Shift timeout in real time ([#8441](https://github.com/qmk/qmk_firmware/pull/8441))
* added a timer implementation for backlight on ChibiOS ([#8291](https://github.com/qmk/qmk_firmware/pull/8291))
* added a third endpoint to V-USB keyboards ([#9020](https://github.com/qmk/qmk_firmware/pull/9020))
* added a method to read the OLED display buffer from user space ([#8777](https://github.com/qmk/qmk_firmware/pull/8777))
* K-Type refactor ([#9864](https://github.com/qmk/qmk_firmware/pull/9864))
* The K-Type has been refactored to use QMK's native matrix scanning routine, and now has partial support for the RGB Matrix feature.
* Joysticks can now be used without defining analog pins ([#10169](https://github.com/qmk/qmk_firmware/pull/10169))
### Clean-ups and Optimizations :id=core-optimizations
* iWRAP protocol removed ([#9284](https://github.com/qmk/qmk_firmware/pull/9284))
* work begun for consolidation of ChibiOS platform files ([#8327](https://github.com/qmk/qmk_firmware/pull/8327) and [#9315](https://github.com/qmk/qmk_firmware/pull/9315))
* Start of the consolidation work to move the ChibiOS board definitions as well as the default set of configuration files for existing board definitions used by keyboards.
* Uses `/platforms/chibios` as previously discussed on discord.
* Consolidates the Proton C configs into the generic F303 definitions.
* Allows for defining a default set of `chconf.h`, `halconf.h`, and `mcuconf.h` files within the platform definition, which is able to be overridden by the keyboard directly, though include path ordering.
* Adds template `chconf.h`, `halconf.h`, `mcuconf.h`, and `board.h` that can be dropped into a keyboard directory, in order to override rather than replace the entire contents of the respective files.
* Removed Proton C QMK board definitions, falling back to ChibiOS board definitions with QMK overrides.
* Various tidy-ups for USB descriptor code ([#9005](https://github.com/qmk/qmk_firmware/pull/9005))
* Renamed `keyboard_led_stats` in lufa.c and ChibiOS usb_main.c to `keyboard_led_state`, as well as `vusb_keyboard_leds`, for consistency
* Formatted CDC and MIDI descriptors better
* Removed `ENDPOINT_CONFIG` macro, it seems pointless and removes the need for endpoint address defines in the middle of the endpoint numbering enum
* Fixed (possibly?) V-USB `GET_REPORT` request handling. Not sure about this one, but the existing code appears to always return an empty report - now `send_keyboard` sets this variable to the current report, matching what the LUFA code does.
* converted `CONSUMER2BLUEFRUIT()` and `CONSUMER2RN42()` macros to static inline functions ([#9055](https://github.com/qmk/qmk_firmware/pull/9055))
* Additional cleanups for V-USB code ([#9310](https://github.com/qmk/qmk_firmware/pull/9310))
* Removing the UART stuff entirely, now that we have Console support. Also fixing up various other things; switching some `debug()` calls to `dprintf()`, moved `raw_hid_report` out of the way so that we can implement the shared endpoint stuff.
* removed inclusion of `adafruit_ble.h` from `ssd1306.c` ([#9355](https://github.com/qmk/qmk_firmware/pull/9355))
* `outputselect.c` is no longer compiled if Bluetooth is disabled ([#9356](https://github.com/qmk/qmk_firmware/pull/9356))
* `analogRead()` deprecated in favor of `analogReadPin()` ([#9023](https://github.com/qmk/qmk_firmware/pull/9023))
* forcibly disable NKRO on V-USB controllers ([#9054](https://github.com/qmk/qmk_firmware/pull/9054))
* removed warning if running backlight on STM32F072 ([#10040](https://github.com/qmk/qmk_firmware/pull/10040))
* removed unused CORTEX_VTOR_INIT rules.mk option ([#10053](https://github.com/qmk/qmk_firmware/pull/10053))
* improved handling for enabling Link Time Optimization ([#9832](https://github.com/qmk/qmk_firmware/pull/9832))
* streamline rules for supporting Kiibohd bootloader ([#10129](https://github.com/qmk/qmk_firmware/pull/10129))
* Define `STM32_DMA_REQUIRED` when using DMA-based WS2812 driver on STM32 ([#10127](https://github.com/qmk/qmk_firmware/pull/10127))
* fix DMA stream ID calculation in ws2812_pwm ([#10008](https://github.com/qmk/qmk_firmware/pull/10008))
* remove support for Adafruit EZ Key Bluetooth controller ([#10103](https://github.com/qmk/qmk_firmware/pull/10103))
## QMK Infrastructure and Internals :id=qmk-internals
* Attempt to fix CI for non-master branches. ([#9308](https://github.com/qmk/qmk_firmware/pull/9308))
* Actually fetch the branch we're attempting to compare against.
* Run `qmk cformat` on `develop` branch ([#9501](https://github.com/qmk/qmk_firmware/pull/9501))
* minor refactor of Bluetooth API ([#9905](https://github.com/qmk/qmk_firmware/pull/9905))

View File

@ -103,6 +103,7 @@
* [DIP Switch](feature_dip_switch.md)
* [Encoders](feature_encoders.md)
* [Haptic Feedback](feature_haptic_feedback.md)
* [Joystick](feature_joystick.md)
* [Proton C Conversion](proton_c_conversion.md)
* [PS/2 Mouse](feature_ps2_mouse.md)
* [Split Keyboard](feature_split_keyboard.md)

View File

@ -45,9 +45,9 @@ Then place this include at the top of your code:
Note that some of these pins are doubled-up on ADCs with the same channel. This is because the pins can be used for either ADC.
Also note that the F0 and F3 use different numbering schemes. The F0 has a single ADC and the channels are 0-based, whereas the F3 has 4 ADCs and the channels are 1 based. This is because the F0 uses the `ADCv1` implementation of the ADC, whereas the F3 uses the `ADCv3` implementation.
Also note that the F0 and F3 use different numbering schemes. The F0 has a single ADC and the channels are 0-indexed, whereas the F3 has 4 ADCs and the channels are 1-indexed. This is because the F0 uses the `ADCv1` implementation of the ADC, whereas the F3 uses the `ADCv3` implementation.
|ADC|Channel|STM32F0XX|STM32F3XX|
|ADC|Channel|STM32F0xx|STM32F3xx|
|---|-------|---------|---------|
|1 |0 |`A0` | |
|1 |1 |`A1` |`A0` |
@ -122,32 +122,29 @@ Also note that the F0 and F3 use different numbering schemes. The F0 has a singl
|Function |Description |
|----------------------------|-------------------------------------------------------------------------------------------------------------------|
|`analogReference(mode)` |Sets the analog voltage reference source. Must be one of `ADC_REF_EXTERNAL`, `ADC_REF_POWER` or `ADC_REF_INTERNAL`.|
|`analogRead(pin)` |Reads the value from the specified Arduino pin, eg. `4` for ADC6 on the ATmega32U4. |
|`analogReadPin(pin)` |Reads the value from the specified QMK pin, eg. `F6` for ADC6 on the ATmega32U4. |
|`pinToMux(pin)` |Translates a given QMK pin to a mux value. If an unsupported pin is given, returns the mux value for "0V (GND)". |
|`analogReadPin(pin)` |Reads the value from the specified pin, eg. `F6` for ADC6 on the ATmega32U4. |
|`pinToMux(pin)` |Translates a given pin to a mux value. If an unsupported pin is given, returns the mux value for "0V (GND)". |
|`adc_read(mux)` |Reads the value from the ADC according to the specified mux. See your MCU's datasheet for more information. |
### ARM
Note that care was taken to match all of the functions used for AVR devices, however complications in the ARM platform prevent that from always being possible. For example, the `STM32` chips do not have assigned Arduino pins. We could use the default pin numbers, but those numbers change based on the package type of the device. For this reason, please specify your target pins with their identifiers (`A0`, `F3`, etc.). Also note that there are some variants of functions that accept the target ADC for the pin. Some pins can be used for multiple ADCs, and this specified can help you pick which ADC will be used to interact with that pin.
|Function |Description |
|----------------------------|--------------------------------------------------------------------------------------------------------------------|
|`analogReadPin(pin)` |Reads the value from the specified QMK pin, eg. `A0` for channel 0 on the STM32F0 and ADC1 channel 1 on the STM32F3. Note that if a pin can be used for multiple ADCs, it will pick the lower numbered ADC for this function. eg. `C0` will be channel 6 of ADC 1 when it could be used for ADC 2 as well.|
|`analogReadPinAdc(pin, adc)`|Reads the value from the specified QMK pin and ADC, eg. `C0, 1` will read from channel 6, ADC 2 instead of ADC 1. Note that the ADCs are 0-indexed for this function.|
|`pinToMux(pin)` |Translates a given QMK pin to a channel and ADC combination. If an unsupported pin is given, returns the mux value for "0V (GND)".|
|`adc_read(mux)` |Reads the value from the ADC according to the specified pin and adc combination. See your MCU's datasheet for more information.|
|Function |Description |
|----------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|`analogReadPin(pin)` |Reads the value from the specified pin, eg. `A0` for channel 0 on the STM32F0 and ADC1 channel 1 on the STM32F3. Note that if a pin can be used for multiple ADCs, it will pick the lower numbered ADC for this function. eg. `C0` will be channel 6 of ADC 1 when it could be used for ADC 2 as well.|
|`analogReadPinAdc(pin, adc)`|Reads the value from the specified pin and ADC, eg. `C0, 1` will read from channel 6, ADC 2 instead of ADC 1. Note that the ADCs are 0-indexed for this function. |
|`pinToMux(pin)` |Translates a given pin to a channel and ADC combination. If an unsupported pin is given, returns the mux value for "0V (GND)". |
|`adc_read(mux)` |Reads the value from the ADC according to the specified pin and ADC combination. See your MCU's datasheet for more information. |
## Configuration
## ARM
The ARM implementation of the ADC has a few additional options that you can override in your own keyboards and keymaps to change how it operates.
The ARM implementation of the ADC has a few additional options that you can override in your own keyboards and keymaps to change how it operates. Please consult the corresponding `hal_adc_lld.h` in ChibiOS for your specific microcontroller for further documentation on your available options.
|`#define` |Type |Default |Description|
|-------------------|------|---------------------|-----------|
|ADC_CIRCULAR_BUFFER|`bool`|`false` |If `TRUE`, then the implementation will use a circular buffer.|
|ADC_NUM_CHANNELS |`int` |`1` |Sets the number of channels that will be scanned as part of an ADC operation. The current implementation only supports `1`.|
|ADC_BUFFER_DEPTH |`int` |`2` |Sets the depth of each result. Since we are only getting a 12-bit result by default, we set this to `2` bytes so we can contain our one value. This could be set to 1 if you opt for a 8-bit or lower result.|
|ADC_SAMPLING_RATE |`int` |`ADC_SMPR_SMP_1P5` |Sets the sampling rate of the ADC. By default, it is set to the fastest setting. Please consult the corresponding `hal_adc_lld.h` in ChibiOS for your specific microcontroller for further documentation on your available options.|
|ADC_RESOLUTION |`int` |`ADC_CFGR1_RES_12BIT`|The resolution of your result. We choose 12 bit by default, but you can opt for 12, 10, 8, or 6 bit. Please consult the corresponding `hal_adc_lld.h` in ChibiOS for your specific microcontroller for further documentation on your available options.|
|`#define` |Type |Default |Description |
|---------------------|------|---------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|`ADC_CIRCULAR_BUFFER`|`bool`|`false` |If `true`, then the implementation will use a circular buffer. |
|`ADC_NUM_CHANNELS` |`int` |`1` |Sets the number of channels that will be scanned as part of an ADC operation. The current implementation only supports `1`. |
|`ADC_BUFFER_DEPTH` |`int` |`2` |Sets the depth of each result. Since we are only getting a 12-bit result by default, we set this to 2 bytes so we can contain our one value. This could be set to 1 if you opt for an 8-bit or lower result.|
|`ADC_SAMPLING_RATE` |`int` |`ADC_SMPR_SMP_1P5` |Sets the sampling rate of the ADC. By default, it is set to the fastest setting. |
|`ADC_RESOLUTION` |`int` |`ADC_CFGR1_RES_12BIT`|The resolution of your result. We choose 12 bit by default, but you can opt for 12, 10, 8, or 6 bit. |

View File

@ -6,22 +6,23 @@ The breaking change period is when we will merge PR's that change QMK in dangero
## What has been included in past Breaking Changes?
* [2020 Aug 29](ChangeLog/20200829.md)
* [2020 May 30](ChangeLog/20200530.md)
* [2020 Feb 29](ChangeLog/20200229.md)
* [2019 Aug 30](ChangeLog/20190830.md)
## When is the next Breaking Change?
The next Breaking Change is scheduled for Aug 29, 2020.
The next Breaking Change is scheduled for November 28, 2020.
### Important Dates
* [x] 2020 May 30 - `develop` is created. It will be rebased weekly.
* [ ] 2020 Aug 1 - `develop` closed to new PR's.
* [ ] 2020 Aug 1 - Call for testers.
* [ ] 2020 Aug 27 - `master` is locked, no PR's merged.
* [ ] 2020 Aug 29 - Merge `develop` to `master`.
* [ ] 2020 Aug 29 - `master` is unlocked. PR's can be merged again.
* [x] 2020 Aug 29 - `develop` is created. It will be rebased weekly.
* [ ] 2020 Oct 31 - `develop` closed to new PR's.
* [ ] 2020 Oct 31 - Call for testers.
* [ ] 2020 Nov 26 - `master` is locked, no PR's merged.
* [ ] 2020 Nov 28 - Merge `develop` to `master`.
* [ ] 2020 Nov 28 - `master` is unlocked. PR's can be merged again.
## What changes will be included?

View File

@ -324,11 +324,9 @@ This is a [make](https://www.gnu.org/software/make/manual/make.html) file that i
```
* `LAYOUTS`
* A list of [layouts](feature_layouts.md) this keyboard supports.
* `LINK_TIME_OPTIMIZATION_ENABLE`
* `LTO_ENABLE`
* Enables Link Time Optimization (LTO) when compiling the keyboard. This makes the process take longer, but it can significantly reduce the compiled size (and since the firmware is small, the added time is not noticeable).
However, this will automatically disable the legacy TMK Macros and Functions features, as these break when LTO is enabled. It does this by automatically defining `NO_ACTION_MACRO` and `NO_ACTION_FUNCTION`. (Note: This does not affect QMK [Macros](feature_macros.md) and [Layers](feature_layers.md).)
* `LTO_ENABLE`
* Has the same meaning as `LINK_TIME_OPTIMIZATION_ENABLE`. You can use `LTO_ENABLE` instead of `LINK_TIME_OPTIMIZATION_ENABLE`.
## AVR MCU Options
* `MCU = atmega32u4`
@ -373,10 +371,8 @@ Use these to enable or disable building certain features. The more you have enab
* MIDI controls
* `UNICODE_ENABLE`
* Unicode
* `BLUETOOTH_ENABLE`
* Legacy option to Enable Bluetooth with the Adafruit EZ-Key HID. See BLUETOOTH
* `BLUETOOTH`
* Current options are AdafruitEzKey, AdafruitBLE, RN42
* Current options are AdafruitBLE, RN42
* `SPLIT_KEYBOARD`
* Enables split keyboard support (dual MCU like the let's split and bakingpy's boards) and includes all necessary files located at quantum/split_common
* `CUSTOM_MATRIX`

View File

@ -139,7 +139,7 @@ completely normal and with no intention of shifted keys.
`KC_ASRP`. The keyboard will type by itself the value of your
`AUTO_SHIFT_TIMEOUT`.
7. Update `AUTO_SHIFT_TIMEOUT` in your `config.h` with the value reported.
8. Remove `AUTO_SHIFT_SETUP` from your `config.h`.
8. Add `AUTO_SHIFT_NO_SETUP` to your `config.h`.
9. Remove the key bindings `KC_ASDN`, `KC_ASUP` and `KC_ASRP`.
10. Compile and upload your new firmware.

View File

@ -160,8 +160,6 @@ See the ST datasheet for your particular MCU to determine these values. Unless y
Currently only hardware PWM is supported, not timer assisted, and does not provide automatic configuration.
?> Backlight support for STM32F072 has had limited testing, so YMMV. If unsure, set `BACKLIGHT_ENABLE = no` in your `rules.mk`.
### Software PWM Driver :id=software-pwm-driver
In this mode, PWM is "emulated" while running other keyboard tasks. It offers maximum hardware compatibility without extra platform configuration. The tradeoff is the backlight might jitter when the keyboard is busy. To enable, add this to your `rules.mk`:

View File

@ -2,11 +2,10 @@
## Bluetooth Known Supported Hardware
Currently Bluetooth support is limited to AVR based chips. For Bluetooth 2.1, QMK has support for RN-42 modules and the Bluefruit EZ-Key, the latter of which is not produced anymore. For more recent BLE protocols, currently only the Adafruit Bluefruit SPI Friend is directly supported. BLE is needed to connect to iOS devices. Note iOS does not support mouse input.
Currently Bluetooth support is limited to AVR based chips. For Bluetooth 2.1, QMK has support for RN-42 modules. For more recent BLE protocols, currently only the Adafruit Bluefruit SPI Friend is directly supported. BLE is needed to connect to iOS devices. Note iOS does not support mouse input.
|Board |Bluetooth Protocol |Connection Type |rules.mk |Bluetooth Chip|
|----------------------------------------------------------------|----------------------------|----------------|---------------------------|--------------|
|[Adafruit EZ-Key HID](https://www.adafruit.com/product/1535) |Bluetooth Classic | UART |`BLUETOOTH = AdafruitEZKey` | |
|Roving Networks RN-42 (Sparkfun Bluesmirf) |Bluetooth Classic | UART |`BLUETOOTH = RN42` | RN-42 |
|[Bluefruit LE SPI Friend](https://www.adafruit.com/product/2633)|Bluetooth Low Energy | SPI |`BLUETOOTH = AdafruitBLE` | nRF51822 |
@ -24,16 +23,12 @@ Currently The only bluetooth chipset supported by QMK is the Adafruit Bluefruit
A Bluefruit UART friend can be converted to an SPI friend, however this [requires](https://github.com/qmk/qmk_firmware/issues/2274) some reflashing and soldering directly to the MDBT40 chip.
## Adafruit EZ-Key hid
This requires [some hardware changes](https://www.reddit.com/r/MechanicalKeyboards/comments/3psx0q/the_planck_keyboard_with_bluetooth_guide_and/?ref=search_posts), but can be enabled via the Makefile. The firmware will still output characters via USB, so be aware of this when charging via a computer. It would make sense to have a switch on the Bluefruit to turn it off at will.
<!-- FIXME: Document bluetooth support more completely. -->
## Bluetooth Rules.mk Options
Use only one of these
* BLUETOOTH_ENABLE = yes (Legacy Option)
* BLUETOOTH = RN42
* BLUETOOTH = AdafruitEZKey
* BLUETOOTH = AdafruitBLE
## Bluetooth Keycodes

View File

@ -22,7 +22,7 @@ To finish the recording, press the `DYN_REC_STOP` layer button. You can also pre
To replay the macro, press either `DYN_MACRO_PLAY1` or `DYN_MACRO_PLAY2`.
It is possible to replay a macro as part of a macro. It's ok to replay macro 2 while recording macro 1 and vice versa but never create recursive macros i.e. macro 1 that replays macro 1. If you do so and the keyboard will get unresponsive, unplug the keyboard and plug it again. You can disable this completly by defining `DYNAMIC_MACRO_NO_NESTING` in your `config.h` file.
It is possible to replay a macro as part of a macro. It's ok to replay macro 2 while recording macro 1 and vice versa but never create recursive macros i.e. macro 1 that replays macro 1. If you do so and the keyboard will get unresponsive, unplug the keyboard and plug it again. You can disable this completely by defining `DYNAMIC_MACRO_NO_NESTING` in your `config.h` file.
?> For the details about the internals of the dynamic macros, please read the comments in the `process_dynamic_macro.h` and `process_dynamic_macro.c` files.

147
docs/feature_joystick.md Normal file
View File

@ -0,0 +1,147 @@
## Joystick
The keyboard can be made to be recognized as a joystick HID device by the operating system.
This is enabled by adding `JOYSTICK_ENABLE` to `rules.mk`. You can set this value to `analog`, `digital`, or `no`.
!> Joystick support is not currently available on V-USB devices.
The joystick feature provides two services:
* reading analog input devices (eg. potentiometers)
* sending gamepad HID reports
Both services can be used without the other, depending on whether you just want to read a device but not send gamepad reports (for volume control for instance)
or send gamepad reports based on values computed by the keyboard.
### Analog Input
To use analog input you must first enable it in `rules.mk`:
```makefile
JOYSTICK_ENABLE = analog
```
An analog device such as a potentiometer found on a gamepad's analog axes is based on a [voltage divider](https://en.wikipedia.org/wiki/Voltage_divider).
It is composed of three connectors linked to the ground, the power input and power output (usually the middle one). The power output holds the voltage that varies based on the position of the cursor,
which value will be read using your MCU's [ADC](https://en.wikipedia.org/wiki/Analog-to-digital_converter).
Depending on which pins are already used by your keyboard's matrix, the rest of the circuit can get a little bit more complicated,
feeding the power input and ground connection through pins and using diodes to avoid bad interactions with the matrix scanning procedures.
### Configuring the Joystick
By default, two axes and eight buttons are defined. This can be changed in your `config.h`:
```c
// Max 32
#define JOYSTICK_BUTTON_COUNT 16
// Max 6: X, Y, Z, Rx, Ry, Rz
#define JOYSTICK_AXES_COUNT 3
```
When defining axes for your joystick, you have to provide a definition array. You can do this from your keymap.c file.
A joystick will either be read from an input pin that allows the use of the ADC, or can be virtual, so that its value is provided by your code.
You have to define an array of type ''joystick_config_t'' and of proper size.
There are three ways for your circuit to work with the ADC, that relies on the use of 1, 2 or 3 pins of the MCU:
* 1 pin: your analog device is directly connected to your device GND and VCC. The only pin used is the ADC pin of your choice.
* 2 pins: your analog device is powered through a pin that allows toggling it on or off. The other pin is used to read the input value through the ADC.
* 3 pins: both the power input and ground are connected to pins that must be set to a proper state before reading and restored afterwards.
The configuration of each axis is performed using one of four macros:
* `JOYSTICK_AXIS_VIRTUAL`: no ADC reading must be performed, that value will be provided by keyboard/keymap-level code
* `JOYSTICK_AXIS_IN(INPUT_PIN, LOW, REST, HIGH)`: a voltage will be read on the provided pin, which must be an ADC-capable pin.
* `JOYSTICK_AXIS_IN_OUT(INPUT_PIN, OUTPUT_PIN, LOW, REST, HIGH)`: the provided `OUTPUT_PIN` will be set high before `INPUT_PIN` is read.
* `JOYSTICK_AXIS_IN_OUT_GROUND(INPUT_PIN, OUTPUT_PIN, GROUND_PIN, LOW, REST, HIGH)`: the `OUTPUT_PIN` will be set high and `GROUND_PIN` will be set low before reading from `INPUT_PIN`.
In any case where an ADC reading takes place (when `INPUT_PIN` is provided), additional `LOW`, `REST` and `HIGH` parameters are used.
These implement the calibration of the analog device by defining the range of read values that will be mapped to the lowest, resting position and highest possible value for the axis (-127 to 127).
In practice, you have to provide the lowest/highest raw ADC reading, and the raw reading at resting position, when no deflection is applied. You can provide inverted `LOW` and `HIGH` to invert the axis.
For instance, an axes configuration can be defined in the following way:
```c
//joystick config
joystick_config_t joystick_axes[JOYSTICK_AXES_COUNT] = {
[0] = JOYSTICK_AXIS_IN_OUT_GROUND(A4, B0, A7, 900, 575, 285),
[1] = JOYSTICK_AXIS_VIRTUAL
};
```
When the ADC reads 900 or higher, the returned axis value will be -127, whereas it will be 127 when the ADC reads 285 or lower. Zero is returned when 575 is read.
In this example, the first axis will be read from the `A4` pin while `B0` is set high and `A7` is set low, using `analogReadPin()`, whereas the second axis will not be read.
In order to give a value to the second axis, you can do so in any customizable entry point: as an action, in `process_record_user()` or in `matrix_scan_user()`, or even in `joystick_task()` which is called even when no key has been pressed.
You assign a value by writing to `joystick_status.axes[axis_index]` a signed 8-bit value (ranging from -127 to 127). Then it is necessary to assign the flag `JS_UPDATED` to `joystick_status.status` in order for an updated HID report to be sent.
The following example writes two axes based on keypad presses, with `KC_P5` as a precision modifier:
```c
#ifdef ANALOG_JOYSTICK_ENABLE
static uint8_t precision_val = 70;
static uint8_t axesFlags = 0;
enum axes {
Precision = 1,
Axis1High = 2,
Axis1Low = 4,
Axis2High = 8,
Axis2Low = 16
};
#endif
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch(keycode) {
#ifdef ANALOG_JOYSTICK_ENABLE
// virtual joystick
# if JOYSTICK_AXES_COUNT > 1
case KC_P8:
if (record->event.pressed) {
axesFlags |= Axis2Low;
} else {
axesFlags &= ~Axis2Low;
}
joystick_status.status |= JS_UPDATED;
break;
case KC_P2:
if (record->event.pressed) {
axesFlags |= Axis2High;
} else {
axesFlags &= ~Axis2High;
}
joystick_status.status |= JS_UPDATED;
break;
# endif
case KC_P4:
if (record->event.pressed) {
axesFlags |= Axis1Low;
} else {
axesFlags &= ~Axis1Low;
}
joystick_status.status |= JS_UPDATED;
break;
case KC_P6:
if (record->event.pressed) {
axesFlags |= Axis1High;
} else {
axesFlags &= ~Axis1High;
}
joystick_status.status |= JS_UPDATED;
break;
case KC_P5:
if (record->event.pressed) {
axesFlags |= Precision;
} else {
axesFlags &= ~Precision;
}
joystick_status.status |= JS_UPDATED;
break;
#endif
}
return true;
}
```
### Triggering Joystick Buttons
Joystick buttons are normal Quantum keycodes, defined as `JS_BUTTON0` to `JS_BUTTON31`, depending on the number of buttons you have configured.
To trigger a joystick button, just add the corresponding keycode to your keymap.

View File

@ -72,6 +72,43 @@ static void render_logo(void) {
}
```
## Buffer Read Example
For some purposes, you may need to read the current state of the OLED display
buffer. The `oled_read_raw` function can be used to safely read bytes from the
buffer.
In this example, calling `fade_display` in the `oled_task_user` function will
slowly fade away whatever is on the screen by turning random pixels black over
time.
```c
//Setup some mask which can be or'd with bytes to turn off pixels
const uint8_t single_bit_masks[8] = {127, 191, 223, 239, 247, 251, 253, 254};
static void fade_display(void) {
//Define the reader structure
oled_buffer_reader_t reader;
uint8_t buff_char;
if (random() % 30 == 0) {
srand(timer_read());
// Fetch a pointer for the buffer byte at index 0. The return structure
// will have the pointer and the number of bytes remaining from this
// index position if we want to perform a sequential read by
// incrementing the buffer pointer
reader = oled_read_raw(0);
//Loop over the remaining buffer and erase pixels as we go
for (uint16_t i = 0; i < reader.remaining_element_count; i++) {
//Get the actual byte in the buffer by dereferencing the pointer
buff_char = *reader.current_element;
if (buff_char != 0) {
oled_write_raw_byte(buff_char & single_bit_masks[rand() % 8], i);
}
//increment the pointer to fetch a new byte during the next loop
reader.current_element++;
}
}
}
```
## Other Examples
In split keyboards, it is very common to have two OLED displays that each render different content and are oriented or flipped differently. You can do this by switching which content to render by using the return value from `is_keyboard_master()` or `is_keyboard_left()` found in `split_util.h`, e.g:
@ -238,6 +275,10 @@ void oled_write_P(const char *data, bool invert);
// Remapped to call 'void oled_write_ln(const char *data, bool invert);' on ARM
void oled_write_ln_P(const char *data, bool invert);
// Returns a pointer to the requested start index in the buffer plus remaining
// buffer length as struct
oled_buffer_reader_t oled_read_raw(uint16_t start_index);
// Writes a string to the buffer at current cursor position
void oled_write_raw(const char *data, uint16_t size);

View File

@ -422,8 +422,8 @@ Where `28` is an unused index from `eeconfig.h`.
|`rgb_matrix_toggle_noeeprom()` |Toggle effect range LEDs between on and off (not written to EEPROM) |
|`rgb_matrix_enable()` |Turn effect range LEDs on, based on their previous state |
|`rgb_matrix_enable_noeeprom()` |Turn effect range LEDs on, based on their previous state (not written to EEPROM) |
|`rgb_matrix_disable()` |Turn effect range LEDs off |
|`rgb_matrix_disable_noeeprom()` |Turn effect range LEDs off (not written to EEPROM) |
|`rgb_matrix_disable()` |Turn effect range LEDs off, based on their previous state |
|`rgb_matrix_disable_noeeprom()` |Turn effect range LEDs off, based on their previous state (not written to EEPROM) |
### Change Effect Mode :id=change-effect-mode
|Function |Description |
@ -431,19 +431,31 @@ Where `28` is an unused index from `eeconfig.h`.
|`rgb_matrix_mode(mode)` |Set the mode, if RGB animations are enabled |
|`rgb_matrix_mode_noeeprom(mode)` |Set the mode, if RGB animations are enabled (not written to EEPROM) |
|`rgb_matrix_step()` |Change the mode to the next RGB animation in the list of enabled RGB animations |
|`rgb_matrix_step_noeeprom()` |Change the mode to the next RGB animation in the list of enabled RGB animations (not written to EEPROM) |
|`rgb_matrix_step_reverse()` |Change the mode to the previous RGB animation in the list of enabled RGB animations |
|`rgb_matrix_increase_speed()` |Increases the speed of the animations |
|`rgb_matrix_decrease_speed()` |Decreases the speed of the animations |
|`rgb_matrix_step_reverse_noeeprom()` |Change the mode to the previous RGB animation in the list of enabled RGB animations (not written to EEPROM) |
|`rgb_matrix_increase_speed()` |Increase the speed of the animations |
|`rgb_matrix_increase_speed_noeeprom()` |Increase the speed of the animations (not written to EEPROM) |
|`rgb_matrix_decrease_speed()` |Decrease the speed of the animations |
|`rgb_matrix_decrease_speed_noeeprom()` |Decrease the speed of the animations (not written to EEPROM) |
|`rgb_matrix_set_speed(speed)` |Set the speed of the animations to the given value where `speed` is between 0 and 255 |
|`rgb_matrix_set_speed_noeeprom(speed)` |Set the speed of the animations to the given value where `speed` is between 0 and 255 (not written to EEPROM) |
### Change Color :id=change-color
|Function |Description |
|--------------------------------------------|-------------|
|`rgb_matrix_increase_hue()` |Increase the hue for effect range LEDs. This wraps around at maximum hue |
|`rgb_matrix_increase_hue_noeeprom()` |Increase the hue for effect range LEDs. This wraps around at maximum hue (not written to EEPROM) |
|`rgb_matrix_decrease_hue()` |Decrease the hue for effect range LEDs. This wraps around at minimum hue |
|`rgb_matrix_decrease_hue_noeeprom()` |Decrease the hue for effect range LEDs. This wraps around at minimum hue (not written to EEPROM) |
|`rgb_matrix_increase_sat()` |Increase the saturation for effect range LEDs. This wraps around at maximum saturation |
|`rgb_matrix_increase_sat_noeeprom()` |Increase the saturation for effect range LEDs. This wraps around at maximum saturation (not written to EEPROM) |
|`rgb_matrix_decrease_sat()` |Decrease the saturation for effect range LEDs. This wraps around at minimum saturation |
|`rgb_matrix_decrease_sat_noeeprom()` |Decrease the saturation for effect range LEDs. This wraps around at minimum saturation (not written to EEPROM) |
|`rgb_matrix_increase_val()` |Increase the value for effect range LEDs. This wraps around at maximum value |
|`rgb_matrix_increase_val_noeeprom()` |Increase the value for effect range LEDs. This wraps around at maximum value (not written to EEPROM) |
|`rgb_matrix_decrease_val()` |Decrease the value for effect range LEDs. This wraps around at minimum value |
|`rgb_matrix_decrease_val_noeeprom()` |Decrease the value for effect range LEDs. This wraps around at minimum value (not written to EEPROM) |
|`rgb_matrix_sethsv(h, s, v)` |Set LEDs to the given HSV value where `h`/`s`/`v` are between 0 and 255 |
|`rgb_matrix_sethsv_noeeprom(h, s, v)` |Set LEDs to the given HSV value where `h`/`s`/`v` are between 0 and 255 (not written to EEPROM) |

View File

@ -126,19 +126,19 @@ Use these defines to add or remove animations from the firmware. When you are ru
The following options are used to tweak the various animations:
|Define |Default |Description |
|------------------------------------|-------------|-------------------------------------------------------------------------------------|
|Define |Default |Description |
|------------------------------------|-------------|-----------------------------------------------------------------------------------------------|
|`RGBLIGHT_EFFECT_BREATHE_CENTER` |*Not defined*|If defined, used to calculate the curve for the breathing animation. Valid values are 1.0 to 2.7 |
|`RGBLIGHT_EFFECT_BREATHE_MAX` |`255` |The maximum brightness for the breathing mode. Valid values are 1 to 255 |
|`RGBLIGHT_EFFECT_CHRISTMAS_INTERVAL`|`1000` |How long to wait between light changes for the "Christmas" animation, in milliseconds|
|`RGBLIGHT_EFFECT_CHRISTMAS_STEP` |`2` |The number of LEDs to group the red/green colors by for the "Christmas" animation |
|`RGBLIGHT_EFFECT_KNIGHT_LED_NUM` |`RGBLED_NUM` |The number of LEDs to have the "Knight" animation travel |
|`RGBLIGHT_EFFECT_KNIGHT_LENGTH` |`3` |The number of LEDs to light up for the "Knight" animation |
|`RGBLIGHT_EFFECT_KNIGHT_OFFSET` |`0` |The number of LEDs to start the "Knight" animation from the start of the strip by |
|`RGBLIGHT_RAINBOW_SWIRL_RANGE` |`255` |Range adjustment for the rainbow swirl effect to get different swirls |
|`RGBLIGHT_EFFECT_SNAKE_LENGTH` |`4` |The number of LEDs to light up for the "Snake" animation |
|`RGBLIGHT_EFFECT_TWINKLE_LIFE` |`75` |Adjusts how quickly each LED brightens and dims when twinkling (in animation steps) |
|`RGBLIGHT_EFFECT_TWINKLE_PROBABILITY`|`1/127` |Adjusts how likely each LED is to twinkle (on each animation step) |
|`RGBLIGHT_EFFECT_BREATHE_MAX` |`255` |The maximum brightness for the breathing mode. Valid values are 1 to 255 |
|`RGBLIGHT_EFFECT_CHRISTMAS_INTERVAL`|`40` |How long (in milliseconds) to wait between animation steps for the "Christmas" animation |
|`RGBLIGHT_EFFECT_CHRISTMAS_STEP` |`2` |The number of LEDs to group the red/green colors by for the "Christmas" animation |
|`RGBLIGHT_EFFECT_KNIGHT_LED_NUM` |`RGBLED_NUM` |The number of LEDs to have the "Knight" animation travel |
|`RGBLIGHT_EFFECT_KNIGHT_LENGTH` |`3` |The number of LEDs to light up for the "Knight" animation |
|`RGBLIGHT_EFFECT_KNIGHT_OFFSET` |`0` |The number of LEDs to start the "Knight" animation from the start of the strip by |
|`RGBLIGHT_RAINBOW_SWIRL_RANGE` |`255` |Range adjustment for the rainbow swirl effect to get different swirls |
|`RGBLIGHT_EFFECT_SNAKE_LENGTH` |`4` |The number of LEDs to light up for the "Snake" animation |
|`RGBLIGHT_EFFECT_TWINKLE_LIFE` |`75` |Adjusts how quickly each LED brightens and dims when twinkling (in animation steps) |
|`RGBLIGHT_EFFECT_TWINKLE_PROBABILITY`|`1/127` |Adjusts how likely each LED is to twinkle (on each animation step) |
### Example Usage to Reduce Memory Footprint
1. Remove `RGBLIGHT_ANIMATIONS` from `config.h`.
@ -377,6 +377,17 @@ rgblight_sethsv(HSV_GREEN, 2); // led 2
|`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) |
#### Speed functions
|Function |Description |
|--------------------------------------------|-------------|
|`rgblight_increase_speed()` |Increases the animation speed |
|`rgblight_increase_speed_noeeprom()` |Increases the animation speed (not written to EEPROM) |
|`rgblight_decrease_speed()` |Decreases the animation speed |
|`rgblight_decrease_speed_noeeprom()` |Decreases the animation speed (not written to EEPROM) |
|`rgblight_set_speed()` |Sets the speed. Value is between 0 and 255 |
|`rgblight_set_speed_noeeprom()` |Sets the speed. Value is between 0 and 255 (not written to EEPROM) |
#### layer functions
|Function |Description |
|--------------------------------------------|-------------|

View File

@ -28,7 +28,9 @@ After this, you'll want to use the `tap_dance_actions` array to specify what act
* `ACTION_TAP_DANCE_LAYER_TOGGLE(kc, layer)`: Sends the `kc` keycode when tapped once, or toggles the state of `layer`. (this functions like the `TG` layer keycode).
* `ACTION_TAP_DANCE_FN(fn)`: Calls the specified function - defined in the user keymap - with the final tap count of the tap dance action.
* `ACTION_TAP_DANCE_FN_ADVANCED(on_each_tap_fn, on_dance_finished_fn, on_dance_reset_fn)`: Calls the first specified function - defined in the user keymap - on every tap, the second function when the dance action finishes (like the previous option), and the last function when the tap dance action resets.
* `ACTION_TAP_DANCE_FN_ADVANCED_TIME(on_each_tap_fn, on_dance_finished_fn, on_dance_reset_fn, tap_specific_tapping_term)`: This functions identically to the `ACTION_TAP_DANCE_FN_ADVANCED` function, but uses a custom tapping term for it, instead of the predefined `TAPPING_TERM`.
* ~~`ACTION_TAP_DANCE_FN_ADVANCED_TIME(on_each_tap_fn, on_dance_finished_fn, on_dance_reset_fn, tap_specific_tapping_term)`~~: This functions identically to the `ACTION_TAP_DANCE_FN_ADVANCED` function, but uses a custom tapping term for it, instead of the predefined `TAPPING_TERM`.
* This is deprecated in favor of the Per Key Tapping Term functionality, as outlined [here](custom_quantum_functions.md#Custom_Tapping_Term). You'd want to check for the specific `TD()` macro that you want to use (such as `TD(TD_ESC_CAPS)`) instead of using this specific Tap Dance function.
The first option is enough for a lot of cases, that just want dual roles. For example, `ACTION_TAP_DANCE_DOUBLE(KC_SPC, KC_ENT)` will result in `Space` being sent on single-tap, `Enter` otherwise.

View File

@ -239,3 +239,4 @@ There are a number of DFU commands that you can use to flash firmware to a STM32
* `: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.
* `: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.

View File

@ -101,10 +101,6 @@ This allows you to send Unicode characters by inputting a mnemonic corresponding
For further details, as well as limitations, see the [Unicode page](feature_unicode.md).
`BLUETOOTH_ENABLE`
This allows you to interface with a Bluefruit EZ-key to send keycodes wirelessly. It uses the D2 and D3 pins.
`AUDIO_ENABLE`
This allows you output audio on the C6 pin (needs abstracting). See the [audio page](feature_audio.md) for more information.

View File

@ -81,8 +81,8 @@ STM32 MCUs allows a variety of pins to be configured as I2C pins depending on th
|--------------------------|----------------------------------------------------------------------------------------------|---------|
| `I2C1_SCL_BANK` | The bank of pins (`GPIOA`, `GPIOB`, `GPIOC`) to use for SCL | `GPIOB` |
| `I2C1_SDA_BANK` | The bank of pins (`GPIOA`, `GPIOB`, `GPIOC`) to use for SDA | `GPIOB` |
| `I2C1_SCL` | The pin number for the SCL pin (0-9) | `6` |
| `I2C1_SDA` | The pin number for the SDA pin (0-9) | `7` |
| `I2C1_SCL` | The pin number for the SCL pin (0-15) | `6` |
| `I2C1_SDA` | The pin number for the SDA pin (0-15) | `7` |
| `I2C1_BANK` (deprecated) | The bank of pins (`GPIOA`, `GPIOB`, `GPIOC`), superceded by `I2C1_SCL_BANK`, `I2C1_SDA_BANK` | `GPIOB` |
The ChibiOS I2C driver configuration depends on STM32 MCU:

View File

@ -103,7 +103,7 @@
* [DIP スイッチ](ja/feature_dip_switch.md)
* [エンコーダ](ja/feature_encoders.md)
* [触覚フィードバック](ja/feature_haptic_feedback.md)
* [Proton C 規約](ja/proton_c_conversion.md)
* [Proton C 変換](ja/proton_c_conversion.md)
* [PS/2 マウス](ja/feature_ps2_mouse.md)
* [分割キーボード](ja/feature_split_keyboard.md)
* [速記](ja/feature_stenography.md)
@ -111,6 +111,7 @@
* [Velocikey](ja/feature_velocikey.md)
* QMK の開発
* [PR チェックリスト](ja/pr_checklist.md)
* 互換性を破る変更/Breaking changes
* [概要](ja/breaking_changes.md)
* [プルリクエストにフラグが付けられた](ja/breaking_changes_instructions.md)
@ -131,7 +132,7 @@
* [WS2812 ドライバ](ja/ws2812_driver.md)
* [EEPROM ドライバ](ja/eeprom_driver.md)
* [シリアル ドライバ](ja/serial_driver.md)
* [GPIO コントロール](ja/internals_gpio_control.md)
* [GPIO 制御](ja/internals_gpio_control.md)
* [キーボード ガイドライン](ja/hardware_keyboard_guidelines.md)
* Python 開発

View File

@ -0,0 +1,8 @@
# 開発環境のセットアップ
<!---
original document: 0.9.50:docs/api_development_environment.md
git diff 0.9.50 HEAD -- docs/api_development_environment.md | cat
-->
開発環境をセットアップするには、[qmk_web_stack](https://github.com/qmk/qmk_web_stack) に行ってください。

View File

@ -0,0 +1,49 @@
# QMK コンパイラ開発ガイド
<!---
original document: 0.9.50:docs/api_development_overview.md
git diff 0.9.50 HEAD -- docs/api_development_overview.md | cat
-->
このページでは、開発者に QMK コンパイラを紹介しようと思います。コードを読まなければならないような核心となる詳細に立ち入って調べることはしません。ここで得られるものは、コードを読んで理解を深めるためのフレームワークです。
# 概要
QMK Compile API は、いくつかの可動部分からできています:
![構造図](https://raw.githubusercontent.com/qmk/qmk_api/master/docs/architecture.svg)
API クライアントは API サービスと排他的にやりとりをします。ここでジョブをサブミットし、状態を調べ、結果をダウンロードします。API サービスはコンパイルジョブを [Redis Queue](https://python-rq.org) に挿入し、それらのジョブの結果について RQ と S3 の両方を調べます。
ワーカーは RQ から新しいコンパイルジョブを取り出し、ソースとバイナリを S3 互換のストレージエンジンにアップロードします。
# ワーカー
QMK コンパイラワーカーは実際のビルド作業に責任を持ちます。ワーカーは RQ からジョブを取り出し、ジョブを完了するためにいくつかの事を行います:
* 新しい qmk_firmware のチェックアウトを作成する
* 指定されたレイヤーとキーボードメタデータを使って `keymap.c` をビルドする
* ファームウェアをビルドする
* ソースのコピーを zip 形式で圧縮する
* ファームウェア、ソースの zip ファイル、メタデータファイルを S3 にアップロードする
* ジョブの状態を RQ に送信する
# API サービス
API サービスは比較的単純な Flask アプリケーションです。理解しておくべきことが幾つかあります。
## @app.route('/v1/compile', methods=['POST'])
これは API の主なエントリーポイントです。クライアントとのやりとりはここから開始されます。クライアントはキーボードを表す JSON ドキュメントを POST し、API はコンパイルジョブをサブミットする前にいくらかの(とても)基本的な検証を行います。
## @app.route('/v1/compile/&lt;string:job_id&gt;', methods=['GET'])
これは最もよく呼ばれるエンドポイントです。ジョブの詳細が redis から利用可能であればそれを取り出し、そうでなければ S3 からキャッシュされたジョブの詳細を取り出します。
## @app.route('/v1/compile/&lt;string:job_id&gt;/download', methods=['GET'])
このメソッドによりユーザはコンパイルされたファームウェアファイルをダウンロードすることができます。
## @app.route('/v1/compile/&lt;string:job_id&gt;/source', methods=['GET'])
このメソッドによりユーザはファームウェアのソースをダウンロードすることができます。

73
docs/ja/api_docs.md Normal file
View File

@ -0,0 +1,73 @@
# QMK API
<!---
original document: 0.9.50:docs/api_docs.md
git diff 0.9.50 HEAD -- docs/api_docs.md | cat
-->
このページは QMK API の使い方を説明します。もしあなたがアプリケーション開発者であれば、全ての [QMK](https://qmk.fm) キーボードのファームウェアをコンパイルするために、この API を使うことができます。
## 概要
このサービスは、カスタムキーマップをコンパイルするための非同期 API です。API に 何らかの JSON を POST し、定期的に状態をチェックし、ファームウェアのコンパイルが完了していれば、結果のファームウェアと(もし希望すれば)そのファームウェアのソースコードをダウンロードすることができます。
#### JSON ペイロードの例:
```json
{
"keyboard": "clueboard/66/rev2",
"keymap": "my_awesome_keymap",
"layout": "LAYOUT_all",
"layers": [
["KC_GRV","KC_1","KC_2","KC_3","KC_4","KC_5","KC_6","KC_7","KC_8","KC_9","KC_0","KC_MINS","KC_EQL","KC_GRV","KC_BSPC","KC_PGUP","KC_TAB","KC_Q","KC_W","KC_E","KC_R","KC_T","KC_Y","KC_U","KC_I","KC_O","KC_P","KC_LBRC","KC_RBRC","KC_BSLS","KC_PGDN","KC_CAPS","KC_A","KC_S","KC_D","KC_F","KC_G","KC_H","KC_J","KC_K","KC_L","KC_SCLN","KC_QUOT","KC_NUHS","KC_ENT","KC_LSFT","KC_NUBS","KC_Z","KC_X","KC_C","KC_V","KC_B","KC_N","KC_M","KC_COMM","KC_DOT","KC_SLSH","KC_RO","KC_RSFT","KC_UP","KC_LCTL","KC_LGUI","KC_LALT","KC_MHEN","KC_SPC","KC_SPC","KC_HENK","KC_RALT","KC_RCTL","MO(1)","KC_LEFT","KC_DOWN","KC_RIGHT"],
["KC_ESC","KC_F1","KC_F2","KC_F3","KC_F4","KC_F5","KC_F6","KC_F7","KC_F8","KC_F9","KC_F10","KC_F11","KC_F12","KC_TRNS","KC_DEL","BL_STEP","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","_______","KC_TRNS","KC_PSCR","KC_SLCK","KC_PAUS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","MO(2)","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_PGUP","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","MO(1)","KC_LEFT","KC_PGDN","KC_RGHT"],
["KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","RESET","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","MO(2)","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","KC_TRNS","MO(1)","KC_TRNS","KC_TRNS","KC_TRNS"]
]
}
```
ご覧のとおり、ペイロードにはファームウェアを作成および生成するために必要なキーボードの全ての側面を記述します。各レイヤーは QMK キーコードの1つのリストで、キーボードの `LAYOUT` マクロと同じ長さです。もしキーボードが複数の `LAYOUT` マクロをサポートする場合、どのマクロを使うかを指定することができます。
## コンパイルジョブのサブミット
キーマップをファームウェアにコンパイルするには、単純に JSON を `/v1/compile` エンドポイントに POST します。以下の例では、JSON ペイロードを `json_data` という名前のファイルに配置しています。
```
$ curl -H "Content-Type: application/json" -X POST -d "$(< json_data)" http://api.qmk.fm/v1/compile
{
"enqueued": true,
"job_id": "ea1514b3-bdfc-4a7b-9b5c-08752684f7f6"
}
```
## 状態のチェック
キーマップをサブミットした後で、簡単な HTTP GET 呼び出しを使って状態をチェックすることができます:
```
$ curl http://api.qmk.fm/v1/compile/ea1514b3-bdfc-4a7b-9b5c-08752684f7f6
{
"created_at": "Sat, 19 Aug 2017 21:39:12 GMT",
"enqueued_at": "Sat, 19 Aug 2017 21:39:12 GMT",
"id": "f5f9b992-73b4-479b-8236-df1deb37c163",
"status": "running",
"result": null
}
```
これは、ジョブをキューに入れることに成功し、現在実行中であることを示しています。5つの状態がありえます:
* **failed**: なんらかの理由でコンパイルサービスが失敗しました。
* **finished**: コンパイルが完了し、結果を見るには `result` をチェックする必要があります。
* **queued**: キーマップはコンパイルサーバが利用可能になるのを待っています。
* **running**: コンパイルが進行中で、まもなく完了するはずです。
* **unknown**: 深刻なエラーが発生し、[バグを報告](https://github.com/qmk/qmk_compiler/issues)する必要があります。
## 完了した結果を検証
コンパイルジョブが完了したら、`result` キーをチェックします。このキーの値は幾つかの情報を含むハッシュです:
* `firmware_binary_url`: 書き込み可能なファームウェアの URL のリスト
* `firmware_keymap_url`: `keymap.c` の URL のリスト
* `firmware_source_url`: ファームウェアの完全なソースコードの URL のリスト
* `output`: このコンパイルジョブの stdout と stderr。エラーはここで見つけることができます。

20
docs/ja/api_overview.md Normal file
View File

@ -0,0 +1,20 @@
# QMK API
<!---
original document: 0.9.50:docs/api_overview.md
git diff 0.9.50 HEAD -- docs/api_overview.md | cat
-->
QMK API は、Web と GUI ツールが [QMK](http://qmk.fm/) によってサポートされるキーボード用の任意のキーマップをコンパイルするために使うことができる、非同期 API を提供します。標準のキーマップテンプレートは、C コードのサポートを必要としない全ての QMK キーコードをサポートします。キーボードのメンテナは独自のカスタムテンプレートを提供して、より多くの機能を実現することができます。
## アプリケーション開発者
もしあなたがアプリケーションでこの API を使うことに興味があるアプリケーション開発者であれば、[API の使用](ja/api_docs.md) に行くべきです。
## キーボードのメンテナ
もし QMK Compiler API でのあなたのキーボードのサポートを強化したい場合は、[キーボードサポート](ja/reference_configurator_support.md) の節に行くべきです。
## バックエンド開発者
もし API 自体に取り組むことに興味がある場合は、[開発環境](ja/api_development_environment.md)のセットアップから始め、それから [API のハッキング](ja/api_development_overview.md) を調べるべきです。

View File

@ -322,11 +322,9 @@ QMK での全ての利用可能な設定にはデフォルトがあります。
```
* `LAYOUTS`
* このキーボードがサポートする[レイアウト](ja/feature_layouts.md)のリスト
* `LINK_TIME_OPTIMIZATION_ENABLE`
* `LTO_ENABLE`
* キーボードをコンパイルする時に、Link Time Optimization (LTO) を有効にします。これは処理に時間が掛かりますが、コンパイルされたサイズを大幅に減らします (そして、ファームウェアが小さいため、追加の時間は分からないくらいです)。
ただし、LTO が有効な場合、古い TMK のマクロと関数の機能が壊れるため、自動的にこれらの機能を無効にします。これは `NO_ACTION_MACRO` と `NO_ACTION_FUNCTION` を自動的に定義することで行われます。(メモ: これは QMK の [マクロ](ja/feature_macros.md) と [レイヤー](ja/feature_layers.md) には影響を与えません。)
* `LTO_ENABLE`
* LINK_TIME_OPTIMIZATION_ENABLE と同じ意味です。`LINK_TIME_OPTIMIZATION_ENABLE` の代わりに `LTO_ENABLE` を使うことができます。
## AVR MCU オプション
* `MCU = atmega32u4`
@ -371,10 +369,8 @@ QMK での全ての利用可能な設定にはデフォルトがあります。
* MIDI 制御
* `UNICODE_ENABLE`
* Unicode
* `BLUETOOTH_ENABLE`
* Adafruit EZ-Key HID で Bluetooth を有効にするレガシーオプション。BLUETOOTH を見てください
* `BLUETOOTH`
* 現在のオプションは、AdafruitEzKey、AdafruitBLE、RN42
* 現在のオプションは、AdafruitBLE、RN42
* `SPLIT_KEYBOARD`
* 分割キーボード (let's split や bakingpy のキーボードのようなデュアル MCU) のサポートを有効にし、quantum/split_common にある全ての必要なファイルをインクルードします
* `CUSTOM_MATRIX`

View File

@ -145,4 +145,4 @@ ARM ベースのチップ上での EEPROM の動作によって、保存され
[Planck rev6 reset EEPROM](https://cdn.discordapp.com/attachments/473506116718952450/539284620861243409/planck_rev6_default.bin) を使って eeprom のリセットを強制することができます。このイメージを書き込んだ後で、通常のファームウェアを書き込むと、キーボードが_通常_ の動作順序に復元されます。
[Preonic rev3 reset EEPROM](https://cdn.discordapp.com/attachments/473506116718952450/537849497313738762/preonic_rev3_default.bin)
いずれかの形式でブートマジックが有効になっている場合は、これも実行できるはずです (実行方法の詳細については、[ブートマジックドキュメント](feature_bootmagic.md)とキーボード情報を見てください)。
いずれかの形式でブートマジックが有効になっている場合は、これも実行できるはずです (実行方法の詳細については、[ブートマジックドキュメント](ja/feature_bootmagic.md)とキーボード情報を見てください)。

Some files were not shown because too many files have changed in this diff Show More