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

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

MX031 - Multimedia Files on 4D Eblocks

Postby DavidA » Fri Jun 29, 2012 12:35 pm

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

Discuss this article here.

Dirk Bubley
Posts: 89
Joined: Fri Feb 02, 2007 3:54 pm
Location: Germany
Has thanked: 9 times
Been thanked: 8 times
Contact:

Re: MX031 - Multimedia Files on 4D Eblocks

Postby Dirk Bubley » Wed Oct 01, 2014 9:47 pm

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: 14674
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4659 times
Been thanked: 4283 times
Contact:

Re: MX031 - Multimedia Files on 4D Eblocks

Postby Benj » Thu Oct 02, 2014 11:24 am

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: 89
Joined: Fri Feb 02, 2007 3:54 pm
Location: Germany
Has thanked: 9 times
Been thanked: 8 times
Contact:

Re: MX031 - Multimedia Files on 4D Eblocks

Postby Dirk Bubley » Thu Oct 02, 2014 10:39 pm

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: 89
Joined: Fri Feb 02, 2007 3:54 pm
Location: Germany
Has thanked: 9 times
Been thanked: 8 times
Contact:

Re: MX031 - Multimedia Files on 4D Eblocks

Postby Dirk Bubley » Thu Oct 02, 2014 11:39 pm

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.02 KiB) Viewed 10086 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 10086 times



BR

Dirk
These users thanked the author Dirk Bubley for the post (total 2):
Benj (Fri Oct 03, 2014 9:34 am) • EtsDriver (Mon Jan 04, 2016 9:10 am)
Rating: 10%