Ovidiu22 / SPI-communication

C-libraries for SPI communication between two Arduino Nano.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

C-libraries for SPI communication between two Arduino Nano.

License:GNU General Public License v3.0


Languages

Language:C 95.2%Language:Makefile 4.8%