Add M3426 A<addr> parameter (#24130)

Co-authored-by: Scott Lahteine <github@thinkyhead.com>
This commit is contained in:
Stephen Hawes
2022-05-05 03:37:47 -04:00
committed by Scott Lahteine
parent 54e543872b
commit 995221e68e
3 changed files with 14 additions and 12 deletions

View File

@@ -29,12 +29,9 @@
#include <stdint.h>
#include <Wire.h>
// Address of MCP342X chip
#define MCP342X_ADC_I2C_ADDRESS 104
class MCP3426 {
public:
int16_t ReadValue(uint8_t channel, uint8_t gain);
int16_t ReadValue(uint8_t channel, uint8_t gain, uint8_t address);
bool Error;
};