This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DLPC3479: Script doesn't work

Part Number: DLPC3479

Hello,

I'm trying to display the # 1 splash screen as a way to run scripts and batch command. Bat command works fine,but scripting doesn't work. What problems do occur in python script? Please reproduce it and provide something of comments.

[Batch Command Execution : OK]

[Scripting Execution : NG]

It looks last command as WriteRgbEnable fails.

Python script :

---

from dlpc347x.dual.commands import *

a=WriteRgbLedEnable(0,0,0)
ReadRgbLedEnable()
print(a)
b=WriteInputImageSize(1920,1080)
print(b)
c=WriteDisplaySize(1920,1080)
print(c)
d=WriteSplashScreenSelect(1)
print(d)
e=WriteOperatingModeSelect(OperatingMode.SplashScreen)
print(e)
f=WriteSplashScreenExecute()
print(f)
WriteDelay(5000)
g=WriteRgbLedEnable(1,1,1)
print(g)

---

The results :

  • Hello Uryyy,


    Could you please clarify what happens when you try the above script? And I think you may be missing the Image Crop command (0x10). Could you try adding that before calling splash screen select?

    Thanks,

    Kyle

  • Hi Kyle,

    I am sorry that there is not 0x10 command in DLPC3479.

    Regards,

    Uryyy

  • Hello Uryyy,

    The problem is with the Write Delay command (DBh). From the Programmer's Guide (dlpu081a):

    "This command is used to specify an execution delay time within a Flash batch file. It can only be used within a Flash batch file, and is not a valid command on the I2C interface."

    As the python script basically sends the commands over the I2C interface, it is not a valid command. Instead, you can use the sleep function in python to wait for the splash image to be loaded:

    from System.Threading import *
    
    # Add your code here....
    
    # Load and Display the Splash image
    print "Displaying Splash Index %s..." %splash_index
    Summary = WriteSplashScreenExecute()
    # Wait for the Splash Image to be loaded from flash
    Thread.Sleep(500)
    
    # Enable LEDs now

    Regards

    Azad

  • Hi Azad,

    Thank you. WriteDelay has something of problem.

    Regards,

    Uryyy