added pullup test

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

@ -268,6 +268,7 @@ int main(int argc, char *argv[]) {
pinMode (0, OUTPUT);
pinMode (2, OUTPUT);
pinMode (3, INPUT);
pullUpDnControl (3, PUD_UP);
printf("Reading: %d\n", digitalRead(3));

Loading…
Cancel
Save

Powered by TurnKey Linux.