Pages: [1]   Go Down
Author Topic: getting UC1601 (via i2c or SPI) to work  (Read 1078 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

does anybody got a display using an UC1601 (COG - chip on glass) Controller to work with any existing (or newly created) library to work?

I would like to use
http://artronic.pl/o_produkcie.php?id=1078
that one.

I think this is interesting in general because the controller supports all common interfaces (parallel, SPI 8/9Bit and i2c).

Thanks for any hints you can give me smiley
Logged

Offline Offline
Edison Member
*
Karma: 58
Posts: 2078
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I2C is easy but not very fast.
SPI is faster, but uses more pins.
Parallel is the fastest, and uses even more pins.

If your Arduino runs at 5V and the display is 3.3V, you could have a problem. I2C is the easiest to adapt between the different voltages.
Logged

Western New York, USA
Offline Offline
Faraday Member
**
Karma: 32
Posts: 4246
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I2C is easy but not very fast.
SPI is faster, but uses more pins.
Parallel is the fastest, and uses even more pins.
And if the COG controller is as slow as the Hitachi LCD controller then in many applications it probably doesn't make much difference which you use.

Don
« Last Edit: May 06, 2013, 04:19:22 pm by floresta » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am aware of the speed differences but there won't be anything that changes fast.
I am also aware of the "problem" using a 5V MCU and a 3.3V display controller (but hey - what are level shifters made for? smiley-wink  )
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I managed it to get that display to work.
Basically it is compatible to the ST7675 controller.

I used the Adafruid ST7565 for SPI library and modified it.

I am not sure if I am allowed to post a modified Adafruit Library so here is what you need to change:

- remove the sending of CMD_SET_ALLPTS_NORMAL ( Byte 0x0a4 ) in the method " begin()"
- same for "reset" if there will be such a method in the future.


I will try to get u8glib to work with this type of controller, too, and send it to the developer of u8glib so he can implement it in the next release.


Logged

Offline Offline
Edison Member
*
Karma: 58
Posts: 2078
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The main file is for example GNU Lesser General Public License
https://github.com/adafruit/ST7565-LCD/blob/master/ST7565/ST7565.cpp
So you allowed to make a 'fork' or to modify it.
As long as you keep that license and mention the origin (Adafruit).
Logged

Pages: [1]   Go Up
Jump to: