Microchip MCP342x ADC library

Files at this revision

API Documentation at this revision

Comitter:
SomeRandomBloke
Date:
Mon Sep 10 19:08:37 2018 +0000
Parent:
4:9480edf3926d
Child:
6:5c60f0b0b1c1
Commit message:
Removed incorrect read configuration method

Changed in this revision

mcp342x.cpp Show annotated file Show diff for this revision Revisions of this file
mcp342x.h Show annotated file Show diff for this revision Revisions of this file
--- 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;
--- a/mcp342x.h	Mon Sep 10 17:02:22 2018 +0000
+++ b/mcp342x.h	Mon Sep 10 19:08:37 2018 +0000
@@ -216,8 +216,6 @@
     */
     void set_resolution(mcp342x_resolution_t resolution);
 
-    uint8_t read_configuration();
-    
     /**
     * Set programable gain amplifier. Options are
     * MCP342x::PGA_1, MCP342x::PGA_2, MCP342x::PGA_4, or MCP342x::PGA_8.