Digole
Digital Solutions
iDigole Buyer ProtectioniDigole Buyer
Protection
My shopping cart
0 Items:
Secure Checkout
Top Rated Plus
Visit Our Live Auctions
99.9% Customer's Satisfaction
 
Forum : Digole Serial Display :

 Search Forum.. 
 Creat New Topic   Reply 

DS320240CTFT-56T drawing horizontal line 1X1 320X320

 hi service 

first i must say thanks a lot for your speedy answers

one question more about drawing lines 

i wish use display horizontaly  as 320 rows and 240col but using command "LNBBBB" we are limited to 255row X 255col

for example to draw a keyboard i need the use of the entire surface, is there a tip for this ?

jyb the frenchman

 

RE:DS320240CTFT-56T drawing horizontal line 1X1 320X320

Yes, this is a bug in firmware, but can use the following command to fix it:

mydisp.setDrawWindow(0,0,319,239);

The firmware didn't change the default draw window when you switch the direction to 90 or 270, the default draw window is (0,0,239,319), so this is the reason.

We will fix this issue in feature products.

Sorry about that.

RE:DS320240CTFT-56T drawing horizontal line 1X1 320X320

 hi  service

 

 lot of thanks for your speedy answer , i am going to apply this correction on my software

thanks again

jyb

RE:DS320240CTFT-56T drawing horizontal line 1X1 320X320

 hello secure

command DWWIN,0,0,319,239 seems no works but may be i misuse it or miss some detail

does this command must be used before any direction command or each time display is cleared ? ,i tried many combinations without success

any other advices?

thanks

 

RE:DS320240CTFT-56T drawing horizontal line 1X1 320X320

 Must be used after direction changed, not before.

If direction is 0 or 180 degree, please use 0,0,239,319 as parameters.

RE:DS320240CTFT-56T drawing horizontal line 1X1 320X240 version 2.8

 hi service

:DS320240CTFT-56T drawing horizontal line 1X1 320X240  version 2.8

about my screen size limited to 240X240 ,you gave me  the command "DWWIN 0,0,319,239"

i tried it , it's reverse "0,0,239,319 without sucess

but reading at the bottom of page 2 of the notice, it is said : "for values > 255 it need 2 bytes , first byte giving 255 and second byte containing the difference between 255and real value

question: does this is to be  appliyed to the command "DWWIN.."?  

jyb

 

RE:DS320240CTFT-56T drawing horizontal line 1X1 320X320

 Yes, I assuming that you are using Arduino, if you don't, you need make a value over 254 like (255, (value-255)) in 2 bytes.

The first byte must be 255 to indicate 2 bytes used.

Here is the code to take care of it in our Arduino Lib for your reference:

void DigoleSerialDisp::write2B(unsigned int v) {
    if (v < 255)
        write(v);
    else {
        write(255);
        write(v - 255);
    }
}
 

RE:DS320240CTFT-56T drawing horizontal line 1X1 320X320

 hi service

i have tryed this for drawing a line and it works fine

but for the screen "sizing" command  DWWIN ,0,0,319,239  does have i to do : DWWIN0,0,255,64,239 ?

thanks

 

RE:DS320240CTFT-56T drawing horizontal line 1X1 320X320

 Yes, you supposed need to do like this,

Copyright Digole Digital Solutions, 2008-2017. All rights reserved.
Powered by Victor Sun