.from: http://mbed.org/projects/libraries/svn/mbed/trunk/SPI.h
#include "mbed.h"
SPI device(p5, p6, p7); // mosi, miso, sclk
Serial pc(USBTX, USBRX);
int main() {
int response = device.write(0xFF);
pc.printf("%d\r\n", response);
}
SPI device(p5, p6, p7); // mosi, miso, sclk
Serial pc(USBTX, USBRX);
int main() {
int response = device.write(0xFF);
pc.printf("%d\r\n", response);
}
No comments:
Post a Comment