Skip to content

C-libraries for SPI communication between two Arduino Nano.

License

Notifications You must be signed in to change notification settings

Ovidiu22/SPI-communication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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