Commit Graph

10730 Commits

Author SHA1 Message Date
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
Ryan
7ed08a191f Add Estonian keymap (#8527) 2020-10-29 12:03:30 +09:00
Florian Didron
0435ba95ca fix: comment typo 2020-10-22 14:26:21 +09:00
Florian Didron
d529eb8c0d feat: adds kazakh keymaps 2020-10-22 14:03:41 +09:00
Florian Didron
bc8438f739 Fix/moonlander leds (#318)
* Additionall fixes

* fix spelling errors

* Remove bad matrix wake code

Co-authored-by: Drashna Jael're <drashna@live.com>
2020-10-17 14:48:49 +09:00
Florian Didron
a270d67f9f Merge branch 'firmware19' of github.com:zsa/qmk_firmware into firmware19 2020-10-14 10:48:06 +09:00
Florian Didron
a4b6fe0b23 fix issues with keyboard sleep (#316)
Co-authored-by: Drashna Jael're <drashna@live.com>
2020-10-14 10:46:53 +09:00
Florian Didron
ded395e45d Revert "Revert "Convert ErgoDox EZ to Matrix Lite (qmk#10189)""
This reverts commit edd58256f5.
2020-10-13 21:17:37 +09:00
Florian Didron
edd58256f5 Revert "Convert ErgoDox EZ to Matrix Lite (qmk#10189)"
This reverts commit 396b86b92d.
2020-10-13 21:08:29 +09:00
Florian Didron
4018c5daa6 feat: adds user locale contributions 2020-10-09 17:26:47 +09:00
Drashna Jael're
454684a8bb [Keyboard] Update to ZSA Boards (qmk#10119) 2020-09-30 04:32:30 -07:00
Drashna Jael're
396b86b92d Convert ErgoDox EZ to Matrix Lite (qmk#10189) 2020-09-30 04:04:44 -07:00
David Cuthbert
77a779ae2c Output an error message if LINK_TIME_OPTIMIZATION_ENABLE is set but LTO_ENABLE is not (#10217)
* Output an error message if LINK_TIME_OPTIMIZATION_ENABLE is set but LTO_ENABLE is not.

* Update common.mk

Specify that LINK_TIME_OPTIMZATION_ENABLE has been renamed, not deprecated.
2020-09-30 03:53:49 -07:00
Xelus22
99951c11d7 [Core] DYNAMIC_KEYMAP_EEPROM_MAX_ADDR check (#10315)
* add error check

* remove quotes

* update error message

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

Co-authored-by: Ryan <fauxpark@gmail.com>
2020-09-30 03:52:40 -07:00
Frans de Jonge
edbb2c5082 [fix] dfu-programmer <0.7 doesn't support --force flag (#10292)
Fixes <https://github.com/qmk/qmk_firmware/issues/10286>.
2020-09-30 03:52:05 -07:00
Ryan
6ebc9a2afa Use the force when flashing with dfu-programmer (#10070) 2020-09-30 03:51:38 -07:00
Purdea Andrei
c2eaf9740b quantum/debounce: rename debouncing algorithms (#9564)
* quantum/debounce: rename debouncing algorithms according to Issue 8763

This is the second attempt at implementation, with no ts_ and cy_ prefixes, since those will be implemented with macros.

* Debouncing documentation: Refactor, add some generic info, and merge into a single document
2020-09-30 03:50:16 -07:00
Olivier Li
303fa4f58d Unflip < and > for canadian mutlilingual (#10222)
Co-authored-by: Olivier Li <olivierli@google.com>
2020-09-30 03:49:37 -07:00
MelGeek
b26eb7fecb 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>

format code according to conventions [skip ci]
2020-09-30 03:48:31 -07:00
Félix Sanz
cb14edb893 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-30 03:47:04 -07:00
QMK Bot
3902b562fc format code according to conventions [skip ci] 2020-09-30 03:46:37 -07:00
Zach White
db2254c3ea 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-09-30 03:45:36 -07:00
Ryan
eb186843bb 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-09-30 03:44:38 -07:00
Ryan
e232f1f764 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-09-30 03:43:22 -07:00
Sergey Vlasov
7b4d9fc7c1 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-09-30 03:42:50 -07:00
Nick Brassel
d5f4fc7c2e Define STM32_DMA_REQUIRED when using DMA-based WS2812 driver on STM32. (#10127) 2020-09-30 03:42:08 -07:00
Ryan
a29cb23322 Kiibohd bootloader, take 2 (#10129) 2020-09-30 03:41:26 -07:00
Richard
a9087f8a17 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-09-30 03:40:41 -07:00
Drashna Jaelre
f454a7be21 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-09-30 03:39:42 -07:00
Ryan
2d4e228d0a More Bluetooth refactoring (#9905) 2020-09-30 03:29:43 -07:00
yiancar
44e16ef407 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-09-30 03:29:10 -07:00