Library for TI's DRV 2605

Dependents:   sonar_vibrator

Files at this revision

API Documentation at this revision

Comitter:
takuhachisu
Date:
Mon Nov 20 07:06:21 2017 +0000
Parent:
1:0747096351be
Commit message:
Modified the name of function

Changed in this revision

DRV2605.cpp Show annotated file Show diff for this revision Revisions of this file
DRV2605.h Show annotated file Show diff for this revision Revisions of this file
--- a/DRV2605.cpp	Mon Nov 13 09:20:02 2017 +0000
+++ b/DRV2605.cpp	Mon Nov 20 07:06:21 2017 +0000
@@ -122,7 +122,7 @@
     i2cWriteByte(REAL_TIME_PLAYBACK, rtp);
 }
 
-float DRV2605::battery_voltage(void)
+float DRV2605::batteryVoltage(void)
 {
     return (float)i2cReadByte(VBAT_VOLTAGE_MONITOR) / 255.0 * 5.6;
 }
\ No newline at end of file
--- a/DRV2605.h	Mon Nov 13 09:20:02 2017 +0000
+++ b/DRV2605.h	Mon Nov 20 07:06:21 2017 +0000
@@ -193,7 +193,7 @@
     *
     * @return battery voltage
     */
-    float battery_voltage(void);
+    float batteryVoltage(void);
 
 private:
     I2C *_i2c;