← index #10999PR #15436
Likely Duplicate · medium · value 0.760
QUERY · ISSUE

SoftSPI: Implement 'bits' and 'firstbit' parameters

openby sebert007opened 2023-03-10updated 2023-03-11
enhancement

SPI offers both this parameters to specify. SoftSPI rejects both of them, although they are really useful (and needed).

But first probably this issue should be fixed along with it.

#5225

CANDIDATE · PULL REQUEST

extmod/machine_spi.c: Support firstbit=machine.LSB for machine.SoftSPI.

mergedby robert-hhopened 2024-07-09updated 2024-07-14
extmod

Easy to add, sometimes needed and sought for.

For the change the definition of MICROPY_PY_MACHINE_SPI_MSB/ -LSB was moved to py/mpconfig.h, making them available to all ports. The identical defines in esp32/mpconfigport.h were deleted.

Tested with the RP2 and ESP32 port.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied