Update main.c try 400k

beta-add
Alan Johnston 2 years ago committed by GitHub
parent 01b8685e4b
commit c5419199b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2183,6 +2183,7 @@ void read_adc()
} }
// Get I2C device, ADS7830 I2C address is 0x48(72) // Get I2C device, ADS7830 I2C address is 0x48(72)
ioctl(file, I2C_SLAVE, 0x48); ioctl(file, I2C_SLAVE, 0x48);
ioctl(file, I2C_SET_SPEED, 400000);
// Differential inputs, Channel-0, Channel-1 selected // Differential inputs, Channel-0, Channel-1 selected
char config[1] = {0x04}; char config[1] = {0x04};

Loading…
Cancel
Save

Powered by TurnKey Linux.