Snippet Tag: Arduino High resolution ADC

MCP3426 Arduino

class MCP3426 { protected: long raw_adc; uint8_t SPS; bool MODE; uint8_t i; uint8_t testvar; uint8_t config; uint8_t GAIN; uint8_t no_of_bytes; uint8_t data[3]; public: uint8_t devAddr; MCP3426(uint8_t i2cAddress); ~MCP3426(); bool testConnection(void); void SetConfiguration(uint8_t channel, uint8_t resolution, bool mode, uint8_t PGA); bool CheckConversion(); long readADC(); private: };

Read More »