GUI-O Designer wish
-
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 -
@pcu Hi!
Seems reasonable. I will add it to my todo list.
Thanks for the feedback.
Best regards,
Klemen -
@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 -
@kl3m3n
Nice, thank you