I DID try searching first, and came up with nothing.
Are the SPI pins supported? HSPI? Is the latter "hardware" SPI? But aren't the SPI pins also hardware controlled/managed? Surely not bit-banged?
Supported through the core SPI object? If so, what's the built-in var?
Sorry for the rapid-fire questions, I'm a little frustrated 'cause I can't piece it together from what I can find on the forum. Forgive my crankiness :-)
One of the sets of spi pins are used for the flash.
Other pair is usable. This code works - you can see how I set it up http://forum.espruino.com/conversations/280762/
Having said that, the implementation of hardware SPI is a bit rough, and although you might feel better using it, it's probably not much more efficient than just using software SPI - because for hardware SPI it's still waiting for each byte to be sent.
This is using SPI to drive a nokia display on an ESP8266:
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem