22217 Commits

Author SHA1 Message Date
André Silva 93cc1c7e02 Update shell.nix (#10712)
* nix-shell: update nixpkgs reference

* nix-shell: add missing python dependency
2021-01-12 22:43:33 -08:00
Ryan 5cc304cb2b Fix RGB matrix for ATmegaxxU2 (#10723) 2021-01-12 22:43:32 -08:00
Ryan 2e58be9e14 c2json: Fix TypeError on MSYS2 (#10709) 2021-01-12 22:43:32 -08:00
Adrian a1b24056f3 Added EEPROM emulation for STM32F042x6 series processors (#10685)
* Added STM32F042x6 support for EEPROM emulation

* Default to lower stack size on STM32F042

* Moved stack setting

* Re-moved stack definition

* Removed unnecessary check
2021-01-12 22:43:32 -08:00
Ryan 6a285785f2 Fix CLI warning for Massdrop udev rule (#10691) 2021-01-12 22:43:32 -08:00
Morten Linderud bb4c6b8991 50-qmk.rules: Move udev rules from documentation into a file (#10664)
This makes it overall easier to package for downstream distributions
instead of keeping tabs with inline documentation.

Signed-off-by: Morten Linderud <morten@linderud.pw>
2021-01-12 22:43:32 -08:00
Ryan 02a073ce83 MSYS and WSL installation improvements (#10593) 2021-01-12 22:43:32 -08:00
Ryan aab7d18bcb [CLI] Remove check for Input Club boards (#10636) 2021-01-12 22:43:32 -08:00
Ryan 112cf40d6d Fix STM32duino bootloader (#10648) 2021-01-12 22:43:31 -08:00
Erovia b6dbef77e2 CLI: Fix stripping of ANY from Configurator exports (#10585)
058737f broke it ¯\_(ツ)_/¯
2021-01-12 22:43:31 -08:00
Ryan 9daa7dcb37 CLI: Fix MCU lists for qmk info (#10574) 2021-01-12 22:43:31 -08:00
a_p_u_r_o 71c1d5a011 Fix issue introduced by PR#10404 (#10559) 2021-01-12 22:43:31 -08:00
Erovia 5af121f815 [CLI] Add c2json (#8817)
* Basic keymap parsing finally works

* Add 'keymap.json' creation to the qmk.keymap module

* Add tests and fix formatting

* Fix/exclude flake8 errors

* Convert keymap.c to valid keymap.json

* Fix some errors

* Add tests

* Finalize keymap.json creation, add json template

* Add docs

* Move pygments to the standard requirements

* Add support for nameless layers, fix tests

* Fix things after rebase

* Add missing 'keymap' value.

* Fix missing layer numbers from advanced keycodes

Buckwich noticed that if the advanced keycode / layer toggling key
contains a number, it goes missing.
Now we properly handle them.
Thx for noticing!

* Apply suggestions from code review

* fixup tests

Co-authored-by: Zach White <skullydazed@drpepper.org>
Co-authored-by: skullY <skullydazed@gmail.com>
2021-01-12 22:43:31 -08:00
Ryan ae5ee61e7b CLI: update subcommands to use return instead of exit() (#10323) 2021-01-12 22:43:31 -08:00
Ryan cce4f22e3a Improve LAYOUT macro searching (#9530)
* Improve LAYOUT macro searching

* Apply suggestions from code review

Co-authored-by: Zach White <skullydazed@users.noreply.github.com>

* Adjust signature

* Try to copy the makefile's handling of DEFAULT_FOLDER

* Move it further up, into `info_json()`

* Move it even further up so that keyboard_folder is correct

* Update lib/python/qmk/info.py

Co-authored-by: Zach White <skullydazed@drpepper.org>

* Update lib/python/qmk/info.py

Co-authored-by: Zach White <skullydazed@drpepper.org>

Co-authored-by: Zach White <skullydazed@users.noreply.github.com>
Co-authored-by: Zach White <skullydazed@drpepper.org>
2021-01-12 22:43:30 -08:00
3araht 5872797820 Fix for MIDI sustain effect issue (#10361) 2021-01-12 22:43:30 -08:00
Sergey Vlasov 08bbda7111 OLED driver fixes (#10377)
* Fix dirtying in oled_write_pixel()

Set the dirty bit for the block only if oled_write_pixel() actually
changed the buffer state.  Without this check oled_write_pixel() could
not be used inside the oled_task_user() code using the “redraw always”
style, because the blocks touched by oled_write_pixel() would always
appear dirty, and oled_render() would not proceed beyond the first such
dirty block.

* Fix oled_write_pixel() with 90/270 degree rotation

Use oled_rotation_width instead of OLED_DISPLAY_WIDTH, so that a rotated
display would be handled correctly.

* Fix compilation with custom OLED_BLOCK_COUNT and OLED_BLOCK_SIZE

Some OLED sizes (e.g., 64×48) may require a nonstandard value of
OLED_BLOCK_COUNT.  The documentation says that this value may be
redefined in config.h, but actually trying to redefine it caused a
compile error, because the macro was redefined in oled_driver.c.
Make the OLED_BLOCK_COUNT definition in oled_driver.c respect any
user override, and do the same for OLED_BLOCK_SIZE just in case.

* Fix handling of out-of-range bits in oled_dirty

If a custom OLED_BLOCK_COUNT value is specified, some bits in oled_dirty
may not correspond to existing blocks; however, if those bits are set
somewhere (e.g., by code with sets oled_dirty to ~0 or even -1),
oled_render() would try to handle them and could access memory beyond
oled_buffer and perform hardware operations with out of range values.
Prevent this by masking off unused bits in oled_render(), and also avoid
setting those bits in other functions.

* Fix potentially wrong dirtying in oled_write_char()

oled_write_char() tried to mark the position just beyond the written
character as dirty; use (OLED_FONT_WIDTH - 1) to dirty the last position
still belonging to the character instead.

* Fix `#define OLED_BLOCK_TYPE uint32_t` on AVR

Using uint32_t as OLED_BLOCK_TYPE did not work properly on AVR, because
some bit shifts were performed using 16-bit int.  Add explicit casts to
OLED_BLOCK_TYPE to those shifts.
2021-01-12 22:43:30 -08:00
a_p_u_r_o 3b36ad0840 IS31FL3741 driver fixup (#10519)
* Fix issue with data transfer of CS1_SW7 to CS18_SW7.

* Fix issue with handling of scaling register buffer's dirty flag.

* Remove unused extern declaration.

* Compaction of struct is31_led utilizing bit fields.
2021-01-12 22:43:30 -08:00
sol 639dbd16fc Fix SPLIT_KEYBOARD compilation for ATMega*U2, which doesn't have VBUS/OTG control (#10460)
Co-authored-by: s-ol <s-ol@users.noreply.github.com>
2021-01-12 22:43:30 -08:00
Ryan 46647a3f93 MSYS2: Switch to arm-none-eabi-gcc package (#10421) 2021-01-12 22:43:30 -08:00
Ryan 990b9654c9 setrgb(): Use arrow operator (#10451) 2021-01-12 22:43:30 -08:00
Ryan 204f4c4ea3 Fix Belgian sendstring properly (#10444) 2021-01-12 22:43:29 -08:00
Drashna Jaelre 4db4a0c73f Fix Belgian sendstring file (#10443)
Specifically, the `BE_CIRC` is an alt-ed keycode, which means it 
doesn't fit into the 8 bit keycode range...  It should be `BE_SECT`,
as it is already alt-ed by the alt lut.

Confirmed that this change fixes compilation warnings and works 
correctly, on reddit. 
https://www.reddit.com/r/olkb/comments/iywin1/unsigned_conversion_from_int_to_unsigned_char/g6jvfgl/
2021-01-12 22:43:29 -08:00
cmdremily 0a3d60d356 Fix issues with unused variables and functions preventing a clean compile. 2021-01-12 22:43:29 -08:00
cmdremily 2afb475019 Allow the use of a single IS31FL3731 LED driver 2021-01-12 22:43:29 -08:00
Fred Silberberg 10402a4f09 Add OLED driver function to determine if the screen is currently on (#10382) 2021-01-12 22:43:29 -08:00
Ryan 63d73fdb02 Add STM32F401/F411 to ARM_PROCESSORS (#10362) 2021-01-12 22:43:29 -08:00
Ryan 07baaa23f7 Add STM32F401/F411 to mcu_selection.mk (#10278)
* Reorder STM32 MCUs

* Add STM32F4xx to mcu_selection.mk

* Set MCU for phoenix and tkw/stoutgat/v2/f411

Author:    Ryan <fauxpark@gmail.com>
Date:      Sat Sep 19 13:00:18 2020 +1000
2021-01-12 22:43:28 -08:00
Ryan 47559f7960 Consolidate udev wules into a single file 2021-01-12 22:43:28 -08:00
Drashna Jael're ec2a7452fc [Keyboard] Disable Console on Planck EZ and Moonlander
Console on ARM boards can cause some weird issues, and because they're not needed, lets disable.
2021-01-12 22:43:02 -08:00
Florian Didron 7a6904cdf6 feat: adds NO_AUTO_SHIFT_TAB define (#327) 2021-01-13 14:48:48 +09:00
QMK Bot 6155987d9f Merge remote-tracking branch 'origin/master' into develop 2021-01-13 04:53:32 +00:00
Ryan 09835033da keymap_fr_ch: undef CH_H (#11537) 2021-01-13 15:53:00 +11:00
QMK Bot 1ade5aa922 Merge remote-tracking branch 'origin/master' into develop 2021-01-13 01:56:46 +00:00
Rob Hilgefort b297f1ce8d [Keymap] rjhilgefort's Ergodox Infinity (#11345)
* initial commit- copy of default

* beginnings of ergodox layout conversion

* from scratch 2020 RJH ergodox layout!

* remove extra line in keymap

* only shift to layers, led work

* Fleshed out readme

* tweak alt placement

* updated readme

* PR feedback, updated default layer

* Update keyboards/ergodox_infinity/keymaps/rjhilgefort/keymap.c

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

Co-authored-by: Ryan <fauxpark@gmail.com>
2021-01-12 17:56:18 -08:00
QMK Bot 7cfcb0d271 Merge remote-tracking branch 'origin/master' into develop 2021-01-13 01:53:50 +00:00
Dan Hertz c81e07fef5 [Keymap] Add dhertz' kanu layout (#11346)
* Add dhertz' kanu layout

* Fix delete button

* Add weak user layer change
2021-01-12 17:53:15 -08:00
Takeshi ISHII 302b35c2a0 fix matrix_io_delay() timing in quantum/matrix.c (#9603)
* fix matrix_io_delay() timing in quantum/matrix.c

* Updated comments explaining the need for matrix_io_delay() in quantum/matrix.c

* fix matrix_io_delay() timing in quantum/split_common/matrix.c

* Update quantum/matrix.c

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

* Update quantum/split_common/matrix.c

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

* Update quantum/matrix.c

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

* Update quantum/split_common/matrix.c

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

* add waitOutputPinValid() and wait_cpuclock() into quantum/quantum.h and tmk_core/common/wait.h

* add matrix_output_select_delay() and matrix_output_unselect_delay()

* fix quantum/matrix_common.c, tmk_core/common/matrix.h

* fix tmk_core/common/wait.h

* fix quantum/quantum.h, tmk_core/common/wait.h

* waitOutputPinValid() rename to waitInputPinDelay() in quantum/quantum.h.

* waitOutputPinValid() rename to waitInputPinDelay() in quantum/matrix_common.c

* update tmk_core/common/wait.h

* update comment in quantum/matrix.c, quantum/split_common/matrix.c

* update quantum/quantum.h: Make more margin in the GPIO_INPUT_PIN_DELAY default value.

Co-authored-by: Ryan <fauxpark@gmail.com>
2021-01-13 12:46:22 +11:00
Nick Brassel 017aa5988a ChibiOS conf migrations... take 7 (#11529)
* ChibiOS conf upgrade for alpine65

 alpine65 - 91e88b87653234a9023f4ad98913a6ea52c8b3fb

* ChibiOS conf upgrade for cannonkeys/onyx

 cannonkeys/onyx - 2adf507afd4e288761a675de9cfbb6e34c540e29

* ChibiOS conf upgrade for ck60i

 ck60i - 98be5d22a3cd1b38d92e080f32c4795260db181b

* ChibiOS conf upgrade for cutie_club/borsdorf

 cutie_club/borsdorf - 81734ebf770ab731ca8dcfac6fce5574e948890e
2021-01-13 00:19:56 +00:00
QMK Bot 42f404d854 Merge remote-tracking branch 'origin/master' into develop 2021-01-13 00:00:35 +00:00
Joel Challis 1eaad6dd65 Fix inverted indicator leds on kbdfans/kbd19x (#11532) 2021-01-12 23:58:01 +00:00
QMK Bot f4b0cd3dfa Merge remote-tracking branch 'origin/master' into develop 2021-01-12 20:59:53 +00:00
Sascha Grunert 5e46f72f75 [Keymap] keymap/sascha: disable autoshift (#11525)
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2021-01-12 12:59:18 -08:00
QMK Bot d96463ce12 Merge remote-tracking branch 'origin/master' into develop 2021-01-12 12:34:34 +00:00
Drashna Jaelre 16d43af493 [Keyboard] Fix printf calls in Moonlander matrix (#11511) 2021-01-12 12:33:55 +00:00
QMK Bot 9b9012767c Merge remote-tracking branch 'origin/master' into develop 2021-01-12 12:21:46 +00:00
James Young 68f321f24b Acheron Lasgewloth: layout macro rework (#11523)
* Acheron Lasgewloth: layout macro rework

Arrange the layout macro to match the assembled board.

* rename layout macro

The layout supported is equivalent to 60% ANSI with split Backspace and split Right Shift, and supports every extant switch position.

Adds community layout support.

* add LAYOUT_60_ansi support

* add Configurator data

* convert tabs to spaces in lasgweloth.h
2021-01-12 12:21:13 +00:00
QMK Bot 1c0ccf9aaf Merge remote-tracking branch 'origin/master' into develop 2021-01-12 12:15:07 +00:00
Ryan 8729afece5 Telophase: add info.json (#11524) 2021-01-12 12:14:32 +00:00
Nick Brassel 79d1db3324 Keep track of last matrix activity (#10730)
* Allow recording of the last matrix activity time, to simplify implementation of display timeouts and the like.

* Add requested changes from code review.

* Simplify split matrix last changed.
2021-01-12 19:48:24 +11:00