Yesterday I have build the latest nodemcu binary firmware with spi module, and can't set it up. The code is:
HSPI = 1
DATABITS = 8
CLOCK_DIV = 20
spi.setup(HSPI, spi.MASTER, spi.CPOL_LOW, spi.CPHA_HIGH, DATABITS, CLOCK_DIV, spi.FULLDUPLEX)
The device just hangs up and reboot, when goes to line "spi.setup..."
Tried to use the firmware with nodemcu kit v0.9 and v1.0, the result is the same.
Different DATABITS and CLOCK_DIV parameters also change nothing.
I have also tried to build the firmware from <master> and <dev> branches, with no success to setup spi on all variants.
Can anybody help me with the issue?
Thanks in advance!