Skip to content

Commit

Permalink
Update raspberrypi.c
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandruradovici committed Oct 16, 2015
1 parent e4a6295 commit e046e96
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/wiring/raspberrypi.c
Expand Up @@ -322,20 +322,12 @@ int serial_flush(int serial_id)
return 0;
}

int analogRead(int pin) {
fprintf(stderr, "analogRead is not supported on raspberrypi\n");
}

void analogWrite(int pin, int value) {
fprintf(stderr, "analogWrite is not supported on raspberrypi\n");
}

int analogReadRaw(int pin) {
fprintf(stderr, "analogReadRaw is not supported on raspberrypi\n");
return analogREad (pin);
}

void analogWriteRaw(int pin, int value) {
fprintf(stderr, "analogWriteRaw is not supported on raspberrypi\n");
analogWrite (pin, value);
}

#endif /* RASPBERRYPI */

0 comments on commit e046e96

Please sign in to comment.