Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 19, 2024, 03:38:27 03:38


Login with username, password and session length


Pages: 1 [2]  All
Print
Author Topic: Libraries  (Read 18306 times)
0 Members and 1 Guest are viewing this topic.
lcn
Junior Member
**
Offline Offline

Posts: 42

Thank You
-Given: 15
-Receive: 1


« Reply #25 on: November 10, 2014, 09:34:31 21:34 »

Did you implement point, rectangle, line, strip into IC2 library ?

I would like to port these functions to get them working in SPI 4 wires mode but i can't find them in your I2C project file.

Many thanks,
Logged
Catcatcat
Senior Member
****
Offline Offline

Posts: 417

Thank You
-Given: 275
-Receive: 1533



WWW
« Reply #26 on: November 11, 2014, 03:18:51 03:18 »

Thanks,

How could i scroll a string horizontaly, is there a function to do that ?
something like this : http://www.youtube.com/watch?v=7-yIYsKFQ1Y

Yes!
Logged
lcn
Junior Member
**
Offline Offline

Posts: 42

Thank You
-Given: 15
-Receive: 1


« Reply #27 on: November 11, 2014, 01:48:48 13:48 »

Can you show me the code that scrolls a text in your library ?
Logged
Catcatcat
Senior Member
****
Offline Offline

Posts: 417

Thank You
-Given: 275
-Receive: 1533



WWW
« Reply #28 on: November 12, 2014, 03:43:20 03:43 »

Code:
void OledTicker (const char *str,char dlinok,char start,char Y)
{
char a,b,X;
char dlinst=0; // length of the string in characters (6 columns)
// poz - position running line (external variable)
char colcim; // the number of output symbols
int ptr=0,sim; // initialize the pointer

// calculation of the string length
    while (str[dlinst++] != 0); // length of string

// calculation of output line length for 1 once
    if (dlinst>dlinok)//lines for large size of the output window
    {
            if (poz<dlinok){ptr=0; colcim=poz; X=start+(dlinok-poz)*6;}
            else
            if (poz<dlinst){ptr=poz-dlinok; colcim=dlinok; X=start;}
            else
            {ptr=dlinst-dlinok+(poz-dlinst); colcim=dlinok-(poz-dlinst+1); X=start;}
    }
    else//lines for the equal and less than the size of the output window
    {
            if  (poz<dlinst){ptr=0; colcim=poz; X=start+(dlinok-poz)*6;}
            else
            if  (poz<dlinok){ptr=0; colcim=dlinst-1; X=start+(dlinok-poz)*6;}
            else
            {ptr=dlinst-dlinok+(poz-dlinst); colcim=dlinok-(poz-dlinst+1); X=start;}
    }
// Position correction output start line
        i2c_start(ADRESOLED,0);     //
        i2c_write(0b00000000);      // control byte transfer commands
        i2c_write(0b10110000 | Y); // installation page
        i2c_write(X & 0b00001111); // setting column
        i2c_write((X >> 4) | 0b00010000); //
        i2c_stop(); //

    for (b=0;b<colcim;b++) // cycle of output symbols
    {
        sim=(str[ptr+b]-0x20)*5; // converting the character code in the position of CG
// Read byte to byte pattern symbol and displays
        i2c_start(ADRESOLED,0);     //
        i2c_write(0b01000000);      // control byte data transfer
        for (a=0;a<5;a++) i2c_write(SHRIFT[sim+a]);
        i2c_write(0);
        i2c_stop();
    }
    if (poz>=dlinst)
    {
        i2c_start(ADRESOLED,0);     //
        i2c_write(0b01000000);      // control byte data transfer
        for (a=0;a<5;a++) i2c_write(0);
        i2c_write(0);
        i2c_stop();
    }
    poz++;
    if (dlinst==(poz-dlinok)) poz=0; // when the pointer reaches (poz-dlinok) set to zero
}//
« Last Edit: December 29, 2014, 07:30:45 07:30 by metal » Logged
lcn
Junior Member
**
Offline Offline

Posts: 42

Thank You
-Given: 15
-Receive: 1


« Reply #29 on: November 12, 2014, 06:36:25 06:36 »

Thank you.

Did you implement geometry stuff such as : point, rectangle, line, strip into your IC2 library ?
Logged
Catcatcat
Senior Member
****
Offline Offline

Posts: 417

Thank You
-Given: 275
-Receive: 1533



WWW
« Reply #30 on: November 12, 2014, 05:50:27 17:50 »

this is only a parallel interface, where it is possible not only to record but also to read data from the display memory.
Logged
lcn
Junior Member
**
Offline Offline

Posts: 42

Thank You
-Given: 15
-Receive: 1


« Reply #31 on: December 10, 2014, 06:32:14 18:32 »

Hello Catcatcat, all

Can you show me how to use ' ticker_OLED' and 'tickerB_OLED' functions with your OLED library, because it does not work for me :

I tried the following, but nothing is displayed on the screen :

Code:
       tickerB_OLED (20,5,0);
        ticker_OLED ("H",5,5,2);

I do not understand the functions arguments meaning because it is written in Russian.
Many thanks,

Logged
lcn
Junior Member
**
Offline Offline

Posts: 42

Thank You
-Given: 15
-Receive: 1


« Reply #32 on: December 27, 2014, 02:25:33 14:25 »

Hello

I need to create a custom character that will be 10x14 pixel size .

Can you tell me what software you have used to generate your 7x5 fonts ?

How can i generate a C code for my 10x14 custom character ?
I have made a monochrome BMP file so far, can you help for next steps please ?
Logged
BharatSujanani
Junior Member
**
Offline Offline

Posts: 48

Thank You
-Given: 31
-Receive: 24

All is Well


« Reply #33 on: December 29, 2014, 07:02:31 07:02 »

HI
You can use LCD font maker for make fonts of size you want. I have software LCD Font Maker 3.92 is available but for limited time use not cracked version. If you need it inform me.
Logged

Bharat Sujanani
lcn
Junior Member
**
Offline Offline

Posts: 42

Thank You
-Given: 15
-Receive: 1


« Reply #34 on: December 29, 2014, 07:16:11 07:16 »

Hello

Yes, i'm interrested in getting LCD Font maker.

I've sent to you a PM with my email address

Many thanks
Logged
BharatSujanani
Junior Member
**
Offline Offline

Posts: 48

Thank You
-Given: 31
-Receive: 24

All is Well


« Reply #35 on: December 29, 2014, 09:28:24 09:28 »

Hi
I have uploaded LCD Font Maker 3.92.exe on below link.
http://www.4shared.com/file/BBg_5VRVce/LCD_Font_Maker_392.html
Please download it.
I have not permanent version for this software.
Logged

Bharat Sujanani
Pages: 1 [2]  All
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC