Skip to content

Instantly share code, notes, and snippets.

@johnty
Created April 23, 2015 18:38
Show Gist options
  • Select an option

  • Save johnty/61604c0b13f6e1a7d13a to your computer and use it in GitHub Desktop.

Select an option

Save johnty/61604c0b13f6e1a7d13a to your computer and use it in GitHub Desktop.
SPItest.sh
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