Announcement

Collapse
No announcement yet.

System Function

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

  • System Function

    35DCT-CLB

    How and Where to insert Deep Sleep function?


    Thank you

  • #2
    Hello,

    You can find information about deep sleep on page 293 of this datasheet. http://www.4dsystems.com.au/productp...ons_R_1_16.pdf

    If you are using Visi-Genie and Magic code it should be placed in Mainloop code or in Visi or designer in your repeat forevor loop.

    I hope this helps.

    Best regards

    Paul

    Comment


    • #3
      Thank you sir.

      I will try. I appreciate your help

      Comment


      • #4
        Hi,

        I tried to put the screen in deepsleep mode by creating a magic event in Genie. However, If I touch the screen while in deelsleep mode, the screen wakes up, but the serial communication sometimes goes wrong. Nothing works after this, and have to restart the whole system. I am using uLCD-50 DCT screen in my project. Would you please suggest me something on it.

        Here is my magic event function.


        func MagicEvent0(var newval)
        var i := 10;
        var t := 0;
        while(i > 0)
        i--;
        gfx_Contrast(i);
        pause(20);
        wend
        if (i == 0)
        ActivateForm(10) ;
        while(t == 0)
        t := sys_DeepSleep(65535);
        wend
        pause(20);
        disp_Init();
        pause(20);
        gfx_Contrast(10);
        ActivateForm(0);
        pause(20);
        else
        print("can not sleep");
        endif
        endfunc

        Comment


        • #5
          Hello,

          Can you let me know if you are you using an Arduino as your host ?

          Best regards

          Paul

          Comment


          • #6
            Hi,

            Yes, I am using arduino due board in my project.

            Comment


            • #7
              Hi,

              There is a new version of genieArduino here https://github.com/4dsystems/ViSi-Ge...o-Library-BETA which has better support for the DUE which may solve your problem. It is possible that your Magic Event for Deep Sleep is going to send an Ack when finished and the Arduino will sit waiting for it but as the display is in sleep mode it is not going to send the Ack until coming out of sleep.

              Best regards

              Paul

              Comment

              Working...
              X