Update main.c

pull/10/head
alanbjohnston 7 years ago committed by GitHub
parent 341356bf33
commit d6e1eceb5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -177,7 +177,9 @@ int main(void) {
z_fd = -1; z_fd = -1;
} else } else
{ {
x_fd = wiringPiI2CSetupInterface("/dev/i2c-0", 0x40); // x_fd = wiringPiI2CSetupInterface("/dev/i2c-0", 0x40);
x_fd = wiringPiI2CSetupInterface("/dev/i2c-1", 0x40);
fprintf("stderr,Opening of -X fd %d\n", x_fd); fprintf("stderr,Opening of -X fd %d\n", x_fd);
y_fd = wiringPiI2CSetupInterface("/dev/i2c-0", 0x41); y_fd = wiringPiI2CSetupInterface("/dev/i2c-0", 0x41);
printf("Opening of -Y fd %d\n", y_fd); printf("Opening of -Y fd %d\n", y_fd);

Loading…
Cancel
Save

Powered by TurnKey Linux.