T6963c Toshiba Driver

Coding and general discussion relating to the compiler

Moderators: David Barker, Jerry Messina

Post Reply
Morris
Registered User
Registered User
Posts: 15
Joined: Mon Feb 09, 2009 8:13 pm
Location: Mexico
Contact:

T6963c Toshiba Driver

Post by Morris » Thu Apr 30, 2009 1:08 am

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

sergio
Registered User
Registered User
Posts: 24
Joined: Mon Mar 30, 2009 5:37 pm
Location: Sao Paulo / Brazil

Post by sergio » Thu Apr 30, 2009 2:09 am

Hi Morris,

Octal has an update for this driver here :

http://www.pocketmt.com/tutors/glcd.zip

Regards

Sérgio

Morris
Registered User
Registered User
Posts: 15
Joined: Mon Feb 09, 2009 8:13 pm
Location: Mexico
Contact:

I got Errors

Post by Morris » Thu Apr 30, 2009 2:49 am

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

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
So i don't know if I'm doing something wrong, or the library doesn't support images.

Morris

Morris
Registered User
Registered User
Posts: 15
Joined: Mon Feb 09, 2009 8:13 pm
Location: Mexico
Contact:

DONE!

Post by Morris » Thu Apr 30, 2009 4:54 pm

Hello,

I have modified the Toshiba module and is working fine, this is a sample

Image

Ill make some more test and ill post the modified module here

Morris

sergio
Registered User
Registered User
Posts: 24
Joined: Mon Mar 30, 2009 5:37 pm
Location: Sao Paulo / Brazil

Post by sergio » Thu Apr 30, 2009 5:01 pm

Great Morris !

I just have 2 GLCDs here and they are KS0108 based...

Morris
Registered User
Registered User
Posts: 15
Joined: Mon Feb 09, 2009 8:13 pm
Location: Mexico
Contact:

T6963c

Post by Morris » Thu Apr 30, 2009 5:31 pm

you mean Toshiba T6963C?

Morris

sergio
Registered User
Registered User
Posts: 24
Joined: Mon Mar 30, 2009 5:37 pm
Location: Sao Paulo / Brazil

Post by sergio » Thu Apr 30, 2009 5:46 pm

Hi Morris,

no, I mean ks0108...

I tryied to buy a T6963C here in brazil. But I just found the KS0108.

I´m using the KS0108 in my new project.

Sérgio

MattH
Registered User
Registered User
Posts: 51
Joined: Mon Jan 01, 2007 8:03 pm
Location: Allentown, PA

Re: DONE!

Post by MattH » Fri May 29, 2009 2:29 pm

Morris wrote: Ill make some more test and ill post the modified module here

Morris
Hi Morris, would you be able to upload your changes here or in to the wiki?
I would like to try it out.

Thanks, Matt

Morris
Registered User
Registered User
Posts: 15
Joined: Mon Feb 09, 2009 8:13 pm
Location: Mexico
Contact:

Post by Morris » Fri Jun 12, 2009 1:56 pm

Sorry i was out of town and i wasn't able to check the messages here, ill post the changes in a couple of hours

Morris

Morris
Registered User
Registered User
Posts: 15
Joined: Mon Feb 09, 2009 8:13 pm
Location: Mexico
Contact:

Post by Morris » Wed Jun 17, 2009 10:29 am

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

User avatar
Jason
Posts: 50
Joined: Mon Mar 10, 2008 1:10 pm
Location: Australia

inc

Post by Jason » Sun Jun 28, 2009 7:24 pm

Hi Morris, I was wondering how to convert images to .inc format that your rosa sample image, is in. I looked on the net for inc image formats and couldn't find anything.

Thanks!

Doj
Posts: 362
Joined: Wed Apr 11, 2007 10:18 pm
Location: East Sussex

Post by Doj » Sun Jun 28, 2009 10:50 pm

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.

Morris
Registered User
Registered User
Posts: 15
Joined: Mon Feb 09, 2009 8:13 pm
Location: Mexico
Contact:

Images

Post by Morris » Tue Jun 30, 2009 1:50 am

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

Post Reply