-->
Page 1 of 1

RE ESP8266basic SPI

PostPosted: Fri Jan 06, 2017 12:35 am
by siddharthtaunk
Hi,

Has anyone tried with the SPI interface of ESP8266 I am trying to interface EN25t80 and here is the code. Can anyone please let me know where am I going wrong

cls

spi.setup(9600,3,1)
Button "Send recieve SPI" [SEND_REC_SPI]
wait

[SEND_REC_SPI]
io(po,d8,0)
dat$ = spi.hex("9f", 1)
print dat$
io(po,d8,1)
wait

and this is the setup mentioned in the doc.
SCK : GPIO14
MISO: GPIO12 (Master Input, Slave Output) (input for the ESP8266)
MOSI: GPIO13 (Master Output,Slave Input ) (output for the ESP8266)

kindly help