Digole
Digital Solutions
iDigole Buyer ProtectioniDigole Buyer
Protection
My shopping cart
0 Items:
Secure Checkout
Top Rated Plus
Visit Our Live Auctions
99.9% Customer's Satisfaction
 
Forum : Digole Serial Display :

 Search Forum.. 
 Creat New Topic   Reply 

Shifting Character and slow user font issue! Need Help!!

Hello! First i am from Germany and my english is not very well, but i try to explain the Problem. I use two different Displays from digole 2.2" and 3" Mono LCD (Need for sunlight). I have a projekt where i read data from a SD Card an Display the data on the LCD. If i use some other Displays like 1602 or 2004 on II2c i get no issues and the Display and Code run well. now i try to use the two digole Display and i get schifting characters in line behind the first one. Also it displayed some TP, fo sign before my strings. if i try to Switch the Fonts, the LCD it needs a long time to Display the Fonts. only Font type 10 and 0 are ok by time, but the shifting issue continues. somtime i get also flicker behind my text. for Exampe if i write " Hello" it Displays first Hello, but after view seconds it Shows like " Hellolo" and the last two sign are flicker sometimes. I dont know whats wrong?! Thanks and best regards! Marc - LCD Module DS12864LCD-5 - LCD Module DS240160LCD-7

RE:Shifting Character and slow user font issue! Need Help!!

Try to add pull up resistors if you are using I2C.

Remember, the default I2C address on all Digole display are 0x27, if you want to use more than one Digole display in same I2C bus, you MUST change the default I2C address with different number, other wise, you will get I2C address conflict problem.

RE:Shifting Character and slow user font issue! Need Help!!

Hello! I already have testet with different resistors (10K,...4.7K, 1K..... on II2C but the issue contiues! I switch the Little 2,2" LCD back to UART Connection and this run ok now without that issue. But after Change the LCD relevant code (Change prinPos. and Font size) for the bigger 3" LCD continues the same issue also with UART Connection!! I put zhe newest Firmware to the LCD (4.2B) but no Change! The issue continues! I also wrote to the Service, but no or late answer! I was hoping to get a profesonell Support but it is only hope. I cant use the spi Connection cause there is always a lot other gdevice on it. If that LCD have a lot of issues for ist own UART or II2c i think it wll not be better with 3 other device together. I have send some Pictures and a video of the issue to the Support! The code run great on the Little 2,2" and other TFT LCD! So i think i should also work on that 3". The Problem is i Need that Kind of LCD for using in Sunlight!! Wait for Help or Support to solve that Issue... THX for answer ! Marc

RE:Shifting Character and slow user font issue! Need Help!!

..... after the Time i wrote the Post above the LCD gone fixed!! not changing values no Input changes are displayed unless the next reset . ?!

RE:Shifting Character and slow user font issue! Need Help!!

You may need to slow down the bytes sent to display, the MCU need some times to process the commands received, and then operate the display panel, and the mono display panels are always slower than color display panels, so, the MCU need to check the status on the display and waiting it ready to do next operation.

RE:Shifting Character and slow user font issue! Need Help!!

how can i slow down the receive - time!? Maybe 1 hour ! i have just 5 Values to Display and on most time they values are not Change! the small Display run perfekt now baut the big one dont! All lcd are mono with the same Code! For what the LCD are good if this can only Show static Fonts?! The big one show crap at Startup just Display one string like hello! Thats to much for that LCD!?

RE:Shifting Character and slow user font issue! Need Help!!

...the receive time depends also at the baud rate. I always have 9600 baud!

RE:Shifting Character and slow user font issue! Need Help!!

DS240160LCD-7CN this one dont run!! DS12864LCD-5 and this one runs great now! All from Digole, all mono LCD, all the same Code to drive! Sorry but i waste a lot of time about this LCD for nothing! That are Graphik LCD!! I try to Display 7 static Lines, 5 Values, and 5 static Strings with 3 Fonts! Thats to much?

RE:Shifting Character and slow user font issue! Need Help!!

I had an almost identical problem when I went from a color LCD to a Mono LCD.  My digits would display fine for awhile but as the program looped along the digits started appearing in different places around the screen.  I was sending long strings containing font changes, X,Y co-ordinates, characters etc.

 I fixed mine by cutting up my long string into smaller strings and inserting short pauses (delays) at the end of each string.

Apparently if my program was looping too fast I was sending information faster than the Digole receive buffer/instruction handler could process.  The fix was to send a small string telling it to change the font, terminate the string followed by a small pause (delay).  Then I send another string with the X,Y co-ordinates, terminate the string  followed by a small pause (delay).  Then I send another string with the characters I want displayed, terminate the string followed by a small pause (delay).

How much of a pause (delay)?  It seems that depends on the command sent.  I started with 10mSec after each command sent.  Then I would go back and shorten the pause (delay) and check my progress.  I would guess a range of 50uSec to 10mSec pause (delay) are a good starting point.

Communication command changes,  ClearScreen commands or anything that might change the Digole processor registers seem to require the longest pauses (delays), but these are usually placed outside of the normal program loop so long pauses shouldn’t matter to the speed of your program.

Drawing large fonts seem to require a lot of time.  I guess because there are so many more horizontal and vertical transistors to turn on/off then with a smaller font.

I hope that helps.

RE:Shifting Character and slow user font issue! Need Help!!

Hello and THX for answer! "EEK" !! I was hoping to get from the Support a real solution like this! anyway! In the last weeks after my last message i try a lot of work to fix the Problem! it works but too much delay is no good for µC Speed. Now i found also an another solution! I send the values one time to the LCD and set a flag to stop sending the Value again! if the value Change, the flag toggle and the new value is send too the LCD for one time and.....again! One more other solution is to copie the last ,,LCD" value to a second " old LCD" Value and compare if the new value change at some time. If the new value change, the value send to the lcd! now the oldValue = new value! That solution can hold big strings a long time without changing and hold the communication for lcd free for quicker values ( they have to slow down by millis Methode to send value too the LCD all 250ms) I hope i can also help anybody! THX and best regards Marc

RE:Shifting Character and slow user font issue! Need Help!!

Marc,

Yes I am using FLAGS too.  There is another thing I use to speed up my program loop.  Since I use the UART mode to communicate to the LCD I change the Baud rate from 9600 to 115200.  This may not seem feasible, and may not be, and depends on what routines are available in your compiler. 

I use micoEnginnering Labs Pic Basci Pro compiler.  PBP has two serial “BIT-BANGING” routines that can be used on any output pin of my MCU.  One routine is called “SEROUT2” which I configure to operate at 9600 baud on the MCU pin that I used to feed the LCD.  They have another routine called “DEBUG” which is another BIT-BANGING serial routine.  I configure DEBUG to operate at 115200 and use the same pin I used for SEROUT2 that is feeding the LCD.

Before my program loop I use SEROUT2 to tell the LCD to change Baud Rate to 115200 (SB115200).  Now when I send data to the LCD within my program loop I use the DEBUG routine which is configured for 115200.  Thinking back now, this is when I found out that I was sending too much data too quickly to the LCD and causing it to get confused with overruns, that’s why I had to add pauses to slow my program loop.  I hope someone finds this useful.

Regards,

Ed (EEK)

RE:Shifting Character and slow user font issue! Need Help!!

 

Hello EEK! 

THX for your information. I use only atmega µC, so something is different. Now i have another issue using start screen.

after upload new firmware 4.2b to a monochrom LCD i could not load my own startscreen. Maybe the same issue  like you wrote in another Thread.

I have no solution to fi this issue. It seems that the LCD do nothing if the Upload Programm runs. No other behavior on the LCD.

Maybe you have a solution or could tell me whats happend.

 

Best regards Marc

RE:Shifting Character and slow user font issue! Need Help!!

Marc,

When I upgraded to 4.2B both the configuration info and the Digole startup screen were displayed once it completed successfully.  I would try Re-Flashing your display to see if the Digole startup screen returns.  Then re try uploading your own.  It took me 2 tries to get my screen upgraded.  Now it works fine except for seeing the startup screen.  But I couldn’t see a startup screen after running their library sketch before the upgrade so I don’t think the upgrade is the problem.   I’m beginning to think that if you turn off the startup screen in one of your “sketches” then you can’t turn it back on without a re-flash.  I sent support my question about turning the startup screen on and off, as well as needing help on how to upload my own startup screen using a sketch from their library but haven’t received a response yet.

Were you able to upload a startup screen successfully before the upgrade?  Did you use a sketch from the Digole Library?  Which one worked?

Meanwhile, I did a search for “bit banging serial data” in the Arduino world and it is supported.   I found it at https://www.arduino.cc/en/Tutorial/SoftwareSerialExample. 

For discussion sake, to keep your program loop running fast you have to watch out for routines that take up a lot of time, like sending data to a LCD at 9600 baud.

Now look at http://www.edaboard.com/thread111444.html to calculate how long it takes to send some bytes at 9600 baud.

An Example; to send 12 bytes to the LCD at 9600 Baud takes over 12milliseconds.  Your program is going to halt for 12mS while it completes sending those 12 bytes out.  That’s the same as placing a 12mS delay in your program.

If you send 12 bytes to your LCD at 115200 Baud it takes about 1miliisecond.   That makes a big difference in program loop speed. 

To get a feel for how fast your program loop is looping try creating a variable named ”loopcount”.

Then do something like;

(loopcount= loopcount +1) then send the contents of “loopcount” to your display to see how fast the program loop is running.  If all is well, you should see it counting up from 0 to 255 advancing one digit every time the loop starts over again.  Now send a Digole string with font changes, X,Y corordinates, and some text at 9600 baud and watch your loop counter.  You’ll see that it slows down.  The way around that particular bottleneck is to send the data to your LCD at a higher rate of speed.

I hope that helps you or someone else.

Ed (EEK)

 

RE:Shifting Character and slow user font issue! Need Help!!

Marc,

I just ugraded my color 1.8" TFT display to 4.2B.  When it finished the screen was blank.  I was able to send text to it.  I also sent a "DC1" with a 0x0 terminator and was able to see the configuration.  But no Start Screen.

Ed  (EEK)

RE:Shifting Character and slow user font issue! Need Help!!

Hey Marc,

My display was still hooked up since upgrading......   I sent a "DSS1" to the LCD (to turn on start screen) and it worked.

 

ed

RE:Shifting Character and slow user font issue! Need Help!!

 Thanks EEK, you are right, the startup screen and configuration can be turn ON/OFF independently, the configuration ON/OFF bit also control the pixel test sequence, so, if both turned off, you will see a blank screen after power ON and the module entered "ready to accept data" very fast (<10ms)

RE:Shifting Character and slow user font issue! Need Help!!

Hello EEK, hello Service! ...and thx for the helpfull answers! I wll try to take a test. What i try to tell whas, that i succesfull Change the original Digole Screen to my own start Screen. it works great with the Version 4.0b (original at the time i bought the LSD). I whas using the LCD and try some other code for my Project. The Startscreen runs great at the whole time and i whas saving the Screen- upload code for later Projects. In the time i realiced the Speed issues on the lcd (discripted abouve) i update the LCD with Version 4.2b. after i whas Change the Project code and fix the Speed issue all works great. now i whas trying to load up my ,,old,, Screen-pic with the saved code i whas using before. but nothing happends. No reaction! after upload the ,, screencode,, the LCD Shows the Digole Screen and the config, nothing other more! my picture does not shown. Whats wrong! I whas using the same code succesfull with Version 4.0b. But i wll try your tests! THX a lot !! Marc

RE:Shifting Character and slow user font issue! Need Help!!

We changed all startup screen data to "Command sets" method now, so, if your old data is bitmap data, please convert it to commands sets, also, the problem of fail to download the data to display is the reason of data was too long.

Here is the sample of Digole Startup screen for Mono display:

 

 const u8g_fntpgm_uint8_t startscreen[2040] = {//'S','D',3,

     'G', 'P', (LCDW - 120) / 2, (LCDH - 24) / 2, 'E', 'D', 'I', 'M', '1', 80, 24, 0, 0, 0, 0, 0, 0, 36, 108, 36, 0, 0, 2, 7, 6, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,

        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 0, 2, 2, 0, 0, 0, 0, 0, 45, 45, 0, 4, 45, 49, 4, 0, 0, 0, 53, 58, 4,

        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 58, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0,

        0, 6, 1, 0, 0, 0, 0, 0, 0, 0, 0, 3, 1, 0, 0, 0, 45, 8, 0, 0, 0, 54, 58, 0, 0, 0, 0, 4, 58, 54, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,

        0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 53, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 0, 40, 9, 0, 0, 0,

        0, 90, 49, 0, 0, 0, 0, 0, 49, 58, 9, 0, 0, 0, 4, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 0, 0, 0, 0, 0, 4, 8, 4, 0, 0, 0, 0, 0, 90, 13, 0, 0, 0, 0, 0, 0, 8, 8, 0,

        1, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 49, 0, 0, 0, 0, 4, 58, 13, 0, 0, 0, 0, 0, 9, 58, 49, 0, 0, 49, 58, 54, 0, 0, 0, 0,

        0, 45, 86, 58, 58, 54, 0, 0, 0, 4, 49, 45, 49, 58, 13, 0, 0, 0, 8, 58, 8, 0, 0, 0, 0, 45, 45, 49, 58, 13, 6, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 1, 0, 0, 0, 0, 0, 0, 0,

        0, 0, 6, 1, 4, 9, 0, 0, 0, 0, 45, 58, 4, 0, 0, 0, 0, 0, 4, 58, 49, 0, 49, 0, 58, 49, 0, 0, 0, 0, 49, 9, 0, 4, 58, 13, 0, 0, 4, 86, 4, 0, 0, 53, 58, 4, 0, 0, 45, 58,

        0, 0, 0, 0, 45, 45, 0, 0, 58, 13, 6, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 45, 4, 0, 0, 0, 0, 49, 58, 0, 0, 0, 0, 0, 0, 8, 58,

        49, 0, 0, 4, 58, 8, 0, 0, 0, 49, 8, 0, 0, 8, 58, 4, 0, 0, 86, 9, 0, 0, 0, 45, 58, 8, 0, 0, 54, 54, 0, 0, 0, 4, 90, 0, 0, 41, 58, 4, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0,

        0, 6, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 45, 8, 0, 0, 0, 0, 90, 53, 0, 0, 0, 0, 0, 0, 45, 58, 13, 0, 0, 45, 58, 0, 0, 0, 41, 53, 0, 0, 0, 49, 58, 0, 0, 41, 58, 0,

        0, 0, 0, 45, 58, 8, 0, 0, 90, 17, 0, 0, 0, 53, 49, 0, 8, 86, 4, 0, 7, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 8, 53, 0, 0, 0, 4,

        58, 13, 0, 0, 0, 0, 0, 0, 49, 58, 4, 0, 0, 54, 53, 0, 0, 0, 90, 8, 0, 0, 0, 54, 49, 0, 0, 49, 54, 0, 0, 0, 0, 45, 58, 4, 0, 8, 58, 8, 0, 0, 4, 90, 49, 49, 45, 0, 0, 0,

        6, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 1, 0, 53, 54, 0, 0, 45, 58, 4, 0, 0, 0, 0, 0, 4, 90, 49, 0, 0, 0, 90, 13, 0, 0, 41, 58, 0,

        0, 0, 4, 90, 13, 0, 0, 58, 53, 0, 0, 0, 0, 49, 54, 0, 0, 45, 58, 4, 0, 0, 45, 58, 13, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 1, 0, 0, 0, 0, 0, 0, 0,

        0, 0, 7, 0, 0, 0, 8, 0, 0, 54, 54, 0, 0, 0, 0, 0, 0, 86, 54, 0, 0, 0, 41, 58, 4, 0, 0, 49, 54, 0, 0, 0, 49, 58, 4, 0, 0, 58, 54, 0, 0, 0, 0, 90, 9, 0, 0, 53, 54, 0,

        0, 0, 49, 58, 4, 0, 0, 0, 4, 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 4, 90, 13, 0, 0, 0, 0, 0, 86, 54, 4, 0,

        0, 0, 45, 58, 0, 41, 8, 53, 58, 0, 0, 45, 54, 58, 0, 0, 0, 58, 58, 0, 0, 0, 45, 49, 0, 0, 0, 90, 49, 0, 41, 41, 49, 58, 8, 0, 4, 81, 9, 0, 0, 3, 1, 0, 0, 0, 0, 0, 0, 0,

        0, 6, 1, 0, 0, 0, 0, 0, 0, 0, 0, 6, 2, 0, 0, 0, 0, 4, 86, 58, 8, 0, 4, 8, 45, 90, 17, 0, 0, 0, 0, 0, 49, 58, 49, 9, 0, 49, 58, 54, 53, 4, 49, 54, 0, 0, 0, 13, 58, 49,

        4, 41, 49, 0, 0, 0, 0, 58, 53, 49, 8, 0, 13, 58, 54, 54, 54, 4, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 6, 1, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 4, 8, 8, 9,

        13, 45, 49, 45, 8, 0, 0, 0, 0, 0, 0, 0, 8, 17, 4, 0, 0, 0, 49, 49, 0, 0, 49, 54, 0, 0, 0, 0, 9, 49, 49, 8, 0, 0, 0, 0, 0, 17, 13, 0, 0, 0, 0, 17, 49, 8, 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28, 28, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,

        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 54, 9, 4, 41, 86, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,

        0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 8, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 13, 45, 13,

        4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,

        'S', 'C', 1, 'S', 'F', 0,

        'D', 'W', 'W', 'I', 'N', (LCDW - 120) / 2 + 80, (LCDH - 24) / 2, 32, 22,

        'G', 'P', 0, 8,

        'W', 'I', 'N', 'C', 'L',

        'T', 'T', '.', 'C', 'O', 'M', 0,

        'D', 'L', 'Y', 1, 71, 80, 0, 11, 87, 73, 78, 67, 76, 84, 84, 46, 67, 79, 77, 0, 68, 76, 89, 1, 71, 80, 0, 15, 87, 73, 78, 67, 76, 84, 84, 46, 67, 79, 77,

        0, 68, 76, 89, 1, 71, 80, 0, 19, 87, 73, 78, 67, 76, 84, 84, 46, 67, 79, 77, 0, 68, 76, 89, 1, 71, 80, 0, 22, 87, 73, 78, 67, 76, 84, 84, 46, 67, 79, 77, 0, 82, 83, 84, 68, 87,

        255 //remembe to add some 255 value to indicate the end of commands set.

}

RE:Shifting Character and slow user font issue! Need Help!!

Hello All !! ...now it runs ! all ok! ..about the Baudrate?! I use 20Mhz on the µC! the Baudrate with the lowest error-rate (0.2) are 9600 or 19200 ?! With 57600 the error wll be 1,4% at 20Mhz. What do you think is the best baudrate for the LCD? THX a lot!! Marc

but I stil need help.......

Glad you are working now Marc,

Victor,

I copied what you wrote and pasted it to the end of my sampledata.H file.  Then I ran a "verify/compile" and I got the following error;


C:\Users\EK E\Documents\Arduino\libraries\libraries\DigoleSerial/sampledata.h:3081:7: error: 'u8g_fntpgm_uint8_t' does not name a type
 const u8g_fntpgm_uint8_t startscreen[2040] = {//'S','D',3,

       ^

Using library DigoleSerial in folder: C:\Users\EK E\Documents\Arduino\libraries\libraries\DigoleSerial (legacy)
Using library Wire at version 1.0 in folder: C:\Program Files\Arduino\hardware\arduino\avr\libraries\Wire
exit status 1
Error compiling for board Arduino/Genuino Uno.

I am sorry but I do not know how to debug Arduino code, I only bought my UNO to download fonts with your library files.

Marc or Victor.....what should I do to get this working?

Thanks,

Ed (EEK)

RE:Shifting Character and slow user font issue! Need Help!!

Hey EEK! "but I stil need help......." what i can tell you maybe do not help, but i does not use the code from Service! My solution depends not on this Picture code! it whas a connection issue! For upload my welcome Screen i use a changed Version of "design welcome sceen" example. Best regards Marc!

Marc...... Baudrate..............

Marc,

 

That is a difficult call.  You want fast but you also want low error.  I changed my crystal to a 18.432 just so I would have 0% error from 1200, 9600,19200 and 115200.

That does cause some other timing issues with other things like pause/delays etc.  But I like having solid serial communications.

 

ed (EEK)

Or how do I just load a bitmap that works into the startscreen....

Victor,

It would be nice to fix the library, but I really want to try to load a screen I made with your Image to C converter.  I can load the file into the display with Cool Terminal and it looks great.  I would like to try to load it into the start screen with SSS.  But I don't understand what to put in to show the size of the file.  My file size is 1897. The maunal says to send SSS(length+2)(length)(data).   I don't know what to input for length+2 and length.

Thanks

ed (EEK)

Marc....design_welcome_screen...

Marc,

I looked at Design_Welcome_Screen.  But when I saw "//--- THIS TOOL ONLY FOR DIGOLE SERIAL COLOR OLED MODULE!" I gave up.

As I mentioned in an earilier post.... Arduino is not my programming language.  It takes me a long time to research each little change.  And just for a silly graphic at start up.

But Thanks,

ed

RE:Shifting Character and slow user font issue! Need Help!!

EEK,

First, you need to use commands in startup screen, eg., if you want to display an image on startup screen, you need use "EDIM"1/2/3 then follow with image width, height and image data, just like what you do to display image via communication port. Put all commands together, then add few value of 255 at the end of string which indicate the end of commands set.

Also be note: some commands are modified in commands set: like "EDIM", in communication port mode, it like this: "EDIM" 1/2/3, x postion, y position, image width, image height, image data...., but in commands set, it like this:"EDIM" 1/2/3, image width, image height, image data...., you need predefine the x,y position by using one of "ETP", "ETO", "TP", or "GP" command, this way make user to display same image at different position as needed, there are other few commands should be like this as my remember, please refer to programmer manual.

The use "SSS" to download it to display module, eg., if the size of startup commands set is 1000 bytes (include 255 byte(s) at the end of string), then use 1000/256=3, 1000%256=232, these 2 bytes indicate the data length that ask the "SSS" command to accept and save, so, the command should like this: "SSS", 3, 232, 1000 bytes of data.

The format of  SSS(length+2)(length)(data) is used to compatible with older version of firmware <V3.4, this format also work on latest version of firmware most of time, in this format, the above example of command will be: "SSS", 3,234,3,232, 1000 bytes of data

I was able to use Design_Welcome_Screen afterall.......

Victor,

Before I saw your reply I decided to try what Marc tried and use Design_Welcome_Screen (even though it clearly states it is only for OLED displays).

I replaced the mono data with my own mono data that I created with the Image to C converter tool copying and pasting the decimal data instead of saving the binary data.  I just stopped in to let you guys know that it worked.

But I am so glad you posted information.  It will help me and other people I am sure.

Thanks

ed (eek)

P.S.  Victor, How come I never get notified by email when someone replies to my post?

RE:Shifting Character and slow user font issue! Need Help!!

 EEK, your registered email is at Yahoo.com, if you still use this email and can't find the notification from Digole.com, please check it in junk folder.

more notes on changin crystal

Marc,

Some more notes on changing crystal frequencies.  As I mentioned earlier, I know nothing about Arduino .  The only reason I own an UNO is because I wanted to use the Digole library files to load fonts into my display easily.  My compilier is PBP and using a 18.432 crystal, for 0% serial timing error, is not a supported frequency.  So be aware using a different crystal may cause issues with your AVR in Arduino. 

The following is from my PBP reference manual;

There are a limited number of valid numbers that can be used: 3 (3.58MHz), 4, 8, 10, 12, 16, 20, 24, 25, 32, 33, 40, 48, 64. These are the only frequencies for which PBP is able to accurately calibrate its timing. If you use a system clock that runs at a frequency that isn't listed here, your timing will be scaled when the program executes.

For example, let's assume that you have a good reason to use a 9MHz crystal to clock your MCU. Using "DEFINE OSC 10" will result in your timing to be scaled on the slow side, because the actual clock will run at 90% of the DEFINEd value. A "PAUSE 10" will pause for 11.1mS. Your 9600 baud serial commands will run at 8640 baud.”

So proceed with caution.  Research if your compilier supports other clock frequencies.  Another option to think about is to use I2C to move your data to the display very quickly (which may prove to be even faster than using UART communication since it uses hand shaking)( I am even beginning to think that changing to I2C would be better to make my program loop run faster).  

Here is a note from the Digole manual about using I2C;

I2C: Slave Mode, 7-bit address, default address is Hex:27, change able. This mode may give you a headache

due to more signal options in I2C, but we make it works as standard, you just need setup your I2C on master

controller as Standard Master Mode. “

 

And I am sure there is lots of support for I2C in the Arduino Forums.  I hope that helps you.

 

Ed (EEK)

email notifications..........

Victor,

 

Yes I am still using Yahoo,com... and no, there are no emails in my junk folder..

 

ed

RE:Shifting Character and slow user font issue! Need Help!!

The mail system should be restart now.

RE:Shifting Character and slow user font issue! Need Help!!

Hello... EEK, Hello... Service !

...EEK..!  First i can tell you that the LCD work fine now, for my Projekt. I use 19200 baud for seriell connection and 20MHz on the µC. It have a error-rate of 0,2%.

I make some test using another connectionspeed and also higher error-rate withe the same result.

I can´t find some other effects on the LCD using higher connection speed.  

About using WelcomeSceen Code for arduino: .. i don´t know if you have a chance to change your crystal to 16 or 20Mhz, load the welcome screen with standard arduino IDE. after that you change back the crystal.

ohterwise you have to change the Values in the Arduino IDE . the best is you are using other Core Lib like ( https://github.com/MCUdude/MightyCore#programmers) so you can also use 18,xxx Mhz crystal.

coding arduino is like coding c++, you can use all c++ commands. The arduino  IDE comes with all you need! only Core Lib above you have to install!  

The changes on the welcomeScreenCode are easy and work in this way you discriptet abouve. only change the Picture Data in the array code.  

About the I2C connection i can tell you, that i use i2c before i change to uart connection, cause i have a lot of issues with i2c. Maybe it depends on synchronous issues. 

 

best regards Marc

 

 

 

Guten Morgen Marc

Marc,

Ja, danke, ich habe getan, wie Sie sagten und Willkommensbildschirm funktioniert jetzt.

Ich habe den Kristall auf meinem Arduino UNO nicht geändert. Ich benutze nur 9600 Baud zum Laden von Bildschirm und Schriftarten. Und verwenden Sie 57600 für das Firmware-Upgrade.

Vielen Dank für den Tipp, wo Sie Hilfe mit C ++ finden können.

Mein Projekt verwendet PIC16F1518, getaktet mit 18.432 Mhz Kristall. Ich verwende MAX232-Chip mit EUSART und Assembly Language, um SPBRGL-EUSART-Register zu berechnen und einzustellen, damit ich die RS232-Baudrate aus meiner Software spontan ändern kann.

Ich erhalte serielle Daten von mehreren Geräten (+ Tissot ist eins) mit unterschiedlichen seriellen Baudraten.

Da 18.432-Kristalle bei allen Baudraten einen Fehler von 0% ergeben, war es für mich einfach, eine Bit-Banging-Routine hinzuzufügen, um Daten ohne Probleme an den Digole-Bildschirm bei 115200 Baud zu senden.

Danke für Ihre Hilfe.

Und danke Google Übersetzer.

Mit freundlichen Grüßen,

Ed Kizer

Copyright Digole Digital Solutions, 2008-2018. All rights reserved.
Powered by Victor Sun