Go Down

Topic: U8glib: Graphics Lib for LCDs and OLEDs (Read 59243 times) previous topic - next topic

olikraus

Feb 11, 2012, 10:09 am Last Edit: Jun 15, 2012, 09:16 pm by olikraus Reason: 1
U8glib 1.00 is available for download.

http://code.google.com/p/u8glib/

Features
* Universal graphics library for OLED and LCD displays
* Monochrome and graylevel
* Controller support: SSD1325, UC1701, ST7565, ST7920, UC1610, PCD8544, PCF8812, KS0108
* Many fonts included
* F() macro and "print" support
* XBM Bitmaps
* Landscape and portrait mode



Note: The DFRobot ST7920 should be supported by the U8GLIB_ST7920_128X64 device,
but it has been reported that this is not working. Maybe someone from the Arduino
community is able to check this (I do not own this display).

Thanks to everybody who tested the beta releases during the last weeks!

Oliver

rotceh_dnih

i've seen this now a few times , would there be any chance of haveing the ST7687s added ?
i found some init code for another micro but im very noob at this and need help

http://pastebin.com/yQMJWqH3
Cod modder/mapper

olikraus

For sure, this is possible. However, i need some more information: What is the name of the display, is there a datasheet for the display? I am also a little bit confused: The provided link is for the ST7637, but you requested the ST7687.

Oliver

rotceh_dnih

#3
Feb 12, 2012, 12:30 pm Last Edit: Feb 12, 2012, 12:32 pm by rotceh_dnih Reason: 1
sorry i misread that thinking it was a 7687 the screen is a COG-C144MVGD-02 but the 04 others are the same , i found the datasheet for the controller http://www.displayfuture.com/engineering/specs/controller/ST7687S.pdf and also the data sheet for the lcd if that helps http://forums.parallax.com/attachment.php?attachmentid=75229&d=1289666192 i also found some code that had 90% correct commands but cound not port it over to arduino here it is if it helps there are some cool drawing classes in there might be handy but i broke it xD ie not compileing in arduino ide "not that it ever did" https://rapidshare.com/files/3415949665/rotcehlcd.rar

i also have a pcb made ready for testing


Cod modder/mapper

olikraus

It could be done with u8glib, if a limited color space is acceptable. This means, that you could use 64 colors (out of the full color range). Would this be ok?

Oliver

rotceh_dnih

yea that would be great i only have text to display atm, latter on down the track id like to do more with this litte screen but anywhere is a great start :) this screen is found in manny micro photoframes ie the COBY DP151 and the XC0211 from jaycar http://www.jaycar.com.au/productView.asp?ID=XC0211 i also thought about makeing a video tut on makeing the breakout pcb ,etching, de soldering the lcd , and re working it to the breakout pcb if that could be helpfull as i found a few tricks that help

oh with the 64 colors thing would it look like this or worse or better ?
Cod modder/mapper

eotech

Your libary sounds interesting but....
I have purchased a 128x64 display named JN12864J obviously with a different controller than the KS108 stuff.
Controller is a Sitronix 7920 ([url][/http://www.dfrobot.com/image/data/FIT0021/ST7920.pdf ]).
Pinout is app type B with main difference that only one CS is needed and NOT 2 (CS1,CS2) as on KS0108.
Would it be possible to use/change your library to this type of interface?

olikraus

@eotech
At least the U8GLIB_ST7920_192X32 constructor works fine in parallel and serial mode.
You may assign U8G_PIN_NONE to cs2 (and also cs1 if this is not tied to the Arduino).
The correct constructor for your display probably is: U8GLIB_ST7920_128X64.
You can try both by uncommenting the constructor in the example files.


@rotceh_dnih
I will start working on it, but it requires are totally new memory architecture. So it might take some time.

Oliver


eotech

Thankyou Oliver
I am a newbie and need some time to have it all setup.
I will make an attempt to have your lib included and defined to see what happens.
I would be happy to see that my purchase was not totally lost due to missing drivers :-)

Eo

rotceh_dnih

#9
Feb 13, 2012, 09:40 pm Last Edit: Feb 15, 2012, 05:38 am by rotceh_dnih Reason: 1
:) yes thank you oliver you really are a life saver , caint wait to see what you come up with
Cod modder/mapper

olikraus

Some news on U8glib:

I have added a 8-bit color memory architecture (screenshot from the sdl-simulator):


With this, I added a U8GLIB_ST7687_C144MVGD (SPI interface) device to support
the requested C144MVGD TFT display. However, I do not know if the device code is correct nor do I know if the init sequence is correct (I simply do not have access to the device for testing).
http://code.google.com/p/u8glib/source/browse/csrc/u8g_dev_st7687_c144mvgd.c

I have also added the U8GLIB_LC7981_160X80 device to support the LC7981 controller. Also untested, but I might get feedback.

Download the prerelease here:  http://code.google.com/p/u8glib/downloads/list

@manu_07 and eotech
Is U8glib working with your display?

Oliver

bperrybap

ooooh, color.... Nice!
--- bill

DD313

Hi
I found some libraries at dfrobot, for their display.
http://www.dfrobot.com/index.php?route=product/product&path=53&product_id=240
Good luck
DD

olikraus

Thanks,
However, the problem is that I do not have access to this DFRobot display. I do not know if my code works or not.  :~

Oliver

rotceh_dnih

wow great work man i love it i havent got it to work but i love it :) ,
im not sure if its hardware or not but theres a few things im not sure about
first off i used constructor U8GLIB_ST7687_C144MVGD u8g(2, 4, 6, 8, 10); i hope thats fine
im useing logic level converters to talk at 3v to the screen and looking at the datasheet for the ST7687 im guessing that " pin 27 A0" is SCL , "pin 25 D0" is SI and "pin 24 D1" is A0 a little confuseing but i keep going

its then i look at how its set into spi mode
and it says that IF1 & IF2 go high and IF3 is pulled low however according to the screen datasheet
http://www.google.com.au/url?sa=t&rct=j&q=COG-C144MVGD-02&source=web&cd=1&ved=0CCUQFjAA&url=http%3A%2F%2Fwww.tecenstar.com%2Findex.php%3Froute%3Dproduct%2Fproduct%2Fdownload%26documento_id%3D7&ei=U8NAT4TXCY-QiQedlrjpBA&usg=AFQjCNFtwSGhdvKUyZXm9nlnIDxCk-TfTA&sig2=6Cfdzb6YmMsOfZ3v13Y37w my lcd has only IF1 "pin14" & IF2 "pin 13" so unsure what todo next i tried combos of IF1 and 2 high and low but nothing is working the rest of the pins seem to be there and it looks to be hooked up right but im really not sure maybe the screem caint do spi? i really hope it can but this isnt looking good lol might have to be an  wire interface :s not a big drama but i do like the idea of less pins :) , thanks you for your great work and i hope i've given enough info for you to help please let me know if theres anything else you'd like to know or how i can help get this working :)
Cod modder/mapper

Go Up