T6963c Toshiba Driver
Moderators: David Barker, Jerry Messina
T6963c Toshiba Driver
Hello,
I downloaded Octal T6963c driver, and is working with text, but i need to draw some images and i don't have a clue on how to update the GLCD driver to draw images.
so i need some help please, i don't know if there is an updated version of the driver.
I really appreciate your help
Morris
I downloaded Octal T6963c driver, and is working with text, but i need to draw some images and i don't have a clue on how to update the GLCD driver to draw images.
so i need some help please, i don't know if there is an updated version of the driver.
I really appreciate your help
Morris
Hi Morris,
Octal has an update for this driver here :
http://www.pocketmt.com/tutors/glcd.zip
Regards
Sérgio
Octal has an update for this driver here :
http://www.pocketmt.com/tutors/glcd.zip
Regards
Sérgio
I got Errors
Thank you Sergio,
I have updated the Library, but when i use GLCD.SetImage(0,20,btnOK) i get "Identifier not declared : SetImage"
this is the Code
So i don't know if I'm doing something wrong, or the library doesn't support images.
Morris
I have updated the Library, but when i use GLCD.SetImage(0,20,btnOK) i get "Identifier not declared : SetImage"
this is the Code
Code: Select all
Device = 18F2620
Clock = 20
#option GLCD_MODEL = T6963c
#option GLCD_DATA = PORTB
#option GLCD_CE = PORTC.2
#option GLCD_RD = PORTC.1
#option GLCD_RW = PORTC.0
#option GLCD_CD = PORTC.3
#option GLCD_RST = PORTC.4
Include "utils.bas"
Include "Graphics.bas"
Include "GLCD.bas"
Include "FixedFont.bas"
Include "Verdana.bas"
Include "bitmaps.bas"
DelayMS(500)
SetAllDigital()
GLCD.SetFont(Fixed)
GLCD.Cls
While true
GLCD.WriteAt(4,5,"System Font")
GLCD.SetImage(0,20,btnOK)
Wend
Morris
DONE!
Hello,
I have modified the Toshiba module and is working fine, this is a sample
Ill make some more test and ill post the modified module here
Morris
I have modified the Toshiba module and is working fine, this is a sample
Ill make some more test and ill post the modified module here
Morris
T6963c
you mean Toshiba T6963C?
Morris
Morris
Re: DONE!
Hi Morris, would you be able to upload your changes here or in to the wiki?Morris wrote: Ill make some more test and ill post the modified module here
Morris
I would like to try it out.
Thanks, Matt
Here is the library
http://www.mexred.com/sfcompiler/t6963c_morris.zip
The library supports "SetImage" command, but it scan images along X
I have included the "Rose" sample Image, so you can make some tests
let me know if you have any problems
Morris
http://www.mexred.com/sfcompiler/t6963c_morris.zip
The library supports "SetImage" command, but it scan images along X
I have included the "Rose" sample Image, so you can make some tests
let me know if you have any problems
Morris
Jason just a quick note about part of the question you have, there is not an "inc" format as you mean in the post.
"inc" is simply shorthand for "include" and means a type of file that is "included" in the compilation of the current project.
SF generally has "modules" that are used to contain code which generally is linked together, these are usually saved as .bas files but could just as easily be saved as .inc, they have exactly theh same purpose.
The data in the inc file here is simply a data table that is held in flash as a const(ant) array and effectively starts at address "Rose128x128".
It looks as thought it is a line by line bitmap of the 128x128 screen, so the first byte (I am ignoring the four bytes at the start as I have no idea what they do) might be the eight pixels at the top left of the screen going across to the right, the next byte is the next eight pixels and so on, at the end of the 16bytes (16x8=128pixel bits) it restarts at the next line down.
You could actually see the shape in the text file were it done in binary, as each bit would be visible as the pixel is on screen, that is how I always do my arrays of this type.
"inc" is simply shorthand for "include" and means a type of file that is "included" in the compilation of the current project.
SF generally has "modules" that are used to contain code which generally is linked together, these are usually saved as .bas files but could just as easily be saved as .inc, they have exactly theh same purpose.
The data in the inc file here is simply a data table that is held in flash as a const(ant) array and effectively starts at address "Rose128x128".
It looks as thought it is a line by line bitmap of the 128x128 screen, so the first byte (I am ignoring the four bytes at the start as I have no idea what they do) might be the eight pixels at the top left of the screen going across to the right, the next byte is the next eight pixels and so on, at the end of the 16bytes (16x8=128pixel bits) it restarts at the next line down.
You could actually see the shape in the text file were it done in binary, as each bit would be visible as the pixel is on screen, that is how I always do my arrays of this type.
Images
I have a program that converts the images to the correct format, but it has some bugs, ill fix and ill post the program here.
if you have any question, you can write to my mail because i don't read the forum very often.
morris @ mexred.com
Morris
if you have any question, you can write to my mail because i don't read the forum very often.
morris @ mexred.com
Morris