Efried Posted February 9, 2021 Share Posted February 9, 2021 What is the good method transfering the eight bits via SPI to DPOT using a raspberry pi? spi.writebytes accepts int arrays only. many thnaks Link to comment Share on other sites More sharing options...
JColvin Posted February 11, 2021 Share Posted February 11, 2021 Hi @Efried, I'm not familiar with the Raspberry Pi function calls, but I would recommend converting the 8 bits that are being sent into a single byte and then just using the spi.writebytes function to send a single byte (typecasted as an int). Or if the function wants an array of int's that are either 0 or 1, you could do that as well through typecasting. Thanks, JColvin Link to comment Share on other sites More sharing options...
Question
Efried
What is the good method transfering the eight bits via SPI to DPOT using a raspberry pi?
spi.writebytes accepts int arrays only.
many thnaks
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.