day ago I've raised a similar question related SPI and Py Board viewtopic.php?f=6&t=4950 and now I'm here again for the same reason on SPI using Adafruit Feather HUZZAH ESP8266.
The device connected to the spi , a BIG BUDDY TALKER http://www.engineeringshock.com/the-big ... -page.html require to set SPI so to use the firstbit=MSB and I'm using the hw interface from the board.
The code suggested by Damien as reply to my previous post seems don't work on ESP 8266 , so I'm following the documentation https://docs.micropython.org/en/latest/ ... achine-spi
and this is the code I'm using :
Code: Select all
from machine import Pin
from machine import SPI
spi = SPI(1)
spi.init(baudrate=600000,polarity=0, phase=0, bits=8, firstbit=SPI.MSB)
print(spi)
The question are :
1 )Where I'm wrong and how implement SPI on this board , if what is writte in the documentation isn't correct .
2) If there is problems with the wrong documentation , when we can hope to have fixed?
3) Why we must continue to have different sintax between micropython used on Py board and esp8266 ( for instance also
in the use of pin ...) and why don't think to have just one documentation with inside described the differences between the code to be used
on one board or another ?
Sometime the implementation of easy things sound frustrating ....