zhaolei / WiringOP

This is a GPIO access library for OrangePi. It is based on the original WiringPi for Raspberry Pi.
GNU Lesser General Public License v3.0
351 stars 134 forks source link

updated SPI API & impl to match current WiringPi version #8

Closed savageautomate closed 6 years ago

savageautomate commented 6 years ago

This changeset updates the SPI implementation to match the current WiringPi codebase and primarily adds support for the wiringPiSPISetupMode (int channel, int speed, int mode) setup function where the user can provide a custom mode parameter.