diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..9362af8 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,9 @@ +{ + "python.analysis.typeshedPaths": [ + "~/.micropico-stubs/included" + ], + "python.analysis.extraPaths": [ + "~/.micropico-stubs/included" + ], + "python-envs.defaultEnvManager": "ms-python.python:system" +} \ No newline at end of file diff --git a/main.py b/main.py new file mode 100644 index 0000000..86098e0 --- /dev/null +++ b/main.py @@ -0,0 +1,8 @@ +import time +from machine import Pin + +Inverter_Pin = Pin(4, Pin.IN) + +while True: + print(Inverter_Pin.value()) + time.sleep(1) \ No newline at end of file