-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIO_ADS1114.h
33 lines (24 loc) · 915 Bytes
/
IO_ADS1114.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/***************************************************************************
This is a library for the ADS1114 precision ADC
Designed to work with all kinds of ADS1114 Breakout
These sensors use I2C to communicate, 2 pins are required
to interface.
Written by Adrien Chapelet for IoThings
***************************************************************************/
#ifndef __ADS1114_H__
#define __ADS1114_H__
/*=========================================================================
I2C ADDRESS/BITS
-----------------------------------------------------------------------*/
#define ADS1114_ADDRESS (0x48) // 1001 000 (ADDR = GND)
/*=========================================================================*/
class IO_ADS1114
{
protected:
// Instance-specific properties
public:
void begin(void);
int16_t readADC_SingleEnded (void);
private:
};
#endif