changed to ic2 4

pull/33/head
alanbjohnston 6 years ago committed by GitHub
parent b705ed4bbb
commit c414e1d2b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -181,22 +181,22 @@ int main(int argc, char *argv[]) {
printf("+Y | sensor[%d] % 4.2fV % 6.1fmA % 6.1fmW \n",
PLUS_Y, readingV.voltage, readingV.current, readingV.power);
sensorV = config_sensor("/dev/i2c-3", 0x40, 400);
sensorV = config_sensor("/dev/i2c-4", 0x40, 400);
readingV = read_sensor_data(sensorV);
printf("+Z | sensor[%d] % 4.2fV % 6.1fmA % 6.1fmW \n",
PLUS_Z, readingV.voltage, readingV.current, readingV.power);
sensorV = config_sensor("/dev/i2c-3", 0x41, 400);
sensorV = config_sensor("/dev/i2c-4", 0x41, 400);
readingV = read_sensor_data(sensorV);
printf("-X | sensor[%d] % 4.2fV % 6.1fmA % 6.1fmW \n",
MINUS_X, readingV.voltage, readingV.current, readingV.power);
sensorV = config_sensor("/dev/i2c-3", 0x44, 400);
sensorV = config_sensor("/dev/i2c-4", 0x44, 400);
readingV = read_sensor_data(sensorV);
printf("-Y | sensor[%d] % 4.2fV % 6.1fmA % 6.1fmW \n",
MINUS_Y, readingV.voltage, readingV.current, readingV.power);
sensorV = config_sensor("/dev/i2c-3", 0x45, 400);
sensorV = config_sensor("/dev/i2c-4", 0x45, 400);
readingV = read_sensor_data(sensorV);
printf("-Z | sensor[%d] % 4.2fV % 6.1fmA % 6.1fmW \n",
MINUS_Z, readingV.voltage, readingV.current, readingV.power);

Loading…
Cancel
Save

Powered by TurnKey Linux.