Update main.c

pull/1/head
alanbjohnston 7 years ago committed by GitHub
parent 66132de2f5
commit a0437b6a74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -127,7 +127,7 @@ int main(void) {
int arduinoI2C;
if ((arduinoI2C = open("/dev/i2c-0", O_RDWR)) < 0)
{
printf"ERROR: /dev/i2c-0 bus not present\n");
printf("ERROR: /dev/i2c-0 bus not present\n");
} else {
arduinoI2C = wiringPiI2CSetupInterface("/dev/i2c-0", 0x4c);
printf("Arduio write: %d \n", wiringPiI2CWrite(arduinoI2C,42));

Loading…
Cancel
Save

Powered by TurnKey Linux.