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

    problem running pygate example code

    Scheduled Pinned Locked Moved Getting Started
    4 Posts 2 Posters 28 Views 2 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.
    • E Offline
      Elias Tapia
      last edited by

      Hello, i'm trying to run the example provided by pycom: https://docs.pycom.io/tutorials/pygate/
      but as soon i uploaded the files a strange error appear.
      Captura de Pantalla 2021-04-13 a la(s) 16.50.18.png
      any help would be apreciated

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jcaron @Elias Tapia
        last edited by

        @Elias-Tapia Did you keep all the spaces as in the original? Python (and micropython) is sensitive to the amount of white space as it is part of the syntax.

        Make sure you really copy-paste the file to keep indentation identical.

        Also, is the LoPy4 flashed with the Pygate version of the firmware?

        E 1 Reply Last reply Reply Quote 1
        • E Offline
          Elias Tapia
          last edited by

          Hi, @jcaron. Yes, I did but I'll try again and also flash de lopy4 with the Pygate version with the firmware updater tool.

          1 Reply Last reply Reply Quote 0
          • E Offline
            Elias Tapia @jcaron
            last edited by

            @jcaron Nevermind, you where right, there was one miss Identation that i didn't see thanks !!

            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