diff options
Diffstat (limited to 'drivers/haptic/DRV2605L.c')
| -rw-r--r-- | drivers/haptic/DRV2605L.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/haptic/DRV2605L.c b/drivers/haptic/DRV2605L.c index 728554b01..c40731913 100644 --- a/drivers/haptic/DRV2605L.c +++ b/drivers/haptic/DRV2605L.c | |||
| @@ -115,15 +115,13 @@ void DRV_init(void) { | |||
| 115 | } | 115 | } |
| 116 | 116 | ||
| 117 | void DRV_rtp_init(void) { | 117 | void DRV_rtp_init(void) { |
| 118 | DRV_write(DRV_GO, 0x00); | 118 | DRV_write(DRV_GO, 0x00); |
| 119 | DRV_write(DRV_RTP_INPUT, 20); //20 is the lowest value I've found where haptics can still be felt. | 119 | DRV_write(DRV_RTP_INPUT, 20); // 20 is the lowest value I've found where haptics can still be felt. |
| 120 | DRV_write(DRV_MODE, 0x05); | 120 | DRV_write(DRV_MODE, 0x05); |
| 121 | DRV_write(DRV_GO, 0x01); | 121 | DRV_write(DRV_GO, 0x01); |
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | void DRV_amplitude(uint8_t amplitude) { | 124 | void DRV_amplitude(uint8_t amplitude) { DRV_write(DRV_RTP_INPUT, amplitude); } |
| 125 | DRV_write(DRV_RTP_INPUT, amplitude); | ||
| 126 | } | ||
| 127 | 125 | ||
| 128 | void DRV_pulse(uint8_t sequence) { | 126 | void DRV_pulse(uint8_t sequence) { |
| 129 | DRV_write(DRV_GO, 0x00); | 127 | DRV_write(DRV_GO, 0x00); |
