Created
December 31, 2012 00:11
-
-
Save kjellski/4416255 to your computer and use it in GitHub Desktop.
working spi device drivers from tutorial here: http://www.brianhensley.net/2012/07/getting-spi-working-on-raspberry-pi.html
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
| [~/code]$ sudo ./a.out | |
| spi mode: 0 | |
| bits per word: 8 | |
| max speed: 500000 Hz (500 KHz) | |
| FF FF FF FF FF FF | |
| 40 00 00 00 00 95 | |
| FF FF FF FF FF FF | |
| FF FF FF FF FF FF | |
| FF FF FF FF FF FF | |
| DE AD BE EF BA AD | |
| F0 0D | |
| [~/code]$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment