You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

364 lines
10 KiB

2020 November 28 Breaking Changes Update (#11053) * Branch point for 2020 November 28 Breaking Change * Remove matrix_col_t to allow MATRIX_ROWS > 32 (#10183) * Add support for soft serial to ATmega32U2 (#10204) * Change MIDI velocity implementation to allow direct control of velocity value (#9940) * Add ability to build a subset of all keyboards based on platform. * Actually use eeprom_driver_init(). * Make bootloader_jump weak for ChibiOS. (#10417) * Joystick 16-bit support (#10439) * Per-encoder resolutions (#10259) * Share button state from mousekey to pointing_device (#10179) * Add hotfix for chibios keyboards not wake (#10088) * Add advanced/efficient RGB Matrix Indicators (#8564) * Naming change. * Support for STM32 GPIOF,G,H,I,J,K (#10206) * Add milc as a dependency and remove the installed milc (#10563) * ChibiOS upgrade: early init conversions (#10214) * ChibiOS upgrade: configuration file migrator (#9952) * Haptic and solenoid cleanup (#9700) * XD75 cleanup (#10524) * OLED display update interval support (#10388) * Add definition based on currently-selected serial driver. (#10716) * New feature: Retro Tapping per key (#10622) * Allow for modification of output RGB values when using rgblight/rgb_matrix. (#10638) * Add housekeeping task callbacks so that keyboards/keymaps are capable of executing code for each main loop iteration. (#10530) * Rescale both ChibiOS and AVR backlighting. * Reduce Helix keyboard build variation (#8669) * Minor change to behavior allowing display updates to continue between task ticks (#10750) * Some GPIO manipulations in matrix.c change to atomic. (#10491) * qmk cformat (#10767) * [Keyboard] Update the Speedo firmware for v3.0 (#10657) * Maartenwut/Maarten namechange to evyd13/Evy (#10274) * [quantum] combine repeated lines of code (#10837) * Add step sequencer feature (#9703) * aeboards/ext65 refactor (#10820) * Refactor xelus/dawn60 for Rev2 later (#10584) * add DEBUG_MATRIX_SCAN_RATE_ENABLE to common_features.mk (#10824) * [Core] Added `add_oneshot_mods` & `del_oneshot_mods` (#10549) * update chibios os usb for the otg driver (#8893) * Remove HD44780 References, Part 4 (#10735) * [Keyboard] Add Valor FRL TKL (+refactor) (#10512) * Fix cursor position bug in oled_write_raw functions (#10800) * Fixup version.h writing when using SKIP_VERSION=yes (#10972) * Allow for certain code in the codebase assuming length of string. (#10974) * Add AT90USB support for serial.c (#10706) * Auto shift: support repeats and early registration (#9826) * Rename ledmatrix.h to match .c file (#7949) * Split RGB_MATRIX_ENABLE into _ENABLE and _DRIVER (#10231) * Split LED_MATRIX_ENABLE into _ENABLE and _DRIVER (#10840) * Merge point for 2020 Nov 28 Breaking Change
3 years ago
2020 November 28 Breaking Changes Update (#11053) * Branch point for 2020 November 28 Breaking Change * Remove matrix_col_t to allow MATRIX_ROWS > 32 (#10183) * Add support for soft serial to ATmega32U2 (#10204) * Change MIDI velocity implementation to allow direct control of velocity value (#9940) * Add ability to build a subset of all keyboards based on platform. * Actually use eeprom_driver_init(). * Make bootloader_jump weak for ChibiOS. (#10417) * Joystick 16-bit support (#10439) * Per-encoder resolutions (#10259) * Share button state from mousekey to pointing_device (#10179) * Add hotfix for chibios keyboards not wake (#10088) * Add advanced/efficient RGB Matrix Indicators (#8564) * Naming change. * Support for STM32 GPIOF,G,H,I,J,K (#10206) * Add milc as a dependency and remove the installed milc (#10563) * ChibiOS upgrade: early init conversions (#10214) * ChibiOS upgrade: configuration file migrator (#9952) * Haptic and solenoid cleanup (#9700) * XD75 cleanup (#10524) * OLED display update interval support (#10388) * Add definition based on currently-selected serial driver. (#10716) * New feature: Retro Tapping per key (#10622) * Allow for modification of output RGB values when using rgblight/rgb_matrix. (#10638) * Add housekeeping task callbacks so that keyboards/keymaps are capable of executing code for each main loop iteration. (#10530) * Rescale both ChibiOS and AVR backlighting. * Reduce Helix keyboard build variation (#8669) * Minor change to behavior allowing display updates to continue between task ticks (#10750) * Some GPIO manipulations in matrix.c change to atomic. (#10491) * qmk cformat (#10767) * [Keyboard] Update the Speedo firmware for v3.0 (#10657) * Maartenwut/Maarten namechange to evyd13/Evy (#10274) * [quantum] combine repeated lines of code (#10837) * Add step sequencer feature (#9703) * aeboards/ext65 refactor (#10820) * Refactor xelus/dawn60 for Rev2 later (#10584) * add DEBUG_MATRIX_SCAN_RATE_ENABLE to common_features.mk (#10824) * [Core] Added `add_oneshot_mods` & `del_oneshot_mods` (#10549) * update chibios os usb for the otg driver (#8893) * Remove HD44780 References, Part 4 (#10735) * [Keyboard] Add Valor FRL TKL (+refactor) (#10512) * Fix cursor position bug in oled_write_raw functions (#10800) * Fixup version.h writing when using SKIP_VERSION=yes (#10972) * Allow for certain code in the codebase assuming length of string. (#10974) * Add AT90USB support for serial.c (#10706) * Auto shift: support repeats and early registration (#9826) * Rename ledmatrix.h to match .c file (#7949) * Split RGB_MATRIX_ENABLE into _ENABLE and _DRIVER (#10231) * Split LED_MATRIX_ENABLE into _ENABLE and _DRIVER (#10840) * Merge point for 2020 Nov 28 Breaking Change
3 years ago
2020 November 28 Breaking Changes Update (#11053) * Branch point for 2020 November 28 Breaking Change * Remove matrix_col_t to allow MATRIX_ROWS > 32 (#10183) * Add support for soft serial to ATmega32U2 (#10204) * Change MIDI velocity implementation to allow direct control of velocity value (#9940) * Add ability to build a subset of all keyboards based on platform. * Actually use eeprom_driver_init(). * Make bootloader_jump weak for ChibiOS. (#10417) * Joystick 16-bit support (#10439) * Per-encoder resolutions (#10259) * Share button state from mousekey to pointing_device (#10179) * Add hotfix for chibios keyboards not wake (#10088) * Add advanced/efficient RGB Matrix Indicators (#8564) * Naming change. * Support for STM32 GPIOF,G,H,I,J,K (#10206) * Add milc as a dependency and remove the installed milc (#10563) * ChibiOS upgrade: early init conversions (#10214) * ChibiOS upgrade: configuration file migrator (#9952) * Haptic and solenoid cleanup (#9700) * XD75 cleanup (#10524) * OLED display update interval support (#10388) * Add definition based on currently-selected serial driver. (#10716) * New feature: Retro Tapping per key (#10622) * Allow for modification of output RGB values when using rgblight/rgb_matrix. (#10638) * Add housekeeping task callbacks so that keyboards/keymaps are capable of executing code for each main loop iteration. (#10530) * Rescale both ChibiOS and AVR backlighting. * Reduce Helix keyboard build variation (#8669) * Minor change to behavior allowing display updates to continue between task ticks (#10750) * Some GPIO manipulations in matrix.c change to atomic. (#10491) * qmk cformat (#10767) * [Keyboard] Update the Speedo firmware for v3.0 (#10657) * Maartenwut/Maarten namechange to evyd13/Evy (#10274) * [quantum] combine repeated lines of code (#10837) * Add step sequencer feature (#9703) * aeboards/ext65 refactor (#10820) * Refactor xelus/dawn60 for Rev2 later (#10584) * add DEBUG_MATRIX_SCAN_RATE_ENABLE to common_features.mk (#10824) * [Core] Added `add_oneshot_mods` & `del_oneshot_mods` (#10549) * update chibios os usb for the otg driver (#8893) * Remove HD44780 References, Part 4 (#10735) * [Keyboard] Add Valor FRL TKL (+refactor) (#10512) * Fix cursor position bug in oled_write_raw functions (#10800) * Fixup version.h writing when using SKIP_VERSION=yes (#10972) * Allow for certain code in the codebase assuming length of string. (#10974) * Add AT90USB support for serial.c (#10706) * Auto shift: support repeats and early registration (#9826) * Rename ledmatrix.h to match .c file (#7949) * Split RGB_MATRIX_ENABLE into _ENABLE and _DRIVER (#10231) * Split LED_MATRIX_ENABLE into _ENABLE and _DRIVER (#10840) * Merge point for 2020 Nov 28 Breaking Change
3 years ago
2020 November 28 Breaking Changes Update (#11053) * Branch point for 2020 November 28 Breaking Change * Remove matrix_col_t to allow MATRIX_ROWS > 32 (#10183) * Add support for soft serial to ATmega32U2 (#10204) * Change MIDI velocity implementation to allow direct control of velocity value (#9940) * Add ability to build a subset of all keyboards based on platform. * Actually use eeprom_driver_init(). * Make bootloader_jump weak for ChibiOS. (#10417) * Joystick 16-bit support (#10439) * Per-encoder resolutions (#10259) * Share button state from mousekey to pointing_device (#10179) * Add hotfix for chibios keyboards not wake (#10088) * Add advanced/efficient RGB Matrix Indicators (#8564) * Naming change. * Support for STM32 GPIOF,G,H,I,J,K (#10206) * Add milc as a dependency and remove the installed milc (#10563) * ChibiOS upgrade: early init conversions (#10214) * ChibiOS upgrade: configuration file migrator (#9952) * Haptic and solenoid cleanup (#9700) * XD75 cleanup (#10524) * OLED display update interval support (#10388) * Add definition based on currently-selected serial driver. (#10716) * New feature: Retro Tapping per key (#10622) * Allow for modification of output RGB values when using rgblight/rgb_matrix. (#10638) * Add housekeeping task callbacks so that keyboards/keymaps are capable of executing code for each main loop iteration. (#10530) * Rescale both ChibiOS and AVR backlighting. * Reduce Helix keyboard build variation (#8669) * Minor change to behavior allowing display updates to continue between task ticks (#10750) * Some GPIO manipulations in matrix.c change to atomic. (#10491) * qmk cformat (#10767) * [Keyboard] Update the Speedo firmware for v3.0 (#10657) * Maartenwut/Maarten namechange to evyd13/Evy (#10274) * [quantum] combine repeated lines of code (#10837) * Add step sequencer feature (#9703) * aeboards/ext65 refactor (#10820) * Refactor xelus/dawn60 for Rev2 later (#10584) * add DEBUG_MATRIX_SCAN_RATE_ENABLE to common_features.mk (#10824) * [Core] Added `add_oneshot_mods` & `del_oneshot_mods` (#10549) * update chibios os usb for the otg driver (#8893) * Remove HD44780 References, Part 4 (#10735) * [Keyboard] Add Valor FRL TKL (+refactor) (#10512) * Fix cursor position bug in oled_write_raw functions (#10800) * Fixup version.h writing when using SKIP_VERSION=yes (#10972) * Allow for certain code in the codebase assuming length of string. (#10974) * Add AT90USB support for serial.c (#10706) * Auto shift: support repeats and early registration (#9826) * Rename ledmatrix.h to match .c file (#7949) * Split RGB_MATRIX_ENABLE into _ENABLE and _DRIVER (#10231) * Split LED_MATRIX_ENABLE into _ENABLE and _DRIVER (#10840) * Merge point for 2020 Nov 28 Breaking Change
3 years ago
2020 November 28 Breaking Changes Update (#11053) * Branch point for 2020 November 28 Breaking Change * Remove matrix_col_t to allow MATRIX_ROWS > 32 (#10183) * Add support for soft serial to ATmega32U2 (#10204) * Change MIDI velocity implementation to allow direct control of velocity value (#9940) * Add ability to build a subset of all keyboards based on platform. * Actually use eeprom_driver_init(). * Make bootloader_jump weak for ChibiOS. (#10417) * Joystick 16-bit support (#10439) * Per-encoder resolutions (#10259) * Share button state from mousekey to pointing_device (#10179) * Add hotfix for chibios keyboards not wake (#10088) * Add advanced/efficient RGB Matrix Indicators (#8564) * Naming change. * Support for STM32 GPIOF,G,H,I,J,K (#10206) * Add milc as a dependency and remove the installed milc (#10563) * ChibiOS upgrade: early init conversions (#10214) * ChibiOS upgrade: configuration file migrator (#9952) * Haptic and solenoid cleanup (#9700) * XD75 cleanup (#10524) * OLED display update interval support (#10388) * Add definition based on currently-selected serial driver. (#10716) * New feature: Retro Tapping per key (#10622) * Allow for modification of output RGB values when using rgblight/rgb_matrix. (#10638) * Add housekeeping task callbacks so that keyboards/keymaps are capable of executing code for each main loop iteration. (#10530) * Rescale both ChibiOS and AVR backlighting. * Reduce Helix keyboard build variation (#8669) * Minor change to behavior allowing display updates to continue between task ticks (#10750) * Some GPIO manipulations in matrix.c change to atomic. (#10491) * qmk cformat (#10767) * [Keyboard] Update the Speedo firmware for v3.0 (#10657) * Maartenwut/Maarten namechange to evyd13/Evy (#10274) * [quantum] combine repeated lines of code (#10837) * Add step sequencer feature (#9703) * aeboards/ext65 refactor (#10820) * Refactor xelus/dawn60 for Rev2 later (#10584) * add DEBUG_MATRIX_SCAN_RATE_ENABLE to common_features.mk (#10824) * [Core] Added `add_oneshot_mods` & `del_oneshot_mods` (#10549) * update chibios os usb for the otg driver (#8893) * Remove HD44780 References, Part 4 (#10735) * [Keyboard] Add Valor FRL TKL (+refactor) (#10512) * Fix cursor position bug in oled_write_raw functions (#10800) * Fixup version.h writing when using SKIP_VERSION=yes (#10972) * Allow for certain code in the codebase assuming length of string. (#10974) * Add AT90USB support for serial.c (#10706) * Auto shift: support repeats and early registration (#9826) * Rename ledmatrix.h to match .c file (#7949) * Split RGB_MATRIX_ENABLE into _ENABLE and _DRIVER (#10231) * Split LED_MATRIX_ENABLE into _ENABLE and _DRIVER (#10840) * Merge point for 2020 Nov 28 Breaking Change
3 years ago
2020 November 28 Breaking Changes Update (#11053) * Branch point for 2020 November 28 Breaking Change * Remove matrix_col_t to allow MATRIX_ROWS > 32 (#10183) * Add support for soft serial to ATmega32U2 (#10204) * Change MIDI velocity implementation to allow direct control of velocity value (#9940) * Add ability to build a subset of all keyboards based on platform. * Actually use eeprom_driver_init(). * Make bootloader_jump weak for ChibiOS. (#10417) * Joystick 16-bit support (#10439) * Per-encoder resolutions (#10259) * Share button state from mousekey to pointing_device (#10179) * Add hotfix for chibios keyboards not wake (#10088) * Add advanced/efficient RGB Matrix Indicators (#8564) * Naming change. * Support for STM32 GPIOF,G,H,I,J,K (#10206) * Add milc as a dependency and remove the installed milc (#10563) * ChibiOS upgrade: early init conversions (#10214) * ChibiOS upgrade: configuration file migrator (#9952) * Haptic and solenoid cleanup (#9700) * XD75 cleanup (#10524) * OLED display update interval support (#10388) * Add definition based on currently-selected serial driver. (#10716) * New feature: Retro Tapping per key (#10622) * Allow for modification of output RGB values when using rgblight/rgb_matrix. (#10638) * Add housekeeping task callbacks so that keyboards/keymaps are capable of executing code for each main loop iteration. (#10530) * Rescale both ChibiOS and AVR backlighting. * Reduce Helix keyboard build variation (#8669) * Minor change to behavior allowing display updates to continue between task ticks (#10750) * Some GPIO manipulations in matrix.c change to atomic. (#10491) * qmk cformat (#10767) * [Keyboard] Update the Speedo firmware for v3.0 (#10657) * Maartenwut/Maarten namechange to evyd13/Evy (#10274) * [quantum] combine repeated lines of code (#10837) * Add step sequencer feature (#9703) * aeboards/ext65 refactor (#10820) * Refactor xelus/dawn60 for Rev2 later (#10584) * add DEBUG_MATRIX_SCAN_RATE_ENABLE to common_features.mk (#10824) * [Core] Added `add_oneshot_mods` & `del_oneshot_mods` (#10549) * update chibios os usb for the otg driver (#8893) * Remove HD44780 References, Part 4 (#10735) * [Keyboard] Add Valor FRL TKL (+refactor) (#10512) * Fix cursor position bug in oled_write_raw functions (#10800) * Fixup version.h writing when using SKIP_VERSION=yes (#10972) * Allow for certain code in the codebase assuming length of string. (#10974) * Add AT90USB support for serial.c (#10706) * Auto shift: support repeats and early registration (#9826) * Rename ledmatrix.h to match .c file (#7949) * Split RGB_MATRIX_ENABLE into _ENABLE and _DRIVER (#10231) * Split LED_MATRIX_ENABLE into _ENABLE and _DRIVER (#10840) * Merge point for 2020 Nov 28 Breaking Change
3 years ago
2020 November 28 Breaking Changes Update (#11053) * Branch point for 2020 November 28 Breaking Change * Remove matrix_col_t to allow MATRIX_ROWS > 32 (#10183) * Add support for soft serial to ATmega32U2 (#10204) * Change MIDI velocity implementation to allow direct control of velocity value (#9940) * Add ability to build a subset of all keyboards based on platform. * Actually use eeprom_driver_init(). * Make bootloader_jump weak for ChibiOS. (#10417) * Joystick 16-bit support (#10439) * Per-encoder resolutions (#10259) * Share button state from mousekey to pointing_device (#10179) * Add hotfix for chibios keyboards not wake (#10088) * Add advanced/efficient RGB Matrix Indicators (#8564) * Naming change. * Support for STM32 GPIOF,G,H,I,J,K (#10206) * Add milc as a dependency and remove the installed milc (#10563) * ChibiOS upgrade: early init conversions (#10214) * ChibiOS upgrade: configuration file migrator (#9952) * Haptic and solenoid cleanup (#9700) * XD75 cleanup (#10524) * OLED display update interval support (#10388) * Add definition based on currently-selected serial driver. (#10716) * New feature: Retro Tapping per key (#10622) * Allow for modification of output RGB values when using rgblight/rgb_matrix. (#10638) * Add housekeeping task callbacks so that keyboards/keymaps are capable of executing code for each main loop iteration. (#10530) * Rescale both ChibiOS and AVR backlighting. * Reduce Helix keyboard build variation (#8669) * Minor change to behavior allowing display updates to continue between task ticks (#10750) * Some GPIO manipulations in matrix.c change to atomic. (#10491) * qmk cformat (#10767) * [Keyboard] Update the Speedo firmware for v3.0 (#10657) * Maartenwut/Maarten namechange to evyd13/Evy (#10274) * [quantum] combine repeated lines of code (#10837) * Add step sequencer feature (#9703) * aeboards/ext65 refactor (#10820) * Refactor xelus/dawn60 for Rev2 later (#10584) * add DEBUG_MATRIX_SCAN_RATE_ENABLE to common_features.mk (#10824) * [Core] Added `add_oneshot_mods` & `del_oneshot_mods` (#10549) * update chibios os usb for the otg driver (#8893) * Remove HD44780 References, Part 4 (#10735) * [Keyboard] Add Valor FRL TKL (+refactor) (#10512) * Fix cursor position bug in oled_write_raw functions (#10800) * Fixup version.h writing when using SKIP_VERSION=yes (#10972) * Allow for certain code in the codebase assuming length of string. (#10974) * Add AT90USB support for serial.c (#10706) * Auto shift: support repeats and early registration (#9826) * Rename ledmatrix.h to match .c file (#7949) * Split RGB_MATRIX_ENABLE into _ENABLE and _DRIVER (#10231) * Split LED_MATRIX_ENABLE into _ENABLE and _DRIVER (#10840) * Merge point for 2020 Nov 28 Breaking Change
3 years ago
2020 November 28 Breaking Changes Update (#11053) * Branch point for 2020 November 28 Breaking Change * Remove matrix_col_t to allow MATRIX_ROWS > 32 (#10183) * Add support for soft serial to ATmega32U2 (#10204) * Change MIDI velocity implementation to allow direct control of velocity value (#9940) * Add ability to build a subset of all keyboards based on platform. * Actually use eeprom_driver_init(). * Make bootloader_jump weak for ChibiOS. (#10417) * Joystick 16-bit support (#10439) * Per-encoder resolutions (#10259) * Share button state from mousekey to pointing_device (#10179) * Add hotfix for chibios keyboards not wake (#10088) * Add advanced/efficient RGB Matrix Indicators (#8564) * Naming change. * Support for STM32 GPIOF,G,H,I,J,K (#10206) * Add milc as a dependency and remove the installed milc (#10563) * ChibiOS upgrade: early init conversions (#10214) * ChibiOS upgrade: configuration file migrator (#9952) * Haptic and solenoid cleanup (#9700) * XD75 cleanup (#10524) * OLED display update interval support (#10388) * Add definition based on currently-selected serial driver. (#10716) * New feature: Retro Tapping per key (#10622) * Allow for modification of output RGB values when using rgblight/rgb_matrix. (#10638) * Add housekeeping task callbacks so that keyboards/keymaps are capable of executing code for each main loop iteration. (#10530) * Rescale both ChibiOS and AVR backlighting. * Reduce Helix keyboard build variation (#8669) * Minor change to behavior allowing display updates to continue between task ticks (#10750) * Some GPIO manipulations in matrix.c change to atomic. (#10491) * qmk cformat (#10767) * [Keyboard] Update the Speedo firmware for v3.0 (#10657) * Maartenwut/Maarten namechange to evyd13/Evy (#10274) * [quantum] combine repeated lines of code (#10837) * Add step sequencer feature (#9703) * aeboards/ext65 refactor (#10820) * Refactor xelus/dawn60 for Rev2 later (#10584) * add DEBUG_MATRIX_SCAN_RATE_ENABLE to common_features.mk (#10824) * [Core] Added `add_oneshot_mods` & `del_oneshot_mods` (#10549) * update chibios os usb for the otg driver (#8893) * Remove HD44780 References, Part 4 (#10735) * [Keyboard] Add Valor FRL TKL (+refactor) (#10512) * Fix cursor position bug in oled_write_raw functions (#10800) * Fixup version.h writing when using SKIP_VERSION=yes (#10972) * Allow for certain code in the codebase assuming length of string. (#10974) * Add AT90USB support for serial.c (#10706) * Auto shift: support repeats and early registration (#9826) * Rename ledmatrix.h to match .c file (#7949) * Split RGB_MATRIX_ENABLE into _ENABLE and _DRIVER (#10231) * Split LED_MATRIX_ENABLE into _ENABLE and _DRIVER (#10840) * Merge point for 2020 Nov 28 Breaking Change
3 years ago
2020 November 28 Breaking Changes Update (#11053) * Branch point for 2020 November 28 Breaking Change * Remove matrix_col_t to allow MATRIX_ROWS > 32 (#10183) * Add support for soft serial to ATmega32U2 (#10204) * Change MIDI velocity implementation to allow direct control of velocity value (#9940) * Add ability to build a subset of all keyboards based on platform. * Actually use eeprom_driver_init(). * Make bootloader_jump weak for ChibiOS. (#10417) * Joystick 16-bit support (#10439) * Per-encoder resolutions (#10259) * Share button state from mousekey to pointing_device (#10179) * Add hotfix for chibios keyboards not wake (#10088) * Add advanced/efficient RGB Matrix Indicators (#8564) * Naming change. * Support for STM32 GPIOF,G,H,I,J,K (#10206) * Add milc as a dependency and remove the installed milc (#10563) * ChibiOS upgrade: early init conversions (#10214) * ChibiOS upgrade: configuration file migrator (#9952) * Haptic and solenoid cleanup (#9700) * XD75 cleanup (#10524) * OLED display update interval support (#10388) * Add definition based on currently-selected serial driver. (#10716) * New feature: Retro Tapping per key (#10622) * Allow for modification of output RGB values when using rgblight/rgb_matrix. (#10638) * Add housekeeping task callbacks so that keyboards/keymaps are capable of executing code for each main loop iteration. (#10530) * Rescale both ChibiOS and AVR backlighting. * Reduce Helix keyboard build variation (#8669) * Minor change to behavior allowing display updates to continue between task ticks (#10750) * Some GPIO manipulations in matrix.c change to atomic. (#10491) * qmk cformat (#10767) * [Keyboard] Update the Speedo firmware for v3.0 (#10657) * Maartenwut/Maarten namechange to evyd13/Evy (#10274) * [quantum] combine repeated lines of code (#10837) * Add step sequencer feature (#9703) * aeboards/ext65 refactor (#10820) * Refactor xelus/dawn60 for Rev2 later (#10584) * add DEBUG_MATRIX_SCAN_RATE_ENABLE to common_features.mk (#10824) * [Core] Added `add_oneshot_mods` & `del_oneshot_mods` (#10549) * update chibios os usb for the otg driver (#8893) * Remove HD44780 References, Part 4 (#10735) * [Keyboard] Add Valor FRL TKL (+refactor) (#10512) * Fix cursor position bug in oled_write_raw functions (#10800) * Fixup version.h writing when using SKIP_VERSION=yes (#10972) * Allow for certain code in the codebase assuming length of string. (#10974) * Add AT90USB support for serial.c (#10706) * Auto shift: support repeats and early registration (#9826) * Rename ledmatrix.h to match .c file (#7949) * Split RGB_MATRIX_ENABLE into _ENABLE and _DRIVER (#10231) * Split LED_MATRIX_ENABLE into _ENABLE and _DRIVER (#10840) * Merge point for 2020 Nov 28 Breaking Change
3 years ago
2020 November 28 Breaking Changes Update (#11053) * Branch point for 2020 November 28 Breaking Change * Remove matrix_col_t to allow MATRIX_ROWS > 32 (#10183) * Add support for soft serial to ATmega32U2 (#10204) * Change MIDI velocity implementation to allow direct control of velocity value (#9940) * Add ability to build a subset of all keyboards based on platform. * Actually use eeprom_driver_init(). * Make bootloader_jump weak for ChibiOS. (#10417) * Joystick 16-bit support (#10439) * Per-encoder resolutions (#10259) * Share button state from mousekey to pointing_device (#10179) * Add hotfix for chibios keyboards not wake (#10088) * Add advanced/efficient RGB Matrix Indicators (#8564) * Naming change. * Support for STM32 GPIOF,G,H,I,J,K (#10206) * Add milc as a dependency and remove the installed milc (#10563) * ChibiOS upgrade: early init conversions (#10214) * ChibiOS upgrade: configuration file migrator (#9952) * Haptic and solenoid cleanup (#9700) * XD75 cleanup (#10524) * OLED display update interval support (#10388) * Add definition based on currently-selected serial driver. (#10716) * New feature: Retro Tapping per key (#10622) * Allow for modification of output RGB values when using rgblight/rgb_matrix. (#10638) * Add housekeeping task callbacks so that keyboards/keymaps are capable of executing code for each main loop iteration. (#10530) * Rescale both ChibiOS and AVR backlighting. * Reduce Helix keyboard build variation (#8669) * Minor change to behavior allowing display updates to continue between task ticks (#10750) * Some GPIO manipulations in matrix.c change to atomic. (#10491) * qmk cformat (#10767) * [Keyboard] Update the Speedo firmware for v3.0 (#10657) * Maartenwut/Maarten namechange to evyd13/Evy (#10274) * [quantum] combine repeated lines of code (#10837) * Add step sequencer feature (#9703) * aeboards/ext65 refactor (#10820) * Refactor xelus/dawn60 for Rev2 later (#10584) * add DEBUG_MATRIX_SCAN_RATE_ENABLE to common_features.mk (#10824) * [Core] Added `add_oneshot_mods` & `del_oneshot_mods` (#10549) * update chibios os usb for the otg driver (#8893) * Remove HD44780 References, Part 4 (#10735) * [Keyboard] Add Valor FRL TKL (+refactor) (#10512) * Fix cursor position bug in oled_write_raw functions (#10800) * Fixup version.h writing when using SKIP_VERSION=yes (#10972) * Allow for certain code in the codebase assuming length of string. (#10974) * Add AT90USB support for serial.c (#10706) * Auto shift: support repeats and early registration (#9826) * Rename ledmatrix.h to match .c file (#7949) * Split RGB_MATRIX_ENABLE into _ENABLE and _DRIVER (#10231) * Split LED_MATRIX_ENABLE into _ENABLE and _DRIVER (#10840) * Merge point for 2020 Nov 28 Breaking Change
3 years ago
  1. /* Copyright 2019 ishtob
  2. * Driver for haptic feedback written for QMK
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #include "haptic.h"
  18. #include "eeconfig.h"
  19. #include "debug.h"
  20. #include "usb_device_state.h"
  21. #include "gpio.h"
  22. #include "keyboard.h"
  23. #ifdef HAPTIC_DRV2605L
  24. # include "drv2605l.h"
  25. #endif
  26. #ifdef HAPTIC_SOLENOID
  27. # include "solenoid.h"
  28. #endif
  29. #if defined(SPLIT_KEYBOARD) && defined(SPLIT_HAPTIC_ENABLE)
  30. extern uint8_t split_haptic_play;
  31. #endif
  32. haptic_config_t haptic_config;
  33. static void update_haptic_enable_gpios(void) {
  34. if (haptic_config.enable && ((!HAPTIC_OFF_IN_LOW_POWER) || (usb_device_state == USB_DEVICE_STATE_CONFIGURED))) {
  35. #if defined(HAPTIC_ENABLE_PIN)
  36. HAPTIC_ENABLE_PIN_WRITE_ACTIVE();
  37. #endif
  38. #if defined(HAPTIC_ENABLE_STATUS_LED)
  39. HAPTIC_ENABLE_STATUS_LED_WRITE_ACTIVE();
  40. #endif
  41. } else {
  42. #if defined(HAPTIC_ENABLE_PIN)
  43. HAPTIC_ENABLE_PIN_WRITE_INACTIVE();
  44. #endif
  45. #if defined(HAPTIC_ENABLE_STATUS_LED)
  46. HAPTIC_ENABLE_STATUS_LED_WRITE_INACTIVE();
  47. #endif
  48. }
  49. }
  50. static void set_haptic_config_enable(bool enabled) {
  51. haptic_config.enable = enabled;
  52. update_haptic_enable_gpios();
  53. }
  54. void haptic_init(void) {
  55. // only initialize on secondary boards if the user desires
  56. #if defined(SPLIT_KEYBOARD) && !defined(SPLIT_HAPTIC_ENABLE)
  57. if (!is_keyboard_master()) return;
  58. #endif
  59. if (!eeconfig_is_enabled()) {
  60. eeconfig_init();
  61. }
  62. haptic_config.raw = eeconfig_read_haptic();
  63. #ifdef HAPTIC_SOLENOID
  64. solenoid_set_dwell(haptic_config.dwell);
  65. #endif
  66. if ((haptic_config.raw == 0)
  67. #ifdef HAPTIC_SOLENOID
  68. || (haptic_config.dwell == 0)
  69. #endif
  70. ) {
  71. // this will be called, if the eeprom is not corrupt,
  72. // but the previous firmware didn't have haptic enabled,
  73. // or the previous firmware didn't have solenoid enabled,
  74. // and the current one has solenoid enabled.
  75. haptic_reset();
  76. } else {
  77. // Haptic configuration has been loaded through the "raw" union item.
  78. // This is to execute any side effects of the configuration.
  79. set_haptic_config_enable(haptic_config.enable);
  80. }
  81. #ifdef HAPTIC_SOLENOID
  82. solenoid_setup();
  83. dprintf("Solenoid driver initialized\n");
  84. #endif
  85. #ifdef HAPTIC_DRV2605L
  86. drv2605l_init();
  87. dprintf("DRV2605 driver initialized\n");
  88. #endif
  89. eeconfig_debug_haptic();
  90. #ifdef HAPTIC_ENABLE_PIN
  91. gpio_set_pin_output(HAPTIC_ENABLE_PIN);
  92. #endif
  93. #ifdef HAPTIC_ENABLE_STATUS_LED
  94. gpio_set_pin_output(HAPTIC_ENABLE_STATUS_LED);
  95. #endif
  96. }
  97. void haptic_task(void) {
  98. #ifdef HAPTIC_SOLENOID
  99. // Only run task on seconary boards if the user desires
  100. # if defined(SPLIT_KEYBOARD) && !defined(SPLIT_HAPTIC_ENABLE)
  101. if (!is_keyboard_master()) return;
  102. # endif
  103. solenoid_check();
  104. #endif // HAPTIC_SOLENOID
  105. }
  106. void eeconfig_debug_haptic(void) {
  107. dprintf("haptic_config eeprom\n");
  108. dprintf("haptic_config.enable = %d\n", haptic_config.enable);
  109. dprintf("haptic_config.mode = %d\n", haptic_config.mode);
  110. }
  111. void haptic_enable(void) {
  112. set_haptic_config_enable(true);
  113. dprintf("haptic_config.enable = %u\n", haptic_config.enable);
  114. eeconfig_update_haptic(haptic_config.raw);
  115. }
  116. void haptic_disable(void) {
  117. set_haptic_config_enable(false);
  118. dprintf("haptic_config.enable = %u\n", haptic_config.enable);
  119. eeconfig_update_haptic(haptic_config.raw);
  120. }
  121. void haptic_toggle(void) {
  122. if (haptic_config.enable) {
  123. haptic_disable();
  124. } else {
  125. haptic_enable();
  126. }
  127. eeconfig_update_haptic(haptic_config.raw);
  128. }
  129. void haptic_feedback_toggle(void) {
  130. haptic_config.feedback++;
  131. if (haptic_config.feedback >= HAPTIC_FEEDBACK_MAX) haptic_config.feedback = KEY_PRESS;
  132. dprintf("haptic_config.feedback = %u\n", !haptic_config.feedback);
  133. eeconfig_update_haptic(haptic_config.raw);
  134. }
  135. void haptic_buzz_toggle(void) {
  136. bool buzz_stat = !haptic_config.buzz;
  137. haptic_config.buzz = buzz_stat;
  138. haptic_set_buzz(buzz_stat);
  139. }
  140. void haptic_mode_increase(void) {
  141. uint8_t mode = haptic_config.mode + 1;
  142. #ifdef HAPTIC_DRV2605L
  143. if (haptic_config.mode >= DRV2605L_EFFECT_COUNT) {
  144. mode = 1;
  145. }
  146. #endif
  147. haptic_set_mode(mode);
  148. }
  149. void haptic_mode_decrease(void) {
  150. uint8_t mode = haptic_config.mode - 1;
  151. #ifdef HAPTIC_DRV2605L
  152. if (haptic_config.mode < 1) {
  153. mode = (DRV2605L_EFFECT_COUNT - 1);
  154. }
  155. #endif
  156. haptic_set_mode(mode);
  157. }
  158. void haptic_dwell_increase(void) {
  159. #ifdef HAPTIC_SOLENOID
  160. int16_t next_dwell = ((int16_t)haptic_config.dwell) + SOLENOID_DWELL_STEP_SIZE;
  161. if (haptic_config.dwell >= SOLENOID_MAX_DWELL) {
  162. // if it's already at max, we wrap back to min
  163. next_dwell = SOLENOID_MIN_DWELL;
  164. } else if (next_dwell > SOLENOID_MAX_DWELL) {
  165. // if we overshoot the max, then cap at max
  166. next_dwell = SOLENOID_MAX_DWELL;
  167. }
  168. solenoid_set_dwell(next_dwell);
  169. #else
  170. int16_t next_dwell = ((int16_t)haptic_config.dwell) + 1;
  171. #endif
  172. haptic_set_dwell(next_dwell);
  173. }
  174. void haptic_dwell_decrease(void) {
  175. #ifdef HAPTIC_SOLENOID
  176. int16_t next_dwell = ((int16_t)haptic_config.dwell) - SOLENOID_DWELL_STEP_SIZE;
  177. if (haptic_config.dwell <= SOLENOID_MIN_DWELL) {
  178. // if it's already at min, we wrap to max
  179. next_dwell = SOLENOID_MAX_DWELL;
  180. } else if (next_dwell < SOLENOID_MIN_DWELL) {
  181. // if we go below min, then we cap to min
  182. next_dwell = SOLENOID_MIN_DWELL;
  183. }
  184. solenoid_set_dwell(next_dwell);
  185. #else
  186. int16_t next_dwell = ((int16_t)haptic_config.dwell) - 1;
  187. #endif
  188. haptic_set_dwell(next_dwell);
  189. }
  190. void haptic_reset(void) {
  191. set_haptic_config_enable(true);
  192. uint8_t feedback = HAPTIC_DEFAULT_FEEDBACK;
  193. haptic_config.feedback = feedback;
  194. #ifdef HAPTIC_DRV2605L
  195. uint8_t mode = HAPTIC_DEFAULT_MODE;
  196. haptic_config.mode = mode;
  197. #endif
  198. #ifdef HAPTIC_SOLENOID
  199. uint8_t dwell = SOLENOID_DEFAULT_DWELL;
  200. haptic_config.dwell = dwell;
  201. haptic_config.buzz = SOLENOID_DEFAULT_BUZZ;
  202. solenoid_set_dwell(dwell);
  203. #else
  204. // This is to trigger haptic_reset again, if solenoid is enabled in the future.
  205. haptic_config.dwell = 0;
  206. haptic_config.buzz = 0;
  207. #endif
  208. eeconfig_update_haptic(haptic_config.raw);
  209. dprintf("haptic_config.feedback = %u\n", haptic_config.feedback);
  210. dprintf("haptic_config.mode = %u\n", haptic_config.mode);
  211. }
  212. void haptic_set_feedback(uint8_t feedback) {
  213. haptic_config.feedback = feedback;
  214. eeconfig_update_haptic(haptic_config.raw);
  215. dprintf("haptic_config.feedback = %u\n", haptic_config.feedback);
  216. }
  217. void haptic_set_mode(uint8_t mode) {
  218. haptic_config.mode = mode;
  219. eeconfig_update_haptic(haptic_config.raw);
  220. dprintf("haptic_config.mode = %u\n", haptic_config.mode);
  221. }
  222. void haptic_set_amplitude(uint8_t amp) {
  223. haptic_config.amplitude = amp;
  224. eeconfig_update_haptic(haptic_config.raw);
  225. dprintf("haptic_config.amplitude = %u\n", haptic_config.amplitude);
  226. #ifdef HAPTIC_DRV2605L
  227. drv2605l_amplitude(amp);
  228. #endif
  229. }
  230. void haptic_set_buzz(uint8_t buzz) {
  231. haptic_config.buzz = buzz;
  232. eeconfig_update_haptic(haptic_config.raw);
  233. dprintf("haptic_config.buzz = %u\n", haptic_config.buzz);
  234. }
  235. void haptic_set_dwell(uint8_t dwell) {
  236. haptic_config.dwell = dwell;
  237. eeconfig_update_haptic(haptic_config.raw);
  238. dprintf("haptic_config.dwell = %u\n", haptic_config.dwell);
  239. }
  240. uint8_t haptic_get_enable(void) {
  241. return haptic_config.enable;
  242. }
  243. uint8_t haptic_get_mode(void) {
  244. if (!haptic_config.enable) {
  245. return false;
  246. }
  247. return haptic_config.mode;
  248. }
  249. uint8_t haptic_get_feedback(void) {
  250. if (!haptic_config.enable) {
  251. return false;
  252. }
  253. return haptic_config.feedback;
  254. }
  255. uint8_t haptic_get_dwell(void) {
  256. if (!haptic_config.enable) {
  257. return false;
  258. }
  259. return haptic_config.dwell;
  260. }
  261. void haptic_enable_continuous(void) {
  262. haptic_config.cont = 1;
  263. dprintf("haptic_config.cont = %u\n", haptic_config.cont);
  264. eeconfig_update_haptic(haptic_config.raw);
  265. #ifdef HAPTIC_DRV2605L
  266. drv2605l_rtp_init();
  267. #endif
  268. }
  269. void haptic_disable_continuous(void) {
  270. haptic_config.cont = 0;
  271. dprintf("haptic_config.cont = %u\n", haptic_config.cont);
  272. eeconfig_update_haptic(haptic_config.raw);
  273. #ifdef HAPTIC_DRV2605L
  274. drv2605l_write(DRV2605L_REG_MODE, 0x00);
  275. #endif
  276. }
  277. void haptic_toggle_continuous(void) {
  278. if (haptic_config.cont) {
  279. haptic_disable_continuous();
  280. } else {
  281. haptic_enable_continuous();
  282. }
  283. }
  284. void haptic_cont_increase(void) {
  285. uint8_t amp = haptic_config.amplitude + 10;
  286. if (haptic_config.amplitude >= 120) {
  287. amp = 120;
  288. }
  289. haptic_set_amplitude(amp);
  290. }
  291. void haptic_cont_decrease(void) {
  292. uint8_t amp = haptic_config.amplitude - 10;
  293. if (haptic_config.amplitude < 20) {
  294. amp = 20;
  295. }
  296. haptic_set_amplitude(amp);
  297. }
  298. void haptic_play(void) {
  299. #ifdef HAPTIC_DRV2605L
  300. uint8_t play_eff = 0;
  301. play_eff = haptic_config.mode;
  302. drv2605l_pulse(play_eff);
  303. # if defined(SPLIT_KEYBOARD) && defined(SPLIT_HAPTIC_ENABLE)
  304. split_haptic_play = haptic_config.mode;
  305. # endif
  306. #endif
  307. #ifdef HAPTIC_SOLENOID
  308. solenoid_fire_handler();
  309. # if defined(SPLIT_KEYBOARD) && defined(SPLIT_HAPTIC_ENABLE)
  310. split_haptic_play = 1;
  311. # endif
  312. #endif
  313. }
  314. void haptic_shutdown(void) {
  315. #ifdef HAPTIC_SOLENOID
  316. solenoid_shutdown();
  317. #endif
  318. }
  319. void haptic_notify_usb_device_state_change(void) {
  320. update_haptic_enable_gpios();
  321. #if defined(HAPTIC_ENABLE_PIN)
  322. gpio_set_pin_output(HAPTIC_ENABLE_PIN);
  323. #endif
  324. #if defined(HAPTIC_ENABLE_STATUS_LED)
  325. gpio_set_pin_output(HAPTIC_ENABLE_STATUS_LED);
  326. #endif
  327. }