-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use SPI Bus for multiple Devices #466
Comments
Why not just create two or more SpiDeviceDriver instance each with its own config that represents each MODE option? |
Tried that already but the driver con just be passed once cause then it get moved and after that I can not create a new one |
A SpiDeviceDriver takes a Borrow. If you are not familiar with Borrow you can read about here. It allows you to not only pass by |
ah thanks refactoring solved it for me the async task messed things a bit up |
I wanna use the Spi Bus for multiple Spi Devices Problem here is that the config for one device is a bit different.
(It is taking data on raising Edge the other on falling.)
So is there any way to change config on runtime of a SpiDeviceDriver or to create two different one so I can pass one to each devices?
The text was updated successfully, but these errors were encountered: