Define constants for ADC multiplexer settings and describe I2C status flags
This commit is contained in:
@@ -8,6 +8,12 @@
|
||||
#define AHT02 0x1 // Middle
|
||||
#define AHT03 0x2 // Lower
|
||||
|
||||
// ADC channels
|
||||
#define ADS01 0x0 // AIN0 GND
|
||||
#define ADS02 0x1 // AIN1 GND
|
||||
#define ADS03 0x2 // AIN2 GND
|
||||
#define ADS04 0x3 // AIN3 GND
|
||||
|
||||
int I2C_Init(void);
|
||||
int I2C_Start(byte addr, byte mode);
|
||||
int I2C_SetChannel(int channel);
|
||||
|
||||
Reference in New Issue
Block a user