jamesbowman / spidriver

SPI driver public repo
https://spidriver.com/
BSD 3-Clause "New" or "Revised" License
178 stars 56 forks source link

Mode control - how? #25

Open mgaman opened 4 years ago

mgaman commented 4 years ago

How can I set modes 0-3? From what I see on the screen SCLK polarity is always Idle at 0. There are no instructions as how to change it

jamesbowman commented 4 years ago

Yes, that is correct. SPIDriver only runs in mode 0.

What device do you have that runs in another mode?

mgaman commented 4 years ago

I don't, yet but do anticipate in the near future. Can it be changed via the serial connection or is it hard wired in the device firmware?

nicktramp commented 3 years ago

I was looking to use SPIDriver with the Melexis MLX90393, which uses SPI mode 3. Are other modes planned? I would offer to help implement, but I've never encountered Forth outside this project, so I'm afraid I wouldn't be much help...

movingfox commented 2 years ago

I can see that it's hard to be done because the firmware needs to drive st7735s at SPI mode 0 as well. Could you release a 'blind' version of firmware for those who'd like to have spidriver2 mode selection ? That seems to be a dirty but quick fix.

By the way, the file cal-b3.fs is missing in the firmware folder. Could you upload it?