using GP14, GP15, GP16 as SCLK, MOSI, MISO.
Code: Select all
from machine import SPI
spi = SPI(0, SPI.MASTER, baudrate=2000000, polarity=0, phase=0, firstbit=SPI.MSB)
for i in range(3) :
mydata = bytearray([1,2,3,4])
spi.write(mydata)
time.sleep(2)
MOSI seems OK but no activity on SCLK (High level)
tried to add a pull up/down resistor : no change
firmware is v1.5.2-71-gcb4fbc8
no more idea ...
Can you help ?
Pascal