MX031 - Multimedia Files on 4D Eblocks

Forum to discuss articles which have been published in Matrix Multimedia's article zone. If you have any comments or questions regarding the articles please post them here.

Moderators: Benj, Mods

Post Reply
User avatar
DavidA
Matrix Staff
Posts: 1076
Joined: Fri Apr 23, 2010 2:18 pm
Location: Matrix Multimedia Ltd
Has thanked: 58 times
Been thanked: 258 times
Contact:

MX031 - Multimedia Files on 4D Eblocks

Post by DavidA »

Article: http://www.matrixmultimedia.com/article.php?a=649

Discuss this article here.

Dirk Bubley
Posts: 99
Joined: Fri Feb 02, 2007 3:54 pm
Location: Germany
Has thanked: 14 times
Been thanked: 12 times
Contact:

Re: MX031 - Multimedia Files on 4D Eblocks

Post by Dirk Bubley »

Hello David,

I try to load a stored Picture from the SD Card with your discription under FC6.

It Looks to me the the command structure is different.

Your FC Macro Example Shows:

X - This is the X co-ordinate position of where the picture will begin on the screen
Y - This is the Y co-ordinate position of where the picture will begin on the screen
Filename - The filename of the Graphics Composer file on the SD card. (including file extension)
PosH - This is the higher int of the offset for each picture
PosL - This is the lower int of the offset for each Picture


Under FC6 it is different:

Byte X
Byte Y
Byte Width
Byte Height
Byte Color Mode
Byte AddH
Byte AddM
Byte AddL

Any idea to have a process to recall a Picture under FC6??

BR

Dirk

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: MX031 - Multimedia Files on 4D Eblocks

Post by Benj »

Hi Dirk,

I believe there are two controller IC's used by 4D systems.

The Picaso controllers use the filename macro and the Goldilox controllers use the Address L, M, H.

The component should provide the macros compatible for the device your using.

My guess is that the example is for a Picaso type display.

Dirk Bubley
Posts: 99
Joined: Fri Feb 02, 2007 3:54 pm
Location: Germany
Has thanked: 14 times
Been thanked: 12 times
Contact:

Re: MX031 - Multimedia Files on 4D Eblocks

Post by Dirk Bubley »

Hi Ben,

you are right the scrip is for Picasso and the 4D graphic Composer is creating Picasso files too.
Please see the Composer log text below:

File "CB Logo.jpg" (CB Logo.jpg)
Sector Address 0x000000
X = 0 Y = 0 Width = 128 Height = 128 Bits = 16

Display Image from Memory Card (Serial Command):
Syntax:
@, m, "Filename", terminator, x, y, imagePos(xhi) imagePos(hi), imagePos(mid), imagePos(lo)
Picaso Data:
0x40, 0x6D, "dbtest.Gci", 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
4DSL command:
FATImage("dbtest.Gci", 0, 0, 0x00000000)


I will check the 4D uOLED-126-G1 legacy page in order to see if there is a different Composer.

BR

Dirk

Dirk Bubley
Posts: 99
Joined: Fri Feb 02, 2007 3:54 pm
Location: Germany
Has thanked: 14 times
Been thanked: 12 times
Contact:

Re: MX031 - Multimedia Files on 4D Eblocks

Post by Dirk Bubley »

Hi Ben,
Hello together,

success Problem solved it is working

Here is what must be done:

1. Choose the following 4D Graphic Composer mode
GC3 Build Output.jpg
GC3 Build Output.jpg (135.01 KiB) Viewed 15284 times
Attention the SD will be formatted during this opperation. Make shure you selct the correct drive!!!

2. In your working Folder you will get the following TXT file (the Folder were you picked you Picture)
My working Folder in this example was on the G: drive as you can see. In the drop down box above you must select your SD Card for the display:


File "CB Logo.jpg" (CB Logo.jpg)
Sector Address 0x000000
X = 0 Y = 0 Width = 128 Height = 128 Bits = 16

Display Image from Memory Card (Serial Command):
Syntax:
@, I, x, y, SectorAdd(hi), SectorAdd(mid), SectorAdd(lo)
Picaso Data:
0x40, 0x49, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
4DSL command:
NewUSDImage(0, 0, 0x000000)

There you can get the information for Hi, Mid and Lo Sector in order to put these adresses in the DisplayImageFromCard Macro.

3. Below the values you must put into the DisplayImageFromCard Macro.
Display Image from Card Macro.jpg
Display Image from Card Macro.jpg (138.13 KiB) Viewed 15284 times

BR

Dirk

Post Reply