Commit Graph

10760 Commits

Author SHA1 Message Date
Ryan
a3b6a0c4d4 ST7565 tidyup (#10907) 2021-01-12 22:43:35 -08:00
Joel Challis
8673e483d7 Remove references to ch-bootloader-jump.patch (#10998) 2021-01-12 22:43:35 -08:00
Drashna Jaelre
0df0f00f6a Add references for is_keyboard_left() (#10850)
* Add references for is_keyboard_left()

* Remove proto from bootmagic_lite.c
2021-01-12 22:43:35 -08:00
Joel Challis
b4f8309e9b Recommend use of LED Indicator config (#10895)
* Recommend use of LED Indicator config

* Recommend use of LED Indicator config - update link

* Update quantum/template/ps2avrgb/config.h

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

Co-authored-by: Ryan <fauxpark@gmail.com>
2021-01-12 22:43:35 -08:00
Drashna Jael're
2dbe99b04f Brute force update CLI tools 2021-01-12 22:43:35 -08:00
Drashna Jael're
2077e6561c hotfix: fix double mouse report sending on shared EP 2021-01-12 22:43:34 -08:00
Geoffrey BOTIN
aa41225a1e Fix typo causing redefined error in keymap_french_osx (#10962)
Co-authored-by: gbotin <geoffrey.botin@gmail.com>
2021-01-12 22:43:34 -08:00
Erovia
bad0b20fe5 CLI: Udev related fixes and improvements (#10736) 2021-01-12 22:43:34 -08:00
Joel Challis
a0a2881599 Indicator LEDs as config (#10816)
* First pass

* Add config options to docs

* Update some wording

* Slight tidy up of backlight caps logic

* Init pin to correct state

* Move init location

* Reverse default state
2021-01-12 22:43:34 -08:00
Zach White
781cc0ed51 New command: qmk lint (#10761)
* Basic qmk lint command

* check for keymap readme

* change the workflow from qmk info to qmk lint

* add a strict mode

* parsing -> parse

* document qmk lint

* small info logging cleanup

* Apply suggestions from code review

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

* honor --strict in more places

* change the job name to lint

Co-authored-by: Ryan <fauxpark@gmail.com>
2021-01-12 22:43:34 -08:00
X-Bows Tech
838dfcf7cc Add support for 4 IS31FL3731 devices (#10860)
This is a simple change.Support for IS31FL3731 has been changed from 2 to 4.
2021-01-12 22:43:34 -08:00
Ryan
4a2c2a8e8a CLI: Add qmk clean (#10785) 2021-01-12 22:43:33 -08:00
Ryan
d5a353b263 qmk info: Add --ascii flag (#10793)
* `qmk info`: Add `--ascii` flag

* Fix typo

* Force ASCII for Windows/MSYS2

* Make it gooder

* Remove redundant windows check

* ...And this too

* Make pytest work on Windows
2021-01-12 22:43:33 -08:00
Ryan
7812b1df57 Add brightness level API to OLED driver (#10772)
* Add brightness level API to OLED driver

* Set default brightness to 255
2021-01-12 22:43:33 -08:00
Sergey Vlasov
0928d03213 Fix KEYBOARD_SHARED_EP incompatibility with VIA (#9930)
The `KEYBOARD_SHARED_EP=yes` option was breaking the VIA support,
because the raw HID interface number in this case was 0 instead of 1,
and the VIA app depends on the exact interface number for raw HID.
Change the interface ordering to put the shared interface before the raw
HID interface if `KEYBOARD_SHARED_EP` is enabled, so that the raw HID
interface can keep its number.
2021-01-12 22:43:33 -08:00
Ryan
6edb004732 Allow modified keycodes in Unicode input (#10658) 2021-01-12 22:43:33 -08:00
Xelus22
f8b43b6388 [Core] IS31FL3731/36/37 bug fix (#10612)
* 3731 bug fix

* bug fixes
2021-01-12 22:43:33 -08:00
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
Florian Didron
b129fa575b feat: adds portuguese OSX contributions 2021-01-11 09:08:29 +09:00
André Cruz
4a3cd96b12 Added mac variant of portuguese keymap (#326)
This keymap is very similar to the existing portuguese keymap, but
some symbols are moved around.
2021-01-11 08:26:40 +09:00