i got two microcontrollers (teensy 3.6 and arduino mega) which both use SPI to communicate with certain slaves. Now these two SPI Masters have to exchange data.
Although i read something on how to set up a arduino as a SPI slave (e.g. Gammon Forum : Electronics : Microprocessors : SPI - Serial Peripheral Interface - for Arduino), i dont know how to set up the ardunio (or teensy) as a slave while containing its function as a master towards his slaves.
Is there anyone who faced the same or a similar problem?
Or is there an easy solution which i dont see?
Thanks for your time and thoughts