Announcement

Collapse
No announcement yet.

Swap Forms

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

  • Swap Forms

    Is there a way to 'swap' forms that have already been created in Visi Genie ? I created Form0 initially to support some data display and then decided to create a start-up page that I would like to be displayed initially which currently exists as Form1. When the LCD starts it initially displays Form0 until the code that requests Form1 can be executed.

    The block of code that I am using is:


    genieBegin(GENIE_SERIAL, 19200); // LCD Display Setup & event handler
    pinMode(4, OUTPUT); // Set D4 on Arduino to Output
    digitalWrite(4, 1); // Reset the Display via D4
    delay(100);
    digitalWrite(4, 0); // unReset the Display via D4
    delay (3500); // let the display start up
    genieWriteContrast(15); // Contrast Level, 0 (off) - 15 (brightest)

    genieWriteObject(GENIE_OBJ_FORM, 0x01,0); // The page i'd like to display first

    delay(5000);

    genieWriteObject(GENIE_OBJ_FORM, 0x00,0); // My data handling page


    I tried moving the genieWriteObject(GENIE_OBJ_FORM, 0x01,0);
    call higher in the sequence but it obviously isn't the answer.


    Thanks in advance,
    Pete

  • #2


    Edit the .4dgenie file with a text editor.

    Take all the code from the first 'Form' to the next 'Form' and swap them around.

    Then swap around the names.

    Make sure you take a backup first, in case you 'miss' something.
    Mark

    Comment


    • #3


      Thanks you Mark, I didn't realize that file was ASCII text. That makes things a lot easier to move objects within forms and between them.


      -Pete

      Comment

      Working...
      X