From c5419199b47fb8c984883f5a1ff4a19bcc5a97d1 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 22 May 2024 23:21:11 -0400 Subject: [PATCH] Update main.c try 400k --- main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main.c b/main.c index e6853255..5e430882 100644 --- a/main.c +++ b/main.c @@ -2183,6 +2183,7 @@ void read_adc() } // Get I2C device, ADS7830 I2C address is 0x48(72) ioctl(file, I2C_SLAVE, 0x48); + ioctl(file, I2C_SET_SPEED, 400000); // Differential inputs, Channel-0, Channel-1 selected char config[1] = {0x04};