Germany
Offline
God Member
Karma: 69
Posts: 802
If you believe something is right, you won't see what's wrong (David Straker).
|
 |
« on: February 11, 2012, 04:09:35 am » |
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
|
|
|
|
« Last Edit: June 15, 2012, 02:16:35 pm by olikraus »
|
Logged
|
|
|
|
|
AUS,Downunder
Offline
Jr. Member
Karma: 0
Posts: 51
Arduino rocks!!!:)
|
 |
« Reply #1 on: February 12, 2012, 04:07:14 am » |
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
|
|
|
|
|
Logged
|
Cod modder/mapper
|
|
|
|
Germany
Offline
God Member
Karma: 69
Posts: 802
If you believe something is right, you won't see what's wrong (David Straker).
|
 |
« Reply #2 on: February 12, 2012, 05:20:41 am » |
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
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Germany
Offline
God Member
Karma: 69
Posts: 802
If you believe something is right, you won't see what's wrong (David Straker).
|
 |
« Reply #4 on: February 12, 2012, 09:59:34 am » |
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
|
|
|
|
|
Logged
|
|
|
|
|
AUS,Downunder
Offline
Jr. Member
Karma: 0
Posts: 51
Arduino rocks!!!:)
|
 |
« Reply #5 on: February 12, 2012, 03:43:32 pm » |
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 ? 
|
|
|
|
|
Logged
|
Cod modder/mapper
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 4
|
 |
« Reply #6 on: February 13, 2012, 05:36:00 am » |
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?
|
|
|
|
|
Logged
|
|
|
|
|
Germany
Offline
God Member
Karma: 69
Posts: 802
If you believe something is right, you won't see what's wrong (David Straker).
|
 |
« Reply #7 on: February 13, 2012, 06:01:01 am » |
@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
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 4
|
 |
« Reply #8 on: February 13, 2012, 06:18:29 am » |
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
|
|
|
|
|
Logged
|
|
|
|
|
AUS,Downunder
Offline
Jr. Member
Karma: 0
Posts: 51
Arduino rocks!!!:)
|
 |
« Reply #9 on: February 13, 2012, 03:40:52 pm » |
 yes thank you oliver you really are a life saver , caint wait to see what you come up with
|
|
|
|
« Last Edit: February 14, 2012, 11:38:38 pm by rotceh_dnih »
|
Logged
|
Cod modder/mapper
|
|
|
|
Germany
Offline
God Member
Karma: 69
Posts: 802
If you believe something is right, you won't see what's wrong (David Straker).
|
 |
« Reply #10 on: February 17, 2012, 04:35:50 pm » |
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.cI 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
|
|
|
|
|
Logged
|
|
|
|
|
Dallas, TX USA
Offline
Edison Member
Karma: 25
Posts: 1617
|
 |
« Reply #11 on: February 18, 2012, 02:18:17 am » |
ooooh, color.... Nice! --- bill
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 1
|
 |
« Reply #12 on: February 18, 2012, 08:16:14 pm » |
|
|
|
|
|
Logged
|
|
|
|
|
Germany
Offline
God Member
Karma: 69
Posts: 802
If you believe something is right, you won't see what's wrong (David Straker).
|
 |
« Reply #13 on: February 19, 2012, 02:58:46 am » |
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
|
|
|
|
|
Logged
|
|
|
|
|
AUS,Downunder
Offline
Jr. Member
Karma: 0
Posts: 51
Arduino rocks!!!:)
|
 |
« Reply #14 on: February 19, 2012, 05:13:23 am » |
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 
|
|
|
|
|
Logged
|
Cod modder/mapper
|
|
|
|
|