Multi-SPI devices on same bus, different CS of course - HELP
Posted: Mon Aug 22, 2016 12:53 pm
OK Guys, I posted my SPI port exander which works well. I am now trying to also use the ILI9341 TFT screen with it.
spi.setup(1000000) 'clk on gpio14(d5) mosi on gpio13(d7)
SPI port expander CS = 4.
TFT setup tft.setup(15, 4, 2) which puts CS on GPIO15 w/10k pull-down to GND, D/C on GPIO4, Landscape mode.
Regulare SPI clock, MOSI, MISO on their respective ports.
Problem is, with code working with SPI port expander, all I do is add the one line tft.setup(15, 4, 2), it crashes my SPI port expander.
I even tried remarkling the SPI setup statement, putting the tft.setup statement 1st, and it doesn't work.
Neither the display OR the port expander seems to work on the same bus as they should.
Anyone sucessfully gotten 2 devices working on the ESP8266? One of them being the ILI9341?? Is there another SPI TFT display that works???
Need help!!
spi.setup(1000000) 'clk on gpio14(d5) mosi on gpio13(d7)
SPI port expander CS = 4.
TFT setup tft.setup(15, 4, 2) which puts CS on GPIO15 w/10k pull-down to GND, D/C on GPIO4, Landscape mode.
Regulare SPI clock, MOSI, MISO on their respective ports.
Problem is, with code working with SPI port expander, all I do is add the one line tft.setup(15, 4, 2), it crashes my SPI port expander.
I even tried remarkling the SPI setup statement, putting the tft.setup statement 1st, and it doesn't work.
Neither the display OR the port expander seems to work on the same bus as they should.
Anyone sucessfully gotten 2 devices working on the ESP8266? One of them being the ILI9341?? Is there another SPI TFT display that works???
Need help!!