ADS1X15: Add string based constructor
Signed-off-by: Adelin Dobre <adelin.dobre@rinftech.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
committed by
Mihai Tudor Panu
parent
82edcec766
commit
50961c6020
@@ -22,6 +22,7 @@
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
#include "ads1115.hpp"
|
||||
#include "upm_string_parser.hpp"
|
||||
|
||||
using namespace upm;
|
||||
|
||||
@@ -32,6 +33,13 @@ ADS1115::ADS1115(int bus, uint8_t address) : ADS1X15(bus, address) {
|
||||
ADS1X15::getCurrentConfig();
|
||||
}
|
||||
|
||||
ADS1115::ADS1115(std::string initStr) : ADS1X15(initStr) {
|
||||
m_name = "ADS1115";
|
||||
m_conversionDelay = ADS1115_CONVERSIONDELAY;
|
||||
m_bitShift = 0;
|
||||
ADS1X15::getCurrentConfig();
|
||||
}
|
||||
|
||||
ADS1115::~ADS1115(){};
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user