N64 To USB, or how to turn your Arduino in a USB HID joystick w/ N64 controllers

Nauman048:
Hi all
I am trying to communicate using SPI protocol between two arduino uno boards. I have writthen a very simple code to transfer a single character from master. The code is as following
[...]

Please correct the code if its not right. And I really want to know that how to recieve that character on arduino uno in slave mode. There is a command SPI.transfer() to send data on SPI where as I haven't seen any command to recieve it.

Thanks and regards

First, this topic is NOT about the SPI protocol, nor about how to interface two Arduinos together; there are sooo many detailed guides and topics for that;
Second, you can't simply ask people to correct your code; because, if you do that once, the second time you have some problems, you'll ask someone else to correct that for you, and so on; this way, you annoy people, and you don't learn how to code properly and how to debug/solve problems.

Your post has been reported.