modified send e receive spi: work with int instead of unsigned char

Signed-off-by: Andrea Corna <andrea.corna.ac.91@gmail.com>