Comments (2)
I created a new Spi struct for each and it seemed to work, thanks!
from rppal.
Hey @willAlbertini707, apologies for the late reply. For SPI, RPPAL is just a wrapper for the underlying linux driver accessed through the available spidev
character devices. Since each bus/slave select combo is accessed through a different spidev
interface, you would have to create a new Spi
struct for each slave device. I haven't actually experimented with this myself, but in theory that should work.
An alternative option would be to create an Spi
struct for the SPI bus you want to use, and instead of using the pre-configured SS pins, use any other available GPIO pins for Slave Select and manually change those to high or low as needed.
from rppal.
Related Issues (20)
- Raspberry Pi5 HOT 57
- Banana Pi M5 support HOT 2
- Support concurrent reading and writing via Uart
- Using rppal with embedded_hal_async (async support) HOT 8
- Hardware field removed from /proc/cpuinfo causing identification issues HOT 5
- GPIO `is_low` output differs from rppal v0.17.0 impl compared to embedded-hal v1 impl
- No PWM on a raspberry pi 5 HOT 13
- Input pin mode not set correctly on Raspberry Pi 5 HOT 1
- Add an example of graceful shutdown when SIGINT (GPIO) HOT 1
- I2C connection with ADS1115 HOT 2
- pwm (or more specififally: ) the example `pwm_blinkled.rs` does not seem to work on my raspberry pi zero w HOT 6
- Thanks for rppal, showcase of our app using it, and question HOT 5
- Many edge detection "interrupts" but level remains the same HOT 39
- Possible to read config at startup and detect busy pins HOT 2
- SimpleHalSpiDevice does not execute all operations in a single transaction HOT 3
- UART. Losing chars on read HOT 4
- Pi5 HW PWM not working HOT 7
- Support re-configuring pull mode on InputPins after construction HOT 2
- UART: documentation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rppal.