We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
hi, i try to switch from thonny to vsc, i managed to get a program working in vsc which is:
""" from machine import Pin from time import sleep
led1 = Pin(17,Pin.OUT,value = 0)
btn = Pin(16,Pin.IN,Pin.PULL_UP)
print(led1)
while True: if btn.value() == 1: led1.value(1) else: led1.value(0) """
the problem im running into is: after pressing the button btn, the programm loop is cancelt and the programm is closed
the command im using is, ampy --port COM3 run blinkmicropython.py i also tried [..] run -n
i would like to keep this programm running forever, and not cancel it after one runthrough. how can i accomplish this?
The text was updated successfully, but these errors were encountered:
use -n , but it won't print
-n
Sorry, something went wrong.
No branches or pull requests
hi,
i try to switch from thonny to vsc, i managed to get a program working in vsc
which is:
"""
from machine import Pin
from time import sleep
led1 = Pin(17,Pin.OUT,value = 0)
btn = Pin(16,Pin.IN,Pin.PULL_UP)
print(led1)
while True:
if btn.value() == 1:
led1.value(1)
else:
led1.value(0)
"""
the problem im running into is: after pressing the button btn, the programm loop is cancelt
and the programm is closed
the command im using is, ampy --port COM3 run blinkmicropython.py
i also tried [..] run -n
i would like to keep this programm running forever, and not cancel it after one runthrough.
how can i accomplish this?
The text was updated successfully, but these errors were encountered: