Syntax
void end();
ContentsIndex
PreviousUpNext
SPIClass::end Method
SPIClass Class | Example
Syntax
void end();
Description

Disables the SPI data transmission.

Example
#include <SPI.h>
#define SS_PIN    10
int value = 0;

void setup()
{
    pinMode(SS_PIN, OUTPUT);
    SPI.begin();    
}
void loop()
{
    for (value = 0; value < 255; value++)
    {
        digitalWrite(SS_PIN, LOW);
        SPI.transfer(value);
        digitalWrite(SS_PIN, HIGH);
        delay(1000);
    }
    SPI.end();
}
File

SPI.h

Class