Skip to content

Commit

Permalink
add helper script to enable all pull-ups on test board
Browse files Browse the repository at this point in the history
  • Loading branch information
nettings committed May 10, 2019
1 parent 58006d7 commit 575cb83
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/enable_pullups.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

# test board with four ALPS rotaries with switch

for PIN in 7 8 12 13 16 17 22 23 24 25 26 27 ; do
echo -n "Enabling pull-up resistor for pin [$PIN]..."
gpio -g mode "$PIN" up && echo "ok." || echo "failed."
done

0 comments on commit 575cb83

Please sign in to comment.