olikraus / ucglib

Arduino True Color Library for TFTs and OLEDs
https://github.com/olikraus/ucglib/wiki
Other
261 stars 76 forks source link

add support for ST7628 (nokia1600) #74

Closed soheils2 closed 9 months ago

soheils2 commented 7 years ago

Hi!

I want to ask for add this LCD to your supported divices

the protecol and coding is almost the same as nokia 6100 lcd (PCF8833) that is already suported i think the differences are just in pixels ST7628 is a 1.4" 96 × 68 pixel 65,536 colors tft (same wiring - same company - same chipset controller) here is the magic : somhow when i choose PCF8833 in your library the lcd work correctly (colors,diractions,,....) but locations (x,y) and (clearScreen) is the problem
for example i program "BOX3D" and what i got is this below:

http://up2www.com/uploads/4074WhatsApp-Image-2017-03-16-at-01-52-21.jpeg (bofore that i ran the hello world example and it dosnt clear the lcd) the box change color and rotate correctly but in the wrong place !

i need this lcd support because its cheap! it cost me about 1.5$ and available in my country. tnx

soheils2 commented 7 years ago

This is a library that works for st7628 https://github.com/kr4fty/ST7628-Nokia-1600-LCD-Library

soheils2 commented 7 years ago

hi again after some tests i found the problem:

first the true resolation is 98 × 70 pix

the problem is on the x axis this is like to seprate lcds form x0 to x3 and x4 to the end every thing you done on this first 4 columns dosnt apply on the next columns

for example `
ucg.drawBox(0, 0, xxx , 70);

outputs
ucg.drawBox(0, 0, 4, 70);

`

but when u start from pixle 4 every things get fine ` ucg.drawBox(4, 0, xxx, 70);

outputs : ucg.drawBox(4, 0, xxx, 70);

`

Therefore when u call " ucg.clearScreen(); " it just claer a (4*70) ( 3 first columns ) area

soheils2 commented 7 years ago

one more else :P ucg.print is an exception ! and works good. every where u want