SPI is busted on ESP8266? #5248
Replies: 1 comment
-
Posted at 2016-01-04 by Ollie No direct experience of SPI but commented on the issue. Setting pinMode was critical in some stuff I was doing. In your code you are referencing the pin (in the pinMode argument) as numeric '13' versus 'D13'. I referenced with the letter prefix. Posted at 2016-01-05 by DrAzzy Thanks, it wasn't that (I'd tried it both ways last night too) Posted at 2016-01-05 by @gfwilliams Not sure - all I'd say is make sure you power cycle it after trying hardware SPI. It could be it messes the pin state up and doesn't fix it properly. Also, have you tried different pins? could be hardware SPI blocks it somehow. Maybe just choose 2 random pins and short MISO and MOSI - it should then echo back any data you send. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-01-04 by DrAzzy
It sure seems to be at least. Has anyone else had any success?
Using d8dec28 build ( http://forum.espruino.com/conversations/279176/#comment12701347 ) and I can't get SPI1, or an SPI object created with SPI() to actually transfer data over SPI.
Much more detail in github:
espruino/Espruino#775
Beta Was this translation helpful? Give feedback.
All reactions