I'm working on the standalone slave file, so far with a blank sketch and no contructor (simple really) we have this:
Current sketch code:
Code:
Sketch uses 42752 bytes (67%) of program storage space. Maximum is 63488 bytes.
Global variables use 5628 bytes (68%) of dynamic memory, leaving 2564 bytes for local variables. Maximum is 8192 bytes.
Current sketch code:
Code:
#include <SPI_MSTransfer_Slave.h>
void setup() {
slave.begin( );
slave.onTransfer(myCallback);
}
void loop() {
slave.events();
}
void myCallback(uint16_t *buffer, uint16_t length, AsyncMST info) {
for ( uint16_t i = 0; i < length; i++ ) {
Serial.print(buffer[i]);
Serial.print(" ");
} Serial.println();
}