Announcement

Collapse
No announcement yet.

Problem with "uSD_SetSector"

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with "uSD_SetSector"


    Excuse me for my English, but it’s not my “language”. I want to run and repeat a video on the 4DGL OLED GOLDELOX 128, but I have a problem to program the uSD_SetSector.

    I introduce a video *.mpg in the Graphic composer software 2.0.1.2:"Device" -> "Load Options" -> "Com Port/Drive" = GCI File

    "Device" -> "Load Options" -> "Write Command Block" = NO


    "Device" -> "Load Options" -> "Image Format" = Image & Pixel Data (V2)


    I generate the *.dat , *.gci & *.txt files with the command : Device" -> "Load

    the *.txt file is :

    File "D:\Travail2006\Ksoul\4D System\Software\travail\143.MPG"

    Location = 0x200000(2097152)

    Width = 128 Height = 96 Bits = 16

    64, 86, 0, 16, 128, 96, 16, 39, 2, 191, 0, 16, 0

    Cmd (0) = 40

    Cmd (1) = 56

    Cmd (2) = 0

    Cmd (3) = 10

    Cmd (4) = 80

    Cmd (5) = 60

    Cmd (6) = 10

    Cmd (7) = 27

    Cmd (8) = 2

    Cmd (9) = BF

    Cmd (A) = 0

    Cmd (B) = 10

    Cmd (C) = 0

    Cmd (D) = B

    Cmd (E) = 0

    Cmd (F) = 0

    Cmd (10) = 0

    Cmd (11) = 0

    I load the *.dat et *.gci files in the uSD (SanDisk 2GB formated FAT16)

    I load with the PmmCLoader and uUSB-CE5 the uOLED128 G1 (4DGL-rev2)

    With the 4DGL Workschop 2.1.0.0, I write and load this text :

    #platform "uOLED-GOLDELOX"

    func main()

    uSD_SetSector(0x0000, 0x1000); // set sector for video

    uSD_Video(0, 0); // display video at x=0, y=0

    endfunc

    I disconnect the uOLED128 G1, I insert the uSD in the uOLED128 G1, I connect with the uUSB-CE5 the uOLED128 G1 on my PC.

    But the display doesn’t work, what is wrong ???

    Thanks.
    ksoul



  • #2


    ksoul,

    You're missing a

    uSD_Init();

    call in your code.
    Hope this fixes your problem.

    Comment


    • #3


      Hi,
      in one word: "Sublime!!!"
      You're a real "Paganini" of software
      Thanks a lot,
      K-soul

      Comment

      Working...
      X