Home Forums EasyTransfer Library Support Forum Easy Transfer Array Populating (from SD?) Reply To: Easy Transfer Array Populating (from SD?)

#3527
Anonymous
Inactive

The addition of the memcpy line, once uploaded to my Teensy3.2, causes the unit to no longer be recognized as a USB Device.  Reverting to the previous code and reflashing fixes the issue.   Ultimately, I don’t need two copies of the array data, only 1.  However, I tried editing this section:

struct SEND_DATA_STRUCTURE{

//put your variable definitions here for the data you want to send

//THIS MUST BE EXACTLY THE SAME ON THE OTHER ARDUINO

int arraydata[];

to read

<span style=”line-height: 1.5;”> </span><span style=”line-height: 1.5;”>int mydata.arraydata[];</span>

and changed all references to arraydata to mydata.arraydata,  however it fails to compile.

 

Ultimately, my goal is this:   Teensy unit 1 (server), will read a .txt file which will contain the array data, and will send that array data to Teensy unit 2 (client), which will then use the array to light up some LEDs.   At pre-specified times, the server Teensy will load a new .txt file and overwrite the array data, changing the display on the client Teensy.  Am I approaching this wrong?   Thank you!  Your help responsiveness is greatly appreciated.