Digole
©DIGITAL
SOLUTIONS

Serial Display emulator    New Display User manual

Forum login or
Login:
Password:
  
Forum Catagory
Digole Serial Display (204)
  12864 LCD/OLED module (22)
  24064 LCD module (3)
  Color LCD Modules (24)
  Color OLED module (20)
  Online Emulater (4)
  Universal GLCD module (1)
  Universal Text LCD module (2)
Mini Display Panels (0)
  Mini LCDs (0)
  Mini OLEDs (0)
Pattern Drive Module (0)
~Buy & Sell on Digole (2)
~Others~ (5)
Forum : Digole Serial Display :

 Search Forum.. 
 Creat New Topic   Reply 

4.3" serial display

 How to use the full width of the 4.3" display in landscape?

RE:4.3

Please use following function to send pixel's positoin larger than 480:

 

write2B(unsigned int v) {

   unsigned char tmp;

    if(v>=255)

    {

        write(255);

        if(v>480) //for position larger than 480, use 3 bytes

        {

   tmp=v/256;

            write(226+tmp);

            tmp=v%256;

            write(tmp);

        }

        else //for position in 255 to 480, use 2 bytes

            write(v - 255);

    }

    else //for position less than 255, use 1 bytes

        write(v);

}

Copyright Digole Digital Solutions/Digole Technologies Inc., 2008-2023. All rights reserved.
Powered by Digole