/SPI-communication

C-libraries for SPI communication between two Arduino Nano.

Primary LanguageCGNU General Public License v3.0GPL-3.0

SPI-communication

The C-code of a master and slave that communicate over SPI.
The code was written in Atmel Studio and is supposed to demonstrate the functionality of the SPI communication between two Arduino UNO/NANO.

Master

  • reads the state of a button
  • Send the button state over SPI to the slave
  • controls the SPI communication

Slave

  • controls an LED depending on the button state of the master
  • Turns on the LED in case button is pressed
  • Turns off the LED in case button is not pressed

Schematic: grafik