Skip to content
Discussion options

You must be logged in to vote

In general the best approach is to save your program under a different name, say test.py. This enables you to test it by issuing

import test

When it's fully working, then edit main.py as follows:

import time
time.sleep(3)
import test

I find the delay useful in the case where something goes wrong and the program locks up the device. It gives you time to reset the device and issue ctrl-c to regain control.

Replies: 6 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@LeafTeaNeko
Comment options

@LeafTeaNeko
Comment options

Answer selected by LeafTeaNeko
Comment options

You must be logged in to vote
3 replies
@LeafTeaNeko
Comment options

@scruss
Comment options

@karfas
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants