problem running pygate example code
-
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.

any help would be apreciated -
@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?
-
Hi, @jcaron. Yes, I did but I'll try again and also flash de lopy4 with the Pygate version with the firmware updater tool.
-
@jcaron Nevermind, you where right, there was one miss Identation that i didn't see thanks !!
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