Closed Jorgen-VikingGod closed 7 years ago
Sounds like a conflict in pin mapping?
Did you have a look at https://github.com/esp8266/Arduino/blob/master/doc/reference.md and in particular the section about the serial interface?
Could it be that you have Serial0 swapped, using GPIO13 and GPIO15?
Does software SPI work? Using software SPI you could use different pins and see if (and where) you get the conflict.
Sounds logic to me; but in my sketch I do not call Serial.swap()
just on top of setup()
method Serial.begin();
I will try Software SPI today - but this is no option for me, because of update speed reasons...
I suggest SW SPI as a debugging tool, to see if there is an issue with the pins used for HW SPI, not as a final solution. I would start with exactly the same pin map used in HW SPI and then change pins one at a time.
Having said that, with the current implementation there is no significant improvement over SW SPI in speed when you use HW SPI. Of course, this will change when I find the time to review and factor in pull request #7...
I tried yesterday your wiring with my NodeMCU and it worked without a problem, using Serial.begin() in setup() and a couple of Serial.println() which I was monitoring with the Arduino IDE serial monitor.
I try to run it again and it works now... Don't know why it did not work before. Maybe my wiring is not stable enough (=breadboard) Thank you for your support.
On my setup I have strange issues: If the serial terminal is on - the TFT display do not update any content. As far as I close the terminal and reset the ESP8266, it boots up as normal and the display lights up and shows up all the stuff I want.
WeMos d1 mini with following wiring: