I'm trying to make a Sanguino (Arduino derivative board) talk to a MSP430G2553 Launchpad over SPI. The idea is for the Master to send a constant string "Hello, world!\n" and have the Slave write it to a serial terminal.
I'm using this for the master:
#include <SPI.h>
void setup (void)
{
Serial.begin(9600);
digitalWrite(SS, HIGH);
SPI.begin ();
SPI.setClockDivider(SPI_CLOCK_DIV8);
}
void loop (void)
{
char c;
// enable Slave Select
digitalWrite(SS, LOW); // SS is pin 10
// send test string
for (const char * p = "Hello, world!\n" ; c = *p; p++) {
SPI.