General area when it fits no where else

Moderator: Mmiscool

User avatar
By Ecoli-557
#51444 Hello from the frustrated bench-
I have tried to get the TFT SPI example found in the help file to work but it just lights up and no text.
I am positive it works as others have used it but I was curious if there was something wrong with what I am coding - although it is pretty simple...... and straight from the help file except for the wait and end.

tft.setup(D0, D2, 0)
tft.text.color(tft.rgb(255,255,0))
tft.text.cursor(0,50)
tft.text.size(2)
tft.print("This is ")
tft.println("print ")
tft.println("second line")
tft.println("third line")
but2 = tft.obj.button("Number2", 155,5,100,50)
wait
end

Also, I have been told that the MOSI,MISO,CS, and CLK are not for our use but is tied to the non-volatile under the can. Anyone get this to work with an external device using another CS of course??

Regards to All.
I am using a NodeMCU
User avatar
By RichardS
#51448 Love the AVATAR!

There is another SPI on pins D12-D15

wiki/doku.php?id=esp8266_gpio_pin_allocations

RichardS
User avatar
By Ecoli-557
#51497 SOLVED!
[/size]The CS for the display needed a 10k pull-down. My test code below for others:
tft.setup(15, 4, 2) 'CS on GPIO15 w/10k pull-down to GND, D/C on GPIO4, Landscape mode
tft.text.color(tft.rgb(255,255,0))
tft.text.cursor(5,60)
tft.text.size(2)
tft.print("This is 1st Line")
tft.text.cursor(5,80)
tft.print("This is 2nd Line")
tft.text.cursor(5,100)
tft.print("This is 3rd Line")
but2 = tft.obj.button("Number2", 125,5,100,50)
chk1 = tft.obj.checkbox("Check Me", 10,160,20,1, 2, 65535, 0)
rad1 = tft.obj.radio("Radio", 10,200,20,0, 2)

end
User avatar
By Ecoli-557
#51499 RichardS-
Thanks on the avatar....
WHERE do you find the SPI on pins D12-D15? Where are pins D12-D15 located? The link does not indicate such pins..... I could have missed it......