Digitron SG128x64-J5 in graphic mode problem

Thread Starter

paulfjujo

Joined Mar 6, 2014
23
hello,


I am working on a 128x64 GLCD Digitron SG12864-J5
it seems this type use a ST7920 Display processor (not KS107 or KS108)..
i fund and adapted some code and can display Texte with big characters 16x16
4 lignes of 16 cars

But i can't handle individual Pixel drawing ?
i use a 1024 bits RAM area for Graphics data.


And i have some doubt for constrat adjustment
with a micro potentiometer on the back PCB with is not very efficient..
Constrast is also very sensitive with Power voltage:
4.8V nothing visibe 5.01V OK 5.2V Nothing

Can someone show me a C code for put_pixel(x,y,color); drawing function.
color is only like Black or white ..

(I allready did it for a Nokia 5110 successfully)
but this LCD is very special..

you can see my results and C18 code on this web page

http://paulfjujo.free.fr/_18FxxKxx/Test_LCD_128x64_ST7920_8b_PIC18F46k22.htm
 

takao21203

Joined Apr 28, 2012
3,702
It looks like OP tried to quote OP'

Website is in french only and layout cluttered and containing a lot of assembler stuff.

I suggest OP to use C language, and use a CMS (content management system), like for instance wordpress.
 

THE_RB

Joined Feb 11, 2008
5,438
...
I am working on a 128x64 GLCD Digitron SG12864-J5
it seems this type use a ST7920 Display processor (not KS107 or KS108)..
...
But i can't handle individual Pixel drawing ?
i use a 1024 bits RAM area for Graphics data.
...
Can someone show me a C code for put_pixel(x,y,color); drawing function.
...
That display is not capable of "put pixel" function. You can only write a byte to the display, which is 8 vertical pixels.

So you must ALWAYS write 8 pixels at a time.

The only way to get something like "put pixel" function is to keep a copy in your microcontroller RAM of the entire graphics area. Then you "put pixel" to your graphics area RAM, then write one byte (which contains that pixel) to the GLCD.

So if you want pixel graphics on the entire 128x64 display, you need 128x8 = 1024 bytes of RAM spare in your micro.

If you only want pixel graphics on part of the screen, you can use less RAM.
:)
 

Thread Starter

paulfjujo

Joined Mar 6, 2014
23
hello,

Ok i will try to manage pixel by writting modulo 8 bits
instead of pixel per pixel..

Tanks a lot, for this advise.
 

Thread Starter

paulfjujo

Joined Mar 6, 2014
23
http://paulfjujo.free.fr/AD7715/datas/AD7715A.C

for instance gives a 404 error (not found).

This is why you should use a CMS. Or you can never really keep a large collection of HTML pages free of 404 errors.

With CMS, you can use categories and tags and pages.
with a wordpress plugin, you can even tag/categorize pages.
And you can do SEO.

Your reply not concern this thread !.
Are you doing some publicity for wordpress ?

But i thanks you to discover this 404 error .. i corrected it.
I am not a webmaster or web programmer..
and i started this website 10 years ago .. with Frontpage express and Notetablight editor
this can explain not up to date with new web software.
I only like to share my experiences and know how about MCU with others.

I don't know what is OP
I don't know what is CMS
i don't know what is SEO

Even this website is in French only, someone can find usefull informations inside..
I am french and don't request all other website owners to translate it in French !

Fortunatly, C program are allways in English, isn't it .
except French comments, but need a little effort to translate ,
like i do myself with foreign comments.

I know my website is not perfect..
I am not perfect too..
Who is perfect in this world ?
 

takao21203

Joined Apr 28, 2012
3,702
I am just mentioning it.

OP = original poster
CMS = content management system (for instance wordpress).
SEO = search engine optimization (wordpress plugin can generate HTML for META tags etc.)

You can use wordpress on altervista for free.
 

THE_RB

Joined Feb 11, 2008
5,438
Paulfjujo you have a very nice web page. :)

And welcome to the forum, it's great to see another high-skill oldtimer here.
 
Top