qmk_firmware/drivers
Purdea Andrei c904520f72
Haptic and solenoid cleanup (#9700)
* solenoid: remove two functions that do nothing.

These functions modify the argument, and so they do nothing.

Note: versions of these functions exist in mtdjr's user folder,
however to core solenoid support and mtdjr user-specific solenoid
support are exclusive (only one can be used at a time).

So removing these confusing functions does no harm.

* solenoid: bugfix: don't allow dwell time to go 1ms below minimum time.

The previous code allowed dwell time to go 1ms below the configured minimum.
This change corrects it.

* solenoid: bugfix: when incrementing above maximum dwell time, jump back to minimum, not to 1

The previous code used to jump back to 1, which might be way under the configured minimum setting.

* solenoid: bugfix: on startup actually use the eeprom-stored dwell-time

This is because the dwell time is stored in two variables.

* solenoid: bugfix: on haptic_reset, actually use the newly set default dwell time.

This is needed because dwell time is configured in two variables.

* solenoid: on HPT_RST set buzz to a default value

* solenoid: buzz: reworked to make more configurable. Previous behaviour maintained.

* solenoid: documentation: clarify meaning of dwell time

* solenoid: add feature SOLENOID_DWELL_STEP_SIZE

* solenoid: documentation: added note about the precision of the solenoid time settings

* haptic: Correctly call haptic_reset when eeprom is corrupt.

* haptic: improve what happens if haptic is enabled without erasing eeprom

* haptic: improve what happens if solenoid is enabled without erasing eeprom

* drivers/haptic: fix compilation issue, when haptic is enabled, but solenoid isn't
2020-10-30 13:15:50 -07:00
..
avr Add support for soft serial to ATmega32U2 (#10204) 2020-10-30 13:15:36 -07:00
chibios Actually use eeprom_driver_init(). 2020-10-30 13:15:39 -07:00
eeprom Actually use eeprom_driver_init(). 2020-10-30 13:15:39 -07:00
gpio Increase matrix scanning speed on xd84 (#7517) 2019-12-03 19:39:21 +00:00
haptic Haptic and solenoid cleanup (#9700) 2020-10-30 13:15:50 -07:00
issi [Core] IS31FL3731/36/37 bug fix (#10612) 2020-10-23 18:08:17 +11:00
oled Add brightness level API to OLED driver (#10772) 2020-10-29 00:12:50 -07:00
qwiic format code according to conventions [skip ci] 2020-02-22 03:41:27 +00:00
ugfx/gdisp 2020 February 29 Breaking Changes Update (#8064) 2020-02-29 11:59:30 -08:00
ws2812.h `qmk cformat` (#9500) 2020-06-22 11:21:48 +10:00