Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Python Interface

    Scheduled Pinned Locked Moved Comments & Feedback
    wipy3.0wipy 2wipyinterfaceconnect
    4 Posts 3 Posters 1.2k Views 3 Watching
    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.
    • F Offline
      FedeSilvi
      last edited by FedeSilvi

      Hi,

      i need to make a graphic interface in python to show my data. i take those data from my wipy using vscode.
      First of all I tried using an interface program called H3D, but I couldn't create a connection between H3D and VSCode. Because of that, In the end I decided to use directly VSCode and Python to write a code to make my interface. is it possibile?? does exist another method to do that? i only need a screen in which appear bars that vary on realtime in function of the data acquired by wipy. so i think i'll need to write a code for the state machine and a code for the graphic view? how can i do that ?

      Please help me, Thank you so much!

      robert-hhR 1 Reply Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @FedeSilvi
        last edited by

        @fedesilvi Peter Hinch has written such a class, which is based on the framebuffer class of Micropython. See her: https://github.com/peterhinch/micropython-nano-gui
        Even if that war written for the micropython.org variant, it should be possible to use it, eventually with small fixes. It assumes a display with the ssd1306 driver. You did not mention which display you are using. I have also a SH1106 driver which attaches to the framebuffer class; https://github.com/robert-hh/SH1106

        1 Reply Last reply Reply Quote 0
        • F Offline
          FedeSilvi
          last edited by

          @robert-hh thank you so much, we have changed our planes now. we need to implement our graphic interface with pygame. we have a code that reads data from wipy and runs in the pycome console, and another code that makes a graphic interface with pygame and runs in the cmd. i need to run these two codes in the same time and in the same console, because I nead to make my interface variable based on data acquired from wipy. how can i do that?? is it possibile to pass the data from one to the other one? thankyou so much

          1 Reply Last reply Reply Quote 0
          • P Offline
            PySimpleGUI
            last edited by PySimpleGUI

            @fedesilvi I recommend you try PySimpleGUI

            It's much easier to program a GUI in PySimpleGUI than PyGame.

            Do you have tkinter on your platform?

            You should be able to hook up your GUI to anything you want. To display your information, read the data using your code, then plot the data using a Matplotlib / Pyplot call. You can then display that graph in your GUI.

            There is extensive documentation on how to use it and there are several example programs posted the demonstrate hooking it up to Matplotlib.

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post

            Pycom on Twitter

            Pycom