#include <SPI.h>

#define latch 2

void setup() {
  pinMode(latch, OUTPUT);
  SPI.begin();

  digitalWrite(latch, LOW);

  SPI.transfer16(0xf00d);
  SPI.transfer16(0xffff);
  SPI.transfer16(0x5555);

  digitalWrite(latch, HIGH);
}

void loop() {
  // put your main code here, to run repeatedly:

}
D0D1D2D3D4D5D6D7GNDLOGIC