Advertisement
Guest User

Untitled

a guest
Aug 29th, 2015
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. // inslude the SPI library:
  2. #include <SPI.h>
  3.  
  4.  
  5. // set pin 10 as the slave select for the digital pot:
  6. const int slaveSelectPin = 9;
  7.  
  8. void setup() {
  9. // set the slaveSelectPin as an output:
  10. pinMode (slaveSelectPin, OUTPUT);
  11. // initialize SPI:
  12. SPI.begin();
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement