lcn
Junior Member

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
Posts: 444
Thank You
-Given: 289
-Receive: 1747
|
 |
« Reply #26 on: November 11, 2014, 03:18:51 03:18 » |
|
|
|
|
Logged
|
|
|
|
lcn
Junior Member

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
Posts: 444
Thank You
-Given: 289
-Receive: 1747
|
 |
« Reply #28 on: November 12, 2014, 03:43:20 03:43 » |
|
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
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
Posts: 444
Thank You
-Given: 289
-Receive: 1747
|
 |
« 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
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 : 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
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
Posts: 48
Thank You
-Given: 32
-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
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
|
|
|
|
|
|