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

"PGF:1" parameter

Scheduled Pinned Locked Moved
General Discussion
3
10
637
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.
  • B
    Bernard
    last edited by 23 Feb 2023, 08:16

    Good morning,
    If I activate the "PGF:1" parameter, is it normal that GUI-O does not inform the remote processor of the page change? Or am I missing something.....
    Sincerely Bernard

    K 1 Reply Last reply 23 Feb 2023, 14:57 Reply Quote 0
    • K
      kl3m3n @Bernard
      last edited by 23 Feb 2023, 14:57

      @Bernard Hi!

      No, this is a GUI-O application side feature only. It just navigates through the "pages" if there is more than one page available.

      If you want GUI-O to send the "flick" action, you need to use the |FLA widget.

      I hope this helps.

      Best regards,
      kl3m3n

      1 Reply Last reply Reply Quote 0
      • B
        Bernard
        last edited by 25 Feb 2023, 14:54

        Bonjour !
        Thanks for the info "|FLA", it works fine, Another question, it happens sometimes when GUI-O sends the "Init" command , the remote processor does return all the WIDGETs; I can check it on a terminal; but GUI-O runs indefinitely without displaying anything. I have to exit the app. GUI-O, reconnect and it works. A small idea?
        Bernard

        1 Reply Last reply Reply Quote 0
        • B
          Bernard
          last edited by 25 Feb 2023, 21:57

          @kl3m3n
          OK I found it! the remote processor sends the widgets to GUI-O in 2 parts. the 1st block ~ 30 widgets on page 0, and the second block ~20 widgets on page 1. (these are 2 distinct functions) even if they are chained GUI-O doesn't like that! so I send everything in one block and it's OK.
          Bernard

          K 1 Reply Last reply 27 Feb 2023, 12:06 Reply Quote 0
          • K
            kl3m3n @Bernard
            last edited by 27 Feb 2023, 12:06

            @Bernard Hi!

            Great that you've found a solution.

            Could you please explain this a bit more:

            @Bernard said in "PGF:1" parameter:

            (these are 2 distinct functions)

            Can you please give me a short example, so I can test this (maybe there is some bug in GUI-O, which I could fix)? Generally, GUI-O should accept chained commands in any order as long as each command is terminated by CRLF (\r\n)...

            Thank you.

            Best regards,
            kl3m3n

            B 1 Reply Last reply 27 Feb 2023, 14:24 Reply Quote 0
            • B
              Bernard @kl3m3n
              last edited by 27 Feb 2023, 14:24

              @kl3m3n
              Good morning,
              I specify that I work with Bascom. here is a code snippet:
              I have 2 blocks: Guio_ini_1 and Guio_ini_2. If I call Guio_ini_1 and Guio_ini_2 , the circular bar spins and spins indefinitely (as if there is no "'Print "@hls xxx". If I remove the "return" and Print "@hls 200" afterwards Guio_ini_1 and that I call Guio_ini_1, everything is going well!

              Gosub Guio_ini_1                                                                 
              Gosub Guio_ini_2
              Print "@sci SCI:0"
              
              Guio_ini_1:
              Print "@sls 200"                                                                 ' hide writing objects 'masquer les objets d'écriture
              Print "@cls"                                                                     ' clear HW components of phone ^'effacer les composants matériels du téléphone
              Print "@clh"                                                                     ' clear screen on smart phone 'écran clair sur téléphone intelligent
              Print "@clo"                                                                     'clear orientation
              Print "@gse COD:0 TSC:39"                                                        'Use ' instead of " (chr(34)
              Print "@guis BGC:#000000 ASR:0.0.4615"                                           'fond noire, ratio ecran, PGF=1 valider le changement de page !! mais le programme à de la peine......
              Print "|SORI UID:sori1 HID:sori ORI:2 SEN:0"                                     ' oriantation paysage
              'Print "@sci SCI:0"
              Waitms 100
              Print "|IM UID:im0 X:50 Y:50 W:300 H:100 IP:'giphy_1.gif' OPA:1 PLS:1 SCM:0 ACT:0"       ' image de fond
              Waitms 20
              Print "|CB UID:cb_T X:18 Y:30 W:19 BGC:#6E7274 FGC:#81DB64 SFGC:#FD1B28 HAW:2 HAH:3 HAR:2 LVAL:-20 HVAL:60 UD:2 FSZ:5 FFA:'font6' BTH:1.5 TXTC:#FFFFFF YTC:3 SHN:1 SHT:1"       ' circulaire température
              Waitms 20
              Print "|LB UID:lb_T X:18 Y:45 W:15 FGC:#FB0001 SHE:1 FSZ:5 FFA:'font2' TXT:'temp.'"       'texte température
              Waitms 20
              Print "|LB UID:lb_Vt X:18 Y:20 W:15 FGC:#FB0001 SHE:1 FSZ:5 FFA:'font2' TXT:'00.00'"       ' affichage numérique température
              Print "|CB UID:cb_H X:50 Y:30 W:19 BGC:#6E7274 FGC:#81DB64 SFGC:#FD1B28 HAW:2 HAH:3 HAR:2 LVAL:10 HVAL:100 UD:2 FSZ:5 FFA:'font6' BTH:1.5 TXTC:#FFFFFF YTC:3 SHN:1 SHT:1"       ' circulaire humidité
              Print "|LB UID:lb_H X:50 Y:45 W:15 FGC:#00F7FF SHE:1 FSZ:5 FFA:'font2' TXT:'hum.'"       'texte humidité
              Print "|LB UID:lb_Vh X:50 Y:20 W:15 FGC:#00F7FF SHE:1 FSZ:5 FFA:'font2' TXT:'00.00'"       ' affichage numérique humidité
              Print "|CB UID:cb_P X:83 Y:30 W:19 BGC:#6E7274 FGC:#81DB64 SFGC:#FD1B28 HAW:2 HAH:3 HAR:2 LVAL:600 HVAL:1050 UD:2 FSZ:5 FFA:'font6' BTH:1.5 TXTC:#FFFFFF YTC:3 SHN:1 SHT:1"       ' circulaire pression
              Print "|LB UID:lb_P X:84 Y:45 W:15 FGC:#FFFF00 SHE:1 FSZ:5 FFA:'font2' TXT:'altit.'"       'texte pression
              Print "|LB UID:lb_Vp X:84 Y:20 W:15 FGC:#FFFF00 SHE:1 FSZ:5 FFA:'font2' TXT:'00.00'"       ' affichage numérique pression
              Waitms 20
              Print "|CH UID:ch0 X:50 Y:75 W:50 H:50 XLO:0 BSZ:120 VLP:2 BGC:#E53A4456 FGC:#EF33EAF5 SHE:1 FSZ:2.5 RAD:1 CHT:2 CHN:'MESURE HUM / TEMP / PRESSION' XTC:12 YTC:6 YMA:4 XMA:2 XHI:75 PZO:0"       ' graphique data
              Print "|BT UID:bt_1 X:18 Y:65 W:12 H:12 FSZ:5 TXT:'1 Sec'"                       ' bouton 1 sec
              Print "|SI UID:Si_1 X:8 Y:65 W:3.5 BGC:#FF0003"                                  'led 1sec
              Print "|BT UID:bt_10 X:18 Y:79 W:12 H:12 FSZ:5 TXT:'10 Sec'"                     'bouton 10 sec
              Print "|SI UID:Si_10 X:8 Y:79 W:3.5 BGC:#FF0003"                                 'led 10 sec
              Waitms 20
              Print "|LB UID:lb_Si10 X:8 Y:80 W:3.5 FGC:#FB0001 SHE:1 FSZ:5 FFA:'font2' TXT:'0' VIS:0"       ' affichage  des seconde pour bouton 10sec
              Print "|BT UID:bt_60 X:18 Y:93 W:12 H:12 FSZ:5 TXT:'1 Min.'"                     'bouton 1min.
              Print "|SI UID:Si_60 X:8 Y:93 W:3.5 VIS:1 BGC:#FF0003"                           'led 1 min.
              Print "|LB UID:lb_Si60 X:8 Y:93 W:6 VIS:1 FGC:#FB0001 SHE:1 FSZ:5 FFA:'font2' TXT:'0' VIS:0"       ' affichage  des seconde pour bouton 1 min.
              Print "|TI UID:f_name X:86 Y:54 W:19 BGC:#C7FFFC FGC:#4C4C4C SHE:0 SHC:#F3FF0000 FSZ:7 FFA:'font6' RAD:1 BTH:0.2 TXT:'file.txt' "       ' saisi nom du fichier
              Print "|EXTF UID:extf1 HID:extf FAC:0 FNA:'" ; F_name ; "'"                      ' définir le nom du fichier sur téléphone
              Print "|BT UID:bt_St X:86 Y:66 W:20 H:12 FGC:#00FF00 SHC:#99000000 FSZ:5 TXT:'Start Record.'"       ' touche start / stop ... vert
              Print "|BT UID:bt_Of X:86 Y:79 W:20 H:12 FSZ:5 TXT:'Open File'"                  ' touche voir
              Print "|BT UID:bt_Part X:81 Y:93 W:10 H:12 FSZ:5 TXT:' Share '"                  ' bouton partage
              Print "|BT UID:bt_Del X:91 Y:93 W:9 H:12 FSZ:5 TXT:' Delete '"                   ' bouton delete file
              Waitms 20
              Print "|RTC UID:rtc1 HID:rtc RTCE:1 RTCR:1 RTCF:'yy.MM.dd HH:mm:ss'"             ' heure
              Print "|LB UID:datum X:32 Y:6 ROT:0 SHE:1 ALP:1 FGC:#42ECF5 FSZ:5 FFA:'font6' TXT:'DAT'"       'Labele Date
              Print "|LB UID:ura X:64 Y:6 ROT:0 SHE:1 ALP:1 FGC:#42ECF5 FSZ:5 FFA:'font6' TXT:'TIM'"       'Labele  Time"
              Print "|LB UID:lbguio X:64 Y:12 FGC:#FFFFFF SHE:1 FSZ:3 FFA:'font7' TXT:'GUI-O' ALP:1"       'label GUI-O
              Print "|LB UID:lbguiov X:64 Y:12 FGC:#00FFFFFF SHE:1 FSZ:3 URL:1 FFA:'font6' TXT:'https://www.gui-o.com' ALP:1"       'URL GUI-O
              Print "|LB UID:lbesp X:33 Y:12 VIS:1 FGC:#FFFFFF SHE:1 FSZ:3.5 FFA:'font7' TXT:'wiffi' ALP:1"       ' label wiffi
              Waitms 20
              Print "|LB UID:lbespv X:33 Y:12 FGC:#00FFFFFF SHE:1 FSZ:2 URL:1 FFA:'font6' TXT:'https://randomnerdtutorials.com/esp8266-pinout-reference-gpios' ALP:1"       'URL Wifi
              Print "|BT UID:bt_r X:18 Y:53 W:12 H:7 FSZ:5 TXT:'reset'"                        'touche reset
              Print "|LB UID:lblat X:32 Y:40 VIS:1 FGC:#FFFFFF SHE:1 FSZ:3.8 FFA:'font7' TXT:'Lat N:' ALP:1"       ' label Latitude
              Print "|LB UID:lblatv X:32 Y:45 ROT:0 SHE:1 ALP:1 FGC:#42ECF5 FSZ:4.5 FFA:'font6' TXT:'--'"       'Valeur Latitude
              Print "|LB UID:lblng X:63 Y:40 VIS:1 FGC:#FFFFFF SHE:1 FSZ:3.8 FFA:'font7' TXT:'Long E:' ALP:1"       ' label Longitude
              Print "|LB UID:lblngv X:64 Y:45 ROT:0 SHE:1 ALP:1 FGC:#42ECF5 FSZ:4.5 FFA:'font6' TXT:'--'"       'Valeur Longitude
              Print "|LB UID:lbggps X:64 Y:44 FGC:#00FFFFFF SHE:1 FSZ:3 URL:1 FFA:'font7' TXT:'https://www.coordonnees-gps.fr/' ALP:1"       ' URL carte gps
              Print "|BAT UID:bat1 HID:bat SRAT: 0.05"                                         'charge batterie telephone
              Print "|LB UID:lbbat X:48 Y:35 VIS:1 FGC:#FFFFFF SHE:1 FSZ:3.8 FFA:'font7' TXT:'Batt.%:' ALP:1"       'affichage texte batterie
              Print "|LB UID:lbbatv X:50 Y:39 W:15 FGC:#00F7FF SHE:1 FSZ:5 FFA:'font6' TXT:'00.00'"       'affichage valeur batterie
              Print "|TON UID:ton1 HID:ton EDUR:1000 TONT:24"                                  'definition du beep
              Print "|POS UID:pos1 HID:pos SRAT:0.1"                                           ' Enclancher GPS
              Print "|FLA UID:fla0 X:50 Y:95 H:10 W:50 OPA:0.1 CTRS:2 SCI:0"                   'barre de navigation page 1
              Print "@hls 200"
              Return
              
              Print "|IM UID:imx X:15 Y:50 W:100 H:100 ROT:0 SHE:0 VIS:1 OPA:0 ACT:0 SCM:0 IP:'Cardio.jpg' SCI:1"       'GUI-O Image ECG.jpg copy to smartphone \Phone\Android\data\com.guio.guioapp\files\Pictures\
              Print "|CH UID:ch2 X:65 Y:75 W:72 H:50 BTH:0.1 XTC:10 YTC:8 VIS:1 BSZ:200 CHT:2 BMA:0.03 XLO:0 XHI:40000 BGC:#FFFFFF FGC:#900000 RAD:0 LT:0.15 XMA:5 YMA:8 FFA:'font6' CHN:'ELECTRO CARDIOGRAM' FSZ:4 SCI:1"
              Waitms 20
              Print "|CH UID:ch1 X:65 Y:25 W:72 H:50 BTH:0.1 XTC:10 YTC:8 VIS:1 BSZ:5 DRA:0 BGC:#FFFFFF FGC:#900000 RAD:0 LT:0.15 XMA:5 YMA:8 SHVL:1 VLP:0 CHN:'PULSE' FFA:'font6' FSZ:4 SCI:1"
              Waitms 20
                'GUI-O graph for pulse and Cardio
              Print "|LB UID:lbpulse X:87 Y:35 ALP:1 ROT:0 SHE:1 FGC:#000000 FFA:'font6' FSZ:16 TXT:'---' SCI:1"       'Label for number-pulse"
              Print "|LB UID:lbpname X:85 Y:23 ALP:1 ROT:0 SHE:1 FGC:#000000 FFA:'font8' FSZ:4 TXT:'PULSE BMP' SCI:1"       'Label for name
              Print "|LB UID:lbname X:2 Y:92 ALP:1 ROT:0 SHE:1 FGC:#FFFFFF FFA:'font7' VIS:1 FSZ:10 TXT:'ECG' SCI:1"       'Label general name
              Print "|BT UID:btsound X:22 Y:92 W:10 H:10 ROT:0 RAD:1 SHVR:0.8 SHE:1 SHC:#404040 BGC:#808B96 SBGC:#808B96 FGC:#FFFFFF FSZ:6 BTH:0 FFA:'font6' TXT:'Sound' SVAL:'Stop' SCI:1"
              Print "|FLA UID:fla1 X:50 Y:95 H:10 W:50 OPA:0.05 CTRS:2 SCI:1"                  'barre de navigation page 2
              Print "@hls 100"                                                                 'end writting objects
              Return
              
              
              B 1 Reply Last reply 27 Feb 2023, 14:29 Reply Quote 0
              • B
                Bernard @Bernard
                last edited by 27 Feb 2023, 14:29

                @kl3m3n
                Sorry, of course before the 2nd block there is the name of the SUB Guio_ini_2:

                K 1 Reply Last reply 28 Feb 2023, 20:08 Reply Quote 0
                • K
                  kl3m3n @Bernard
                  last edited by 28 Feb 2023, 20:08

                  @Bernard Hi!

                  Where do you print CRLF (\r\n)?

                  Kl3m3n

                  B 1 Reply Last reply 28 Feb 2023, 20:27 Reply Quote 0
                  • B
                    Bernard @kl3m3n
                    last edited by 28 Feb 2023, 20:27

                    @kl3m3n
                    Hello,
                    Bascom automatically adds cr/lf after a print . When you end a print with ";" it does not add cr/lf
                    is it correct that once a CHART widget is written, it is no longer possible to modify any of these parameters?
                    Sincerely Bernard

                    G 1 Reply Last reply 27 Mar 2023, 20:40 Reply Quote 0
                    • G
                      gammda @Bernard
                      last edited by gammda 27 Mar 2023, 20:40

                      @Bernard
                      In your Sub, the Return statement is used twice. Maybe that's the problem.
                      After first return statement must be:
                      Guio_ini_2:

                      @hls 250 should be at the end of the Init procedure.
                      I checked the Init process without the Bascom code and it works OK.

                      Maybe put |CH

                      |CH UID:ch0 X:50 Y:75 W:50 H:50 XLO:0 BSZ:120 VLP:2 BGC:#E53A4456 FGC:#EF33EAF5 SHE:1 FSZ:2.5 RAD:1 CHT:2 CHN:'MESURE HUM / TEMP / PRESSION' XTC:12 YTC:6 YMA:4 XMA:2 XHI:75 PZO:0
                      
                      
                      @hls 250
                      

                      just before @hls 250

                      Otherwise, your GUI-O screen is very nice 👍

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