Microchip MCP342x ADC library
Diff: mcp342x.cpp
- Revision:
- 5:0ca445d2d2bc
- Parent:
- 4:9480edf3926d
- Child:
- 6:5c60f0b0b1c1
--- a/mcp342x.cpp Mon Sep 10 17:02:22 2018 +0000 +++ b/mcp342x.cpp Mon Sep 10 19:08:37 2018 +0000 @@ -109,14 +109,6 @@ _i2c->write(_address, _i2c_command, LEN_ONE_BYTE); } -uint8_t MCP342x::read_configuration() -{ -// pc.printf("MCP3424 config %0X\r\n", _configuration ); - _i2c_command[0] = _configuration; - _i2c->read(_address, _i2c_command, LEN_ONE_BYTE); - return _i2c_command[0]; -} - void MCP342x::_startRead() { _i2c_command[0] = _configuration | 0x80;