RandomInsano / pscontroller-rs

Rust driver for the Sony PlayStation controllers using embedded-hal
Apache License 2.0
15 stars 6 forks source link

Support more than one controller #2

Open RandomInsano opened 6 years ago

RandomInsano commented 6 years ago

Currently, I'm relying on the SPI enable line to bring the controller to attention. There should optionally be some arbitrary pin to use so that more than one controller can be used per bus.

RandomInsano commented 6 years ago

Arbitrary pin done. Need to expand that to take an array of pins.

RandomInsano commented 6 years ago

Oh previous me, you had the right idea. Made it an optional field in 0.2 but I'll have to change the API again.

Interesting other angle: Create a completely separate library that abstracts multiple SPI devices and just use that one.