Library for reading the BV4205, an i2c analog to digital, 10 channel 10 bit chip. in autoscan mode.
BV4205.h
- Committer:
- Julepalme
- Date:
- 2013-03-24
- Revision:
- 0:2fe9e41f50bb
File content as of revision 0:2fe9e41f50bb:
#ifndef BV4205_H_ #define BV4205_H_ #include "mbed.h" class BV4205 { private: I2C * adc; int device; public: BV4205(PinName sda, PinName scl, int devaddr = 0x62); int readChannel(int ch); int readRange(int minch, int maxch, int * array); }; #endif /* BV4205_H_ */