diff --git a/README.md b/README.md index 0f6e065..01882bf 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,8 @@ The following examples are provided with the library ## Documentation -The full API and use documentation for this library is provided [here](http://docs.sparkfun.com/SparkFun_Qwiic_Ultrasonic_Arduino_Library/). For a quick reference, the main methods available in the library are listed [here](https://docs.sparkfun.com/SparkFun_Qwiic_Ultrasonic_Arduino_Library/functions.html). + +The full API and use documentation for this library is provided [here](http://docs.sparkfun.com/SparkFun_Qwiic_Ultrasonic_Arduino_Library/). For a quick reference, the main methods available in the library are listed [here](https://docs.sparkfun.com/SparkFun_Qwiic_Ultrasonic_Arduino_Library/class_qwiic_ultrasonic.html). Curious about the hardware this board works with - visit the SparkFun Qwiic Ultrasonic Distance Sensor [hardware repository](https://github.com/sparkfun/SparkFun_Ultrasonic_Distance_Sensor-Qwiic). diff --git a/docs/doxygen/doxygen-config b/docs/doxygen/doxygen-config index 019288e..f3c367a 100644 --- a/docs/doxygen/doxygen-config +++ b/docs/doxygen/doxygen-config @@ -171,7 +171,7 @@ ALWAYS_DETAILED_SEC = YES # operators of the base classes will not be shown. # The default value is: NO. -INLINE_INHERITED_MEMB = NO +INLINE_INHERITED_MEMB = YES # If the FULL_PATH_NAMES tag is set to YES, doxygen will prepend the full path # before files name in the file list and in the header files. If set to NO the diff --git a/src/sfTk/sfDevUltrasonicDist.cpp b/src/sfTk/sfDevUltrasonicDist.cpp index bd2e90d..b650a64 100644 --- a/src/sfTk/sfDevUltrasonicDist.cpp +++ b/src/sfTk/sfDevUltrasonicDist.cpp @@ -55,7 +55,7 @@ sfTkError_t sfDevUltrasonicDist::triggerAndRead(uint16_t &distance) uint8_t rawData[2] = {}; // Get the distance - sfTkError_t err = _theBus->readRegisterRegion(kUltrasonicDistanceReadCommand, rawData, numBytes, bytesRead); + sfTkError_t err = _theBus->readRegister(kUltrasonicDistanceReadCommand, rawData, numBytes, bytesRead); // Check whether the read was successful if (err != ksfTkErrOk) @@ -82,7 +82,7 @@ sfTkError_t sfDevUltrasonicDist::changeAddress(uint8_t &address) return ksfTkErrFail; // Write the new address to the device. The first bit must be set to 1 - err = _theBus->writeByte(address | 0x80); + err = _theBus->writeUInt8(address | 0x80); } else if (_fwVersion == kQwiicUltrasonicFWLatest) { @@ -96,7 +96,7 @@ sfTkError_t sfDevUltrasonicDist::changeAddress(uint8_t &address) const uint8_t toWrite[2] = {kUltrasonicAddressChangeCommand, tempAddress}; // Write the new address to the device - err = _theBus->writeRegion(toWrite, numBytes); + err = _theBus->writeData(toWrite, numBytes); } else {