adding read to GPIO22

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

@ -267,6 +267,9 @@ int main(int argc, char *argv[]) {
wiringPiSetup ();
pinMode (0, OUTPUT);
pinMode (2, OUTPUT);
pinMode (3, INPUT);
printf("Reading: %d\n", digitalRead(3));
digitalWrite (0, HIGH);
digitalWrite (2, LOW);

Loading…
Cancel
Save

Powered by TurnKey Linux.