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 

How to upload a welcome screen ?

Hi,

I have a 1.8" Color OLED 160x128 (module DS160128COLED-35) and I want to change the welcome screen.

What is the format of the 'SSS' command ? What is the timing beetween bytes ? Does each byte represent one pixel as EDM1 command ?

When I try to send bytes with command : "SSSxyBBB....BBB" (xy as command length and BBB....BBB as the data), the next welcome screen is "No welcome screen or wrong". I have try with delay beetween bytes but the result is the same. Do you have some sample code or timing diagram to upload the start screen ?

All others commands are OK (clear the screen, enable/disable cursor, ...) and are funny.

Thanks

Eric

 

RE:How to upload a welcome screen ?

The MAXIMUM length of welcome screen in all color module is: 2046 bytes

 The structure of welcome screen is different on color display and mono display in Digole, the mono display only use bitmap to display a welcome screen, but color products use commands set to display it, that will save lot of memory space in MCU.

You can design your welcome screen using the regular commands, then put all commands together, use the convert tool to convert the commands set to C format array, test it using our Arduino sample, if you satisfy your welcome screen, download the C array to module using: SSS command finally.

Here is our welcome screen commands set on 1.8" color oled:

"CLSF\x78 SC\xf1 ETP\x22\x29 TTWelcome\x0d SF\x0a SC\x13 TRT TRT ETP\x08\x3fTTDigole Digital Solutions\x0dSC\x1f SF\x01 TRT
TTYou will find it's so easy to use and fun:\x0dSC\xE0TTwww.Digole.com\rEDIM1\x00\x10\x1e\x1e....(logo data)"
 
after converting to C array:
 {40,4,  //these 2 bytes indicate there are 1064 bytes of data for welcome screen, LSB first
67,76,83,70,120,32,83,67,241,32,69,84,80,34,41,32,84,84,87,101,108,99,111,109,101,13,32,83,70,10,32,83,67,19,32,84,82,84,32,84,82,84,32,69,84,80,8,63,84,84,68,
105,103,111,108,101,32,68,105,103,105,116,97,108,32,83,111,108,117,116,105,111,110,115,13,83,67,31,32,83,70,1,32,84,82,84,13,10,84,84,89,111,117,32,119,105,108,108,32,102,105,
110,100,32,105,116,39,115,32,115,111,32,101,97,115,121,32,116,111,32,117,115,101,32,97,110,100,32,102,117,110,58,13,83,67,224,84,84,119,119,119,46,68,105,103,111,108,101,46,99,111,
109,13,69,68,73,77,49,0,16,30,30......}, the first 2 bytes are the welcome screen data length (exclude these 2 bytes), so the total length of welcome screen is: 0442H
 
When downloading it to module, it should like: SSS\x04\x2A...... (the \x04\x2A indicate there are 1066 bytes need to be save in flash, MSB first, then the module will save the following 1066 bytes into MCU flash, not include \x04\x2A, in this example, the saved data are: {40,4, 67,76......})
 

 

RE:How to upload a welcome screen ?

Hi,
thanks for all this information.
I'm trying with no success.
For my color oled, i understand that the SSS command uses commands set to display the welcome screen. It's ok and it's ingenious.

The TT command works. I can display "Hello" by sending { 'T',T','H','e','l','l','o',0 } data.
But When i send the SSS command { 'S','S','S',8,0,'T',T','H','e','l','l','o',0 }, the firmware's oled accepts
(with "done downloading" message) but after the reboot I have the message 'no welcome screen or wrong'.
Do you see where is my mistake ? In my example, I think, the SSS protocol is respected !!!

What is the maximum size of the SSS's data length ? 2048 bytes ?

Best regards
Eric

RE:How to upload a welcome screen ?

 Yes, the allowed size of welcome screen is 2048, you should send the download date like this:

{ 'S','S','S',10,0,8,0,'T',T','H','e','l','l','o',0 }

Thanks

RE:How to upload a welcome screen ?

Thanks you,
I have not the oled in my office, I will try this evening.

With your explanation, to have a 'clean' welcome screen with 'Hello' at position x=10 and y=15, the right SSS command is:
{ 'S','S','S',20,00,
   2,0,'C','L',
   4,0,'T','P',10,15,
   8,0,'T',T','H','e','l','l','o',0 }
Is it right ?

Eric

RE:How to upload a welcome screen ?

 Should like this:

{ 'S','S','S',

16,00,

14,0,

'C','L','T','P',10,15,'T',T','H','e','l','l','o',0 }

The first 2 bytes follow by "SSS" (16,0) means the total length of data will be saved to flash, this is only used for "SSS" command and in order to compatible with other Serial display. The "SSS" command only save the following data to flash:

{14,0,

'C','L','T','P',10,15,'T',T','H','e','l','l','o',0 }

The first 2 bytes of data saved to flash (14,0) is the total length of welcome screen command set, but not include these 2 bytes itself.

So, the first 2 bytes always 2 more than second 2 byte, if the length of command set is L, you should do like this to save welcome screen:

{"SSS",(L+2)%256,(L+2)/256,L%256,L/256,........(L length of data)}

 

 

 

RE:How to upload a welcome screen ?

Hi,
It's work fine. Now, I have a welcome screen.
Thanks a lot
Eric

RE:How to upload a welcome screen ?

 hi . i´m new on this i´m a little lost.

Using the arduino sample desigh wellcome screen , what I need to do ? I have my wellcome screem converter to hex , but very I put in the arduino code ?

I need to replece the data after    "prog_uchar wel [ ] PROGMEM ={     " and put my hex data? or is not only this ?

I have the 0.96 oled color display

I only want to show and image no text. The image are 96 * 56 pixels

the data in Dec are this:

0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,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,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,32,128,160,160,160,160,96,96,160,128,32,32,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,96,32,0,0,0,0,0,0,0,0,32,32,32,96,128,64,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,0,0,0,0,0,0,0,0,0,0,0,0,32,160,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,96,0,0,0,0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0,32,96,0,96,32,0,0,0,0,0,0,0,32,160,224,192,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,64,64,32,32,0,0,0,64,96,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

,0,0,0,0,0,96,0,0,32,0,0,0,0,32,0,0,0,160,160,160,224,160,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,64,64,0,0,0,0,0,0,0,0,0,96,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

,0,0,0,0,128,0,0,32,0,0,0,64,192,160,160,32,0,0,0,0,0,192,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,64,32,0,0,0,0,0,0,0,0,0,0,0,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

,0,0,0,32,96,0,32,0,0,0,0,192,32,0,0,160,0,0,160,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,64,0,0,0,0,0,0,0,0,0,0,0,0,0,32,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

,0,0,32,224,32,0,32,0,0,0,64,192,0,0,0,96,64,32,192,160,128,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,32,96,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

,0,32,128,64,64,32,0,0,0,0,160,128,0,0,0,0,128,96,192,32,160,32,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,96,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,96,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

,0,96,0,32,32,64,0,0,0,0,160,96,0,0,0,0,192,192,0,0,128,64,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,32,64,96,0,0,0,0,0,0,96,32,0,0,0,0,0,0,0,32,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

,32,64,96,128,0,0,0,0,0,0,128,160,0,32,160,0,32,64,0,0,128,32,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,64,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,64,64,32,96,0,0,0,0,0,0,0,0,0,0,0,0

,96,32,224,64,64,32,192,32,0,0,128,192,0,96,224,0,96,160,0,0,160,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,64,0,0,0,0,0,0,0,0,32,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,64,64,128,64,0,0,0,0,0,0,0

,128,64,128,0,32,64,192,0,0,0,64,224,32,32,64,192,224,224,0,64,128,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,32,32,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,96,32,0,0,0,0,0,0

,96,32,0,32,0,0,0,0,96,96,0,128,224,128,160,96,0,160,128,160,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,96,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,0,0,0,0,0,0

,0,128,64,96,0,0,0,64,96,128,32,0,96,160,0,0,0,0,160,128,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,32,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,64,0,0,0,0,0

,0,160,96,64,0,0,0,128,0,96,224,128,96,0,0,0,0,0,0,0,96,128,96,96,96,96,96,96,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,96,0,0,0,0,96,0,0,0,32,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,160,64,32,0,0,0

,32,128,160,64,0,0,0,160,64,96,160,0,0,0,64,64,64,32,0,0,0,0,0,0,0,0,0,32,160,160,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,64,32,0,0,0,0,0,0,0,0,32,96,0,0,0,0,0,96,96,64,96,160,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,96,0,0,0

,96,32,64,96,0,0,0,32,96,96,0,0,0,0,0,0,0,128,128,96,64,32,32,32,64,96,96,96,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,64,0,0,0,0,0,0,0,0,96,0,0,0,0,0,96,96,96,0,96,32,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,96,32,0

,160,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,64,32,0,32,64,64,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,32,0,0,0,0,0,0,0,96,32,0,0,0,0,0,0,32,32,0,32,96,64,64,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,32

,192,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,32,0,0,0,32,64,64,64,0,0,0,0,0,32,0,0,0,96,0,0,0,0,0,0,0,0,0,0,0,96,96,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,96

,192,64,32,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,128,96,96,64,0,0,0,0,0,0,0,64,96,64,0,32,0,0,0,32,64,32,0,0,0,0,0,32,32,32,32,64,0,0,96,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,0,0,32,64

,192,128,192,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,128,64,0,64,0,64,0,0,32,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,64,32,0,64,64,96,64,0

,192,32,96,32,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,64,32,0,64,32,32,0,0,32,32,0,0,0,0,0,0,0,32,64,32,32,64,96,64,0,32,32,64,64,32,0,0,64,0,0,0,0,0,32,128,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,0,0,0,0,0,0,0,0

,192,0,0,192,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,160,64,64,32,128,96,96,64,64,32,0,0,0,0,0,0,0,32,32,0,32,64,96,0,0,64,32,0,0,0,0,0,0,64,0,0,0,0,0,192,192,224,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0

,224,32,0,0,96,0,64,160,0,0,0,0,0,0,0,0,0,0,0,0,0,32,64,0,0,64,96,128,128,64,0,64,64,64,64,64,64,32,0,0,0,0,0,0,0,0,64,64,0,0,0,0,0,0,32,32,0,0,0,0,96,192,160,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,32,32,64,32,0,0,0,0,0,0,0,0,0

,160,32,0,0,32,0,64,192,160,0,0,0,0,0,0,0,0,32,128,96,96,64,0,0,0,0,64,96,32,64,96,32,0,0,0,0,0,0,32,64,64,64,64,64,96,64,64,96,128,0,0,0,0,0,0,64,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,64,0,0,32,0,0,0,0,0,0,0,0,0,0,0

,96,128,0,0,0,32,0,32,64,0,0,0,0,0,0,0,0,0,128,0,0,0,0,0,0,0,0,0,64,96,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,0,64,0,0,0,0,0,0,64,32,0,0,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

,32,224,32,0,0,32,0,0,0,0,0,0,0,0,0,0,0,32,96,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,64,0,0,0,32,64,96,64,64,32,0,32,0,96,0,0,0,0,0,0,0,32,64,32,0,96,32,32,64,96,0,0,0,0,0,0,0,0,0,0,0,64,0,96,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

,0,224,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,32,64,64,0,0,0,0,0,32,96,128,64,32,0,0,0,0,0,0,0,0,0,0,0,0,32,0,0,64,32,0,0,0,0,0,0,0,0,0,96,32,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

,0,96,160,0,0,64,96,0,0,0,160,64,0,0,0,0,0,0,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,32,64,64,64,64,0,0,0,0,0,0,0,0,0,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,0,0,0,0,0,0,0,0,0,0,0

,0,0,0,0,0,64,192,0,0,160,96,0,0,0,0,0,0,0,0,96,0,0,0,64,160,128,96,0,0,0,0,0,0,0,0,0,0,0,0,0,32,128,128,64,0,0,0,128,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,64,96,0,32,32,96,0,0,0,0,0,0,0,128,0,0,0,32,128,192,192,128,128,32,0,0,0,32,64,96,160,160,160,128,128,64,0,0,0,64,96,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,96,96,0,0,0,96,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,64,64,64,64,0,0,0,0,0,0,0,0,0,0,128,96,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,32,160,0,0,0,64,32,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,32,128,32,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,32,128,64,0,32,224,96,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,32,0,0,0,0,0,0,128,128,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,32,128,96,192,64,128,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,160,32,0,32,96,96,128,128,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,0,0,0,0,128,96,0,32,64,64,32,0,0,0,0,0,0,0,0,0,0,0,0,64,96,96,64,32,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,0,0,0,0,0,0,0,0,96,128,128,64,0,32,96,32,0,0,0,0,0,0,0,0,64,96,32,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,128,160,128,160,224,160,96,96,128,128,128,96,32,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,32,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,0,0,0,0,0,0

 

How I do this ?

 

 

Thank

 

Carlos

 

 

 

RE:How to upload a welcome screen ?

 Hi,

I try to create welcome screen.

I have found this information:

Monochrome display only picture and max 1022 Bytes + 2 Bytes for Data lenght
For Color All functions and max 2046 Bytes + 2 Byes for data lenght

Other limitation ?
 

Best regards
Olivier

RE:How to upload a welcome screen ?

 Hi,

I have strange problem with this function.

I send in i2c:
Address
h53 (S)
h53 (S)
h53 (S)
LowTotalLenght 29 dec
HightTotalLenght 0 dec

lot of this data (with 50us pausse on each value):
Data 27 , 0 ' Data Lenght
Data 67 , 76 ' Clear Screen
Data 67 , 83 , 0 ' Cursor: Off
Data 83 , 70 , 6 ' Font: 6
Data 84 , 80 , 0 , 0 ' Text Position: 0 , 0
Data 84 , 84 , 48 , 49 , 50 , 51 , 52 , 53 , 54 , 55 , 56 , 57 ,  0 ' Text: 0123456789
(Ps: the "Data" and text after ' is not send of corse)

This display write Downloading.... but never down but if press reset i see ->Done downloading and start messge works
I have tested the with pause of 250ms before send lot of data, no change.

Why ?

Thanks
Olivier

 

RE:How to upload a welcome screen ?

Mono LCD/OLED use fixed 1024 bytes to save 1bit image for 128x64 pixels, no length needed (128x64/6=1024 bytes).

Color LCD/OLED use different method to show welcome screen due to the limitation of flash memory, we call it as commands set, due to the length of their welcome screen is flaxible, you need to specify the data length, for the data saved in flash, 1st and 2nd byte are indicate the length of data followed.

But when you using command of "SSS" to save welcome screen, you also needed to indicate the length follow by the command, this is little bit tricky for user, this is the withdraw when we designed the firmware, sorry to make you confused, this command should do like this:

"SSS" (byte1,byte2=n+2)(byte3,byte3-n)(data0,data1......datan-1). the (byte1,byte2) following "SSS" indicate the length of data will be saved in flash, the (byte3,byte4) will be saved into flash and indicate the welcome screen's command set length.

RE:How to upload a welcome screen ?

 Thanks to reply

 

If i understant for mono:

I send adress and SSS and 1024 bytes of picutre ?
I need send exactely 1024 bytes or i can send lower ? 

For Color, i do not understant why it not working:
I send Address and SSS command after the total data lenght after le data lenght and data ?
 

Thanks
Olivier
 

RE:How to upload a welcome screen ?

 Hi, sorry for many questions:

I try the upload screen to OLED Mono 1,3" with arduino, i use Design_Welcome_Screen:
The picture is Wrong.

i define the line:
#define _DOWNLOAD_WELCOME_ 2; (Or 1 its the same result)

And put 1024 bytes data:

 

255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255
,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1
,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1
,128,0,31,0,0,0,0,62,0,0,0,0,0,0,0,1
,128,0,63,156,0,0,224,127,0,0,0,0,0,0,0,1
,128,0,59,156,30,58,224,119,14,29,30,15,14,192,0,1
,128,0,59,190,63,63,240,119,31,31,31,15,143,224,0,1
,128,0,56,62,119,63,240,112,59,159,59,157,206,224,0,1
,128,0,56,28,119,56,224,112,59,156,59,157,206,224,0,1
,128,0,31,28,119,56,224,62,59,156,63,159,206,224,0,1
,128,0,15,156,15,56,224,31,56,28,63,159,206,224,0,1
,128,0,3,156,63,56,224,7,56,28,56,28,14,224,0,1
,128,0,3,156,119,56,224,7,59,156,59,157,206,224,0,1
,128,0,59,156,119,56,224,119,59,156,59,157,206,224,0,1
,128,0,59,156,119,56,224,119,59,156,59,157,206,224,0,1
,128,0,63,158,127,56,240,127,31,28,31,15,142,224,0,1
,128,0,31,14,55,56,112,62,30,28,15,7,142,224,0,1
,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1
,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1
,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1
,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1
,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1
,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1
,128,31,192,0,0,0,0,0,0,0,0,0,0,0,0,1
,128,63,248,0,0,0,0,0,0,0,0,0,0,0,0,1
,128,255,252,3,240,0,0,241,224,0,0,0,0,0,0,1
,129,248,127,3,240,0,0,241,224,0,0,0,0,0,0,1
,131,224,31,131,129,225,208,241,227,193,216,120,0,0,0,1
,135,240,7,131,129,241,240,251,227,225,252,124,0,0,0,1
,135,120,3,131,131,185,240,251,231,113,220,238,0,0,0,1
,143,60,1,195,131,185,192,234,231,113,220,238,0,0,0,1
,142,28,1,195,243,185,192,234,231,113,220,238,0,0,0,1
,142,30,1,195,243,185,192,238,231,113,220,238,0,0,0,17
,142,15,0,227,131,185,192,238,231,113,220,238,0,0,0,33
,156,7,128,227,131,185,192,238,231,113,220,238,0,0,0,97
,156,3,192,227,131,185,192,238,231,113,220,238,0,0,0,225
,142,1,224,227,131,185,192,238,231,113,220,238,0,0,1,225
,142,0,225,227,131,241,192,238,231,225,220,252,0,0,3,241
,142,0,113,195,129,225,192,238,227,193,220,120,0,0,3,241
,143,0,123,192,0,0,0,0,0,0,0,0,0,0,7,241
,135,0,63,128,0,0,0,0,0,0,0,0,0,0,15,225
,131,192,31,128,0,0,0,0,0,0,0,0,0,0,31,193
,131,224,31,0,0,0,0,0,0,0,0,0,0,12,31,129
,128,254,254,0,0,0,0,0,0,0,0,0,0,30,63,1
,128,127,248,0,0,0,0,0,0,0,0,0,0,126,62,1
,128,63,192,0,0,0,0,28,0,0,0,0,0,255,124,1
,128,1,0,3,129,225,252,28,60,56,248,254,0,63,120,1
,128,0,0,3,131,241,254,28,126,56,248,255,0,31,248,1
,128,0,0,3,135,57,206,28,231,56,224,231,0,15,240,1
,128,0,0,3,135,57,206,28,231,56,224,231,0,7,224,1
,128,0,0,3,135,57,206,56,231,56,224,231,0,3,224,1
,128,0,0,3,135,57,206,56,231,56,224,231,0,1,192,1
,128,0,0,3,135,1,206,56,231,56,248,231,0,0,128,1
,128,0,0,3,135,1,206,56,231,56,248,231,0,0,0,1
,128,0,0,3,135,57,206,56,231,56,224,231,0,0,0,1
,128,0,0,3,135,57,206,112,231,56,224,231,0,0,0,1
,128,0,0,3,135,57,206,112,231,56,224,231,0,0,0,1
,128,0,0,3,135,57,206,112,231,56,224,231,0,0,0,1
,128,0,0,3,243,241,254,112,126,63,252,255,0,0,0,1
,128,0,0,3,241,225,252,112,60,63,252,254,0,0,0,1
,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1
,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1
,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1
,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255

 

RE:How to upload a welcome screen ?

 On mono LCD/OLED moudle, the MCU only simply copy 1024 bytes of data in welcome screen area to panel buffer, but OLED panel use different data structure than other LCDs, so, you need use our online tool to convert an image to the OLED welcome screen format.

For displaying other image command, the module use pixel to pixel method, so, the data structure are identical same on all modules.

The image convert tools is here:

http://www.digole.com/tools/PicturetoC_Hex_converter.php

Please select: 0.96/1.3" 12664 B/W OLED Welcome screen, for other mono LCD, select: Other 12864 LCD&Universal Adapter......

RE:How to upload a welcome screen ?

 Thanks to reply.

I have forgeten this choice, now it's works in arduino.

Best regards
Olivier

RE:How to upload a welcome screen ?

 Hi,

I have create small application to create the arduino code for Start Screen OLED/TFT Color.

Windows version http://www.gossuin.be/forum/digole/Windows.zip

MacOS version http://www.gossuin.be/forum/digole/MacOSX.zip

But i have limited to classic command and Black & white picture.

Thanks
Olivier

RE:How to upload a welcome screen ?

Hi,

I have not been able to upload a Welcome Screen to my display (OLED Serial Color with 3.0 firmware). The display works faultlessly both in UART mode and I2C mode. I can display text and images but not 'save' it to the Start screen.

I tried 3 different boards (Arduino Nano, Arduino Due, Teensy 3.1). They all give the same issue. I can draw the screen I want to upload as a start screen, the upload confirms success but when the display starts I get  "No welcome screen or wrong".

Here is a sample code I use with I2C protocol. It is based on the provided Arduino example:

#include <DigoleSerial.h>

#include <Wire.h>

DigoleSerialDisp mydisp(&Wire,'\x27');

const unsigned char wel[] PROGMEM ={10,0, 84,84,72,101,108,108,111,0};

#define _DOWNLOAD_MICRO_COMMANDS_ 0;  

void setup() {

  mydisp.begin();

  mydisp.clearScreen(); //Clear screen

    for (int j = 0; j < sizeof(wel);j++) {

         mydisp.write(pgm_read_byte_near(wel+j));  

    }

  mydisp.write(0);

  mydisp.write(0);

  delay(2000);

  mydisp.uploadStartScreen(sizeof(wel),wel);

}

void loop() {

}

Can you please help?

Thanks.

 

RE:How to upload a welcome screen ?

 Try this:

const unsigned char wel[] PROGMEM ={0,10, 84,84,72,101,108,108,111,0};

We changed the MSB and LSB bytes in the beginning of 2 bytes which indicate the length of welcome screen on the firmware version V2.9 and later.

 

RE:How to upload a welcome screen ?

Thanks. It works better indeed.

However, when I upload my start screen data, the Digole Welcome message still comes on top of it. Must I erase the whole flash?

 

Here is my test data:

 

6,16, // Data Length

67,76, // Clear Screen

// Start Picture

68,73,77,60,49,40,31,0,0,0,64,0,0,0,0,192,0,0,0,1,224,0,0,0,3,224,0,0,0,7,224,0,0,0,15,224,0,0,0,31,224,0,0,0,63,255,254,0,255,255,255,254,0,255,255,255,255,0,127,255,255,254,0,63,255,255,248,0,31,255,255,224,0,15,255,255,128,0,63,255,254,0,0,127,255,240,0,0,255,255,192,0,1,255,255,192,0,3,255,255,128,0,7,255,255,128,0,15,255,255,128,0,63,254,255,128,0,63,240,127,140,0,255,192,63,140,0,255,0,31,128,0,120,0,31,128,0,96,0,15,128,0,0,0,7,128,0,0,0,3,0,0,0,0,1,0,0,0,0,0,0,0 // End Picture

};

 

RE:How to upload a welcome screen ?

 It shouldn't, otherwise, that means your welcome screen didn't store in the module, please send us your sketch and data file to us for a check.

RE:How to upload a welcome screen ?

 Sorry for the delay. Here is the code I use. This is not the Start Screen I want to eventually but I need your help with uploading custom fonts (unanswered forum post) as well which I want in the screen.

 

---------

#include <DigoleSerial.h>

#include <Wire.h>

DigoleSerialDisp mydisp(&Serial, 9600); //UART:Arduino UNO: Pin 1(TX)on arduino to RX on module

const unsigned char wel[] PROGMEM ={

6,16, // Data Length

67,76, // Clear Screen

// Start Picture

68,73,77,60,49,40,31,0,0,0,64,0,0,0,0,192,0,0,0,1,224,0,0,0,3,224,0,0,0,7,224,0,0,0,15,224,0,0,0,31,224,0,0,0,63,255,254,0,255,255,255,254,0,255,255,255,255,0,127,255,255,254,0,63,255,255,248,0,31,255,255,224,0,15,255,255,128,0,63,255,254,0,0,127,255,240,0,0,255,255,192,0,1,255,255,192,0,3,255,255,128,0,7,255,255,128,0,15,255,255,128,0,63,254,255,128,0,63,240,127,140,0,255,192,63,140,0,255,0,31,128,0,120,0,31,128,0,96,0,15,128,0,0,0,7,128,0,0,0,3,0,0,0,0,1,0,0,0,0,0,0,0 // End Picture

};

void setup() {

  mydisp.begin();

  mydisp.clearScreen(); 

  mydisp.uploadStartScreen(sizeof(wel),wel);

void loop() {

-----------

Here is a video of the result and how the 'star' bitmap is drawn but then the Digole Welcome screen comes above it.

I seem to have seen on other forums that people had similar issues with firmware 3.0 on that display. Is there a way to upgrade or downgrade the firmware?

RE:How to upload a welcome screen ?

Fixed it. The issue was a combination of a few things.

1) Display not ready to upload although it appears to work just fine. See info in this post.

2) Bugs in olivierg program. Data length can be miscaculated and High Byte/Low Byte switched.

 

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