Define constants for ADC multiplexer settings and describe I2C status flags

This commit is contained in:
2024-09-06 19:47:09 +02:00
parent f4a6c655bd
commit 4ded84f3f8
3 changed files with 33 additions and 26 deletions

View File

@@ -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);