-
Notifications
You must be signed in to change notification settings - Fork 24
Initial Version of Library #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved, will merge once bitcoin example is updated to 60 seconds!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please please please start factoring out common code between the portal libraries instead of copying. Doing so will make them all more maintainable and easier to build upon. network, graphics and wifi_module are all things that could be used separately from MagTag. peripherals is what I'd expect the MagTag library to consist of. It encapsulates just the things that make the board unique.
print("Response is", value) | ||
except (ValueError, RuntimeError) as e: | ||
print("Some error occured, retrying! -", e) | ||
timestamp = time.monotonic() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
else:
time.sleep(time.monotonic() - timestamp)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough. I'll create an issue for this.
Here is the initial working version of the library.