Closed DancingQuanta closed 6 years ago
I think I should do a pull request anyway.
Hey @DancingQuanta Please do send a PR! I will do my best to review/approve and test tomorrow. I've dropped off the map a little bit recently, but will get it done quick this week.
Hi, I decided to change the schema for SPI modes in pyusbiss. USB-ISS sets the SPI modes through a number in the following table
The numbers do not match up. I made an assumption that iusers are familiar with SPI and knows its modes then they are more likely to select the SPI modes over USB-ISS mode numbers. Moreover, USB-ISS's webpage do not mention the mode number, only the clock polarity, phase and edge which needs reading up.
So in your application your SPI mode is 1 and for USB-ISS it is number command 2. With my change, you only need to enter 1 in USB-ISS example with OPC. My library will set USB-ISS to use SPI mode 1 correctly.
I hope this will be more friendly.