Hi all,
I want to test some SPI communication and don't know where to start.
I just want to send some bytes through SPI. Don't need to receive for now.
I don't want to build a library for now. Can I just use the base library and declare a variable of type SPI?
Can I just use the "transfer" method or do I need to use the "init" method first? Don't know where to start.
I looked at the exemple for the piFace and the temperature sensor and cannot figure out how this works.
Is there any documentation on how to use the SPI library? Can't find any.
Please help...
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
please open the SPI_PIFace.library,
here you see how it could be realized. (This works for the project too, you need only to add Raspberry Pi Peripherals linrary to your project)
Basically it is the method transfer which you need to use for reading and writing:
Hello. I created a project that uses SPI. This project is working well. I can see with an oscilloscope that the SPI pins are actually changing.
But when I resave this project in the IDE and open it later in the system, I see a constant error.
What do I need to fix? What am I doing wrong?
Thank you.
Hi all,
I want to test some SPI communication and don't know where to start.
I just want to send some bytes through SPI. Don't need to receive for now.
I don't want to build a library for now. Can I just use the base library and declare a variable of type SPI?
Can I just use the "transfer" method or do I need to use the "init" method first? Don't know where to start.
I looked at the exemple for the piFace and the temperature sensor and cannot figure out how this works.
Is there any documentation on how to use the SPI library? Can't find any.
Please help...
Thanks!
Hi,
please open the SPI_PIFace.library,
here you see how it could be realized. (This works for the project too, you need only to add Raspberry Pi Peripherals linrary to your project)
Basically it is the method transfer which you need to use for reading and writing:
snippet:
BR
Edwin
Related
Talk.ru: 1
Talk.ru: 2
Last edit: eschwellinger 2021-08-25
Hello. I created a project that uses SPI. This project is working well. I can see with an oscilloscope that the SPI pins are actually changing.
But when I resave this project in the IDE and open it later in the system, I see a constant error.
What do I need to fix? What am I doing wrong?
Thank you.