Set ADC gain to 6.144V and fix multiplexer channel documentation

This commit is contained in:
2024-09-15 19:07:38 +02:00
parent 4ded84f3f8
commit ccbd964111
2 changed files with 3 additions and 3 deletions

View File

@@ -502,7 +502,7 @@ word I2C_ADS1115_Read(int channel)
// 110 | ±0.256 V // 110 | ±0.256 V
// 111 | ±0.256 V // 111 | ±0.256 V
gain = 0x0400; // 2.048 V | 00000100 00000000 gain = 0x0000; // 6.144 V | 00000100 00000000
// Input multiplexer configuration: These bits // Input multiplexer configuration: These bits
// configure the input multiplexer. // configure the input multiplexer.

View File

@@ -4,9 +4,9 @@
#include "common/types.h" #include "common/types.h"
// I2C multiplexer channels // I2C multiplexer channels
#define AHT01 0x0 // Upper #define AHT01 0x0 // Lower
#define AHT02 0x1 // Middle #define AHT02 0x1 // Middle
#define AHT03 0x2 // Lower #define AHT03 0x2 // Upper
// ADC channels // ADC channels
#define ADS01 0x0 // AIN0 GND #define ADS01 0x0 // AIN0 GND