try again got my x's and y's the wrong way round obviously
Code:x0= x coordinate y0= y coordinate GOSUB drawpixel
try again got my x's and y's the wrong way round obviously
Code:x0= x coordinate y0= y coordinate GOSUB drawpixel
Thanks again Richard,
Awesome work you got here!
Cant wait to get the display and test it out
Regards
Rui
changing the xy vars to words meant all the usercommand macros need to be changed too , I missed some .
the flash addin no works nicely if anyones interested
Hi guys,
I dont have my TFT yet, but i tryed to compile the TFT-Demo.pbp file using the same pic Richard used ( 18F87J11 ) but i get lots of compile errors.
One of them is with the FONT7x8 include file.
Can everyone compile the file without any errors?
Do we have to do something in between or are these files plug-and-play?
Regards
Rui
the demo has the following includes
make sure you have the latest version of them , if they are not located in the pbp3 dir or your current dir you need to specify the full path to each fileCode:INCLUDE "TFT_SPI.pbpmod" ;glcdc include "tft-ILI9431.bas" ; or include "tft-ST7735.bas" INCLUDE "DT_INTS-18.bas" INCLUDE "ReEnterPBP-18.bas" INCLUDE "Elapsed_INT-18.bas" INCLUDE "font7x8.bas" INCLUDE "duck.bas"
if testing with pbp3 3.0.7.4
the font file is messed up and has redundant copies included you only need 1
I will upload a new one later
Last edited by richard; - 14th July 2015 at 09:33.
additions
ie set TFT_wr_mode to 1 to flip image on y axis when DRAWIMAGE usedTFT_wr_mode VAR byte ;for image drawing 0= normal , 1=flip y , 2= flip x , 3=flip x and y
font file fixed
demo simplified (elapsed_int commented out)
forgot to add
doVdline doHdlinewill draw a dashed horizontal line from x=196 to 312 at y =34x= 196
y= 34
TFT_j= 312
gosub doHdline
and a update to the flash add in
x= 256
y= 11
TFT_k= 105
gosub doVdline
bit clunky to use I might add another couple of user commands
Last edited by richard; - 14th July 2015 at 10:27.
Bookmarks