Created
April 23, 2015 18:38
-
-
Save johnty/61604c0b13f6e1a7d13a to your computer and use it in GitHub Desktop.
SPItest.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gpio load spi | |
| while true; | |
| do | |
| gpio -x mcp3004:200:0 aread 200; #reads first channel of ADC; aread 201 reads 2nd channel, etc. | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment