Work in progress.
This is the SSD1289 Driver for GCbasic.
The writing was partially based on UTFT library of Henning Karlsen for Arduino, partially on glcd_KS0108 of Hugh Considine and Evan Venn and other resources from the internet.
It executes the next commands:
Sub TFT_Init..........Initialitation of screen
Sub TFT_Fill..........It fills the screen with specific color.
..............................It can be used for the cleaning of the screen from previous things.
Sub TFT_Box...........It draws boxes with filled colors.
Sub TFT_Dot...........It draws a specific pixel with specific color
Sub TFT_H_Line........It draws horizontal lines with specific color
Sub TFT_V_Line........It draws vertical lines with specific color
Sub TFT_Rectangle.....It draws rectangulars.
Sub TFT_Line..........It draws lines with specific color.
Sub TFT_Circle........It draws circles with specific color.
Sub TFT_FilledCircle..It draws circles with filled color.
Sub TFTPrintS.........It prints text in size 1,2,3 etc.
Sub TFTDrawCharS......It prints a ASCII character on the screen
Sub TFTBigPrint.......It prints text with different (better) font.
Sub TFTDrawBigChar....It prints characters with different (better) font.
Sub TFTDrawBigSymbol..It prints specific symbols on the screen.
Sub TFT_Image.........It draws images with filled color.
Sub TFTDrawBMP........It draws BMP 256Κ images.
For the last command you should use the ImageConverter565 v2.3 of Henning Karlsen that you will find in the zip archive.
After you read the BMP archive you should first write in the correspondant table the width and the height and then the rest of the Data.
Thinks to do:
1)write the right sub and change some other subs in order for it to be able to support the landscape direction.
2)write a driver for the touch screen.
3)write a driver for the screen's sd cart.
Would be willing to help me convert into the GCB library? It is relatively simple as you have this wonderful working code. We would align the calls like TFT_Box to Box and then simple define the GLCD device as SSD1289.
We also have some new features in the next release of GCB that will make this job a little easier in terms of the definition and use of graphic tables.
Pop me an personal message and I will get you access to a version of the developer SVN for your code.
Well done and thank you!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Work in progress.
This is the SSD1289 Driver for GCbasic.
The writing was partially based on UTFT library of Henning Karlsen for Arduino, partially on glcd_KS0108 of Hugh Considine and Evan Venn and other resources from the internet.
It executes the next commands:
Sub TFT_Init..........Initialitation of screen
Sub TFT_Fill..........It fills the screen with specific color.
..............................It can be used for the cleaning of the screen from previous things.
Sub TFT_Box...........It draws boxes with filled colors.
Sub TFT_Dot...........It draws a specific pixel with specific color
Sub TFT_H_Line........It draws horizontal lines with specific color
Sub TFT_V_Line........It draws vertical lines with specific color
Sub TFT_Rectangle.....It draws rectangulars.
Sub TFT_Line..........It draws lines with specific color.
Sub TFT_Circle........It draws circles with specific color.
Sub TFT_FilledCircle..It draws circles with filled color.
Sub TFTPrintS.........It prints text in size 1,2,3 etc.
Sub TFTDrawCharS......It prints a ASCII character on the screen
Sub TFTBigPrint.......It prints text with different (better) font.
Sub TFTDrawBigChar....It prints characters with different (better) font.
Sub TFTDrawBigSymbol..It prints specific symbols on the screen.
Sub TFT_Image.........It draws images with filled color.
Sub TFTDrawBMP........It draws BMP 256Κ images.
For the last command you should use the ImageConverter565 v2.3 of Henning Karlsen that you will find in the zip archive.
After you read the BMP archive you should first write in the correspondant table the width and the height and then the rest of the Data.
Thinks to do:
1)write the right sub and change some other subs in order for it to be able to support the landscape direction.
2)write a driver for the touch screen.
3)write a driver for the screen's sd cart.
Watch the following video:
https://www.youtube.com/watch?v=l2bG2e-jUhE
Here the .h file
Here are the rest of the files
Great job.
Would be willing to help me convert into the GCB library? It is relatively simple as you have this wonderful working code. We would align the calls like TFT_Box to Box and then simple define the GLCD device as SSD1289.
We also have some new features in the next release of GCB that will make this job a little easier in terms of the definition and use of graphic tables.
Pop me an personal message and I will get you access to a version of the developer SVN for your code.
Well done and thank you!