File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
name =SparkFun Qwiic Haptic Driver DA7280 Library
2
- version =1.0.2
2
+ version =1.0.3
3
3
author =Elias Santistevan <
[email protected] >
4
4
maintainer =SparkFun Electronics <sparkfun.com>
5
5
sentence =Library for the DA7280 Haptic Driver
Original file line number Diff line number Diff line change @@ -84,8 +84,8 @@ bool Haptic_Driver::defaultMotor(){
84
84
85
85
86
86
sparkSettings.motorType = LRA_TYPE;
87
- sparkSettings.nomVolt = 2.5 ; // volts - not used when acceleration is off, set nominal when on
88
- sparkSettings.absVolt = 2.5 ; // volts - when acceleration is off, set this only
87
+ sparkSettings.nomVolt = 0 ; // volts - set to 2.5 when acceleration is ON
88
+ sparkSettings.absVolt = 2.26 ; // volts - when acceleration is off, set this only
89
89
sparkSettings.currMax = 165.4 ; // milliamps -
90
90
sparkSettings.impedance = 13.8 ; // ohms
91
91
sparkSettings.lraFreq = 170 ; // hertz
@@ -402,7 +402,7 @@ bool Haptic_Driver::setVibrate(uint8_t val){
402
402
403
403
if ( accelState == ENABLE ){
404
404
if ( val > 0x7F )
405
- val == 0x7F ; // Just limit the argument to the physical limit
405
+ val = 0x7F ; // Just limit the argument to the physical limit
406
406
}
407
407
else {
408
408
if ( val > 0xFF )
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ enum REGISTERS {
127
127
TOP_INT_CFG8 = 0x20 ,
128
128
TOP_CTL1 = 0x22 ,
129
129
TOP_CTL2,
130
- SEG_CTL1 ,
130
+ SEQ_CTL1 ,
131
131
SWG_C1,
132
132
SWG_C2,
133
133
SWG_C3,
You can’t perform that action at this time.
0 commit comments