forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
The hard-SPI mode with device # 0 seems faulty. Observed aspects:
- the setting of phase and polarity does not have the expected result. Looking into the sources, the respective code seems wrong. || instead && in logical expressions, and phase and polarity swapped.
- The bytes of a message are written in reverse order, compared to soft-SPI. Changing the firstbit parameter swaps the byte order. Maybe it is only the default setting which is wrong.
- the method write_readinto() does not work. Data is written, but not read. Looking into the code it seems, that write and read is performed sequential instead of simultaneous. I did not test yet if read works at all.
Soft-SPI (device # -1) works as expected.
Metadata
Metadata
Assignees
Labels
No labels