glad to see some interest
some ideas needed :-
currently to display a stringI would rather have a usercommandCode:fg=$F800 ; set colour TEXTSIZE=2 ARRAYWRITE buffer,["HELLO WORLD",0] GLCDC 1,63 ; set x ,y position ch=0 WHILE (ch< 32) AND (buffer[ch]>0 ) ; check for end of string GLCDC buffer[ch] ; disp ch ch=ch +1 WEND
GLCDS 1,63 ,buffer
but I can't figure a way of getting the address of buffer from the usercommand macros
GLCDS 1,63 ,"HELLO WORLD"
but I can't figure a way of getting the string data from the usercommand macros
I would like to put the display hardware dependent code into a separate include file (that way other displays could be incorporated)not all the useful input combinations have had their macros written for each user commanddrawHline,drawVline,drawline,drawcircle,drawrect,f illcirclemore user commands are required
the hardware connection interface is defined like thisits a bit clunky I sure there are better waysCode:tft_dc_bit con 4 tft_cs_bit con 1 tft_rst_bit con 8 tft_port var latd
bit banging the data could be investigated
over to you


 
			 
			 
			 
					
					

 Re: A tft addin for pbp3
 Re: A tft addin for pbp3
		 
				
				
				
				
			

Bookmarks