madmachineio / SwiftIO

A Swift framework for microcontrollers abstraction layer.
https://madmachineio.github.io/SwiftIO/documentation/swiftio
MIT License
185 stars 15 forks source link

SPI mode and speed can't be changed after initialization #22

Closed Ines333 closed 2 years ago

Ines333 commented 2 years ago

Describe the bug SPI setMode() and setSpeed() method don't work.

Reason After initializing an SPI, its speed and mode are determined and can no longer be changed. This is decided by the low-level system.

Solution Delete setMode() and setSpeed() in SPI class