GUI-O Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    GUI-O Designer wish

    Scheduled Pinned Locked Moved
    Wishlist
    2
    4
    270
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pcu
      last edited by

      Hi,

      I think that in most cases, we need to copy the intialization array into the embedded code.
      It would be nice if in the designer app we could add prefix and suffix to simply copy paste the generated array.

      Here an example for ESP32 in BLE, prefix is "sendMsg(" and suffix is ");"
      sendMsg("|LB UID:home X:50 Y:50 FGC:#607196 SHE:1 SHC:#FFC759 FSZ:5 FFA:"font1" TXT:"HOME SCREEN"\r\n");

      In my case, I use an array to reach the maximum MTU, I only need a comma at the end:

      static const char *initGuioStr[] =
      {
      "|CB UID:RPM X:60 Y:27 W:45 BGC:#121212 FGC:#990000 HAW:2 HAH:2 HAR:4 VAL:20 HVAL:6000 BTH:2 TXTC:#000000 XTC:6 YTC:4 STA:225 ENA:-45 SHN:1 NC:#000000 CE:0 SHT:1\r\n",
      "|LB UID:RPM_label X:50 Y:40 W:100 FGC:#000000 FSZ:4 FFA:\"font5\" TXT:\"RPM\"\r\n",
      "|SI UID:cyl1 X:10 Y:15 W:5 FGC:#00FF09\r\n"
      };
      

      Thank you,
      Pierre

      K 2 Replies Last reply Reply Quote 0
      • K
        kl3m3n @pcu
        last edited by

        @pcu Hi!

        Seems reasonable. I will add it to my todo list.

        Thanks for the feedback.

        Best regards,
        Klemen

        1 Reply Last reply Reply Quote 0
        • K
          kl3m3n @pcu
          last edited by

          @pcu Hi!

          Please download designer version 0.0.11, which includes the option to add prefix and suffix string to each command.

          https://www.gui-o.com/design-tool

          Best regards,
          Klemen

          P 1 Reply Last reply Reply Quote 0
          • P
            pcu @kl3m3n
            last edited by

            @kl3m3n
            Nice, thank you

            1 Reply Last reply Reply Quote 0
            • First post
              Last post