Cool !
Would the code look like this ?
[code:1:08fa9aafb3]Dim Spi_to_send_data(5) As Byte
Dim Spi_received_data(5) As Byte
Config Spi = Soft , Din = Pinb.4 , Dout = Portb.3 , Ss = Portb.2 , Clock = Portb.5 , mode = 1
Spiinit
'Assign values:
Spi_to_send_data(1) = &HA8
'etc
Spi_received_data(1) = Spimove (Spi_to_send_data(1))
'etc
[/code:1:08fa9aafb3]
But how does it know how many bytes should be sent ?
I think I read all the Help files on SPI thoroughly, but cannot figure it out ...
Thanks
Nard
↧