Stefan Nielsen / BV4205
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers BV4205.h Source File

BV4205.h

00001 #ifndef BV4205_H_
00002 #define BV4205_H_
00003 
00004 #include "mbed.h"
00005 
00006 class BV4205 {
00007 private:
00008     I2C * adc;
00009     int device;   
00010 public:
00011     BV4205(PinName sda, PinName scl, int devaddr = 0x62);
00012     int readChannel(int ch);
00013     int readRange(int minch, int maxch, int * array);
00014 };
00015 
00016 #endif /* BV4205_H_ */