Advertisement
Guest User

Untitled

a guest
Apr 5th, 2020
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.46 KB | None | 0 0
  1. void SPIClass::begin() {
  2.  
  3.   // Set SS to high so a connected chip will be "deselected" by default
  4.  
  5.   digitalWrite(SS, HIGH);
  6.  
  7.   // When the SS pin is set as OUTPUT, it can be used as
  8.   // a general purpose output port (it doesn't influence
  9.   // SPI operations).
  10.  
  11.   pinMode(SS, OUTPUT);
  12.  
  13.   // Warning: if the SS pin ever becomes a LOW INPUT then SPI
  14.   // automatically switches to Slave, so the data direction of
  15.   // the SS pin MUST be kept as OUTPUT.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement