Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 5:86bcf189bbcd
- Parent:
- 4:8e796b751cd3
--- a/main.cpp Thu Jun 01 07:59:21 2017 +0000 +++ b/main.cpp Tue Jun 13 04:17:45 2017 +0000 @@ -31,7 +31,7 @@ SPISlave_multiByte device(A1, A2, A3, p3); // mosi, miso, sclk, ssel Serial uart(USBTX, USBRX); -#define TXRX_LENGTH 16 //max is 16 +#define TXRX_LENGTH 224 //max is 16 int main() { uart.printf("START!"); device.format(8,1); @@ -40,6 +40,7 @@ device.reply((uint8_t*)"xyz", TXRX_LENGTH); while(1) { if(device.receive(TXRX_LENGTH)) { + //Thread::wait(1000); int ret = device.read(); // Read byte from master uart.printf("ret = %s ", ret);