Created
February 25, 2023 00:36
-
-
Save RobCranfill/7e80ea8d6dd29812a16c1bd2dc17566b to your computer and use it in GitHub Desktop.
Run code on a micropython device.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to see the name of the file(s) on the device: | |
import os | |
os.listdir() | |
# to run the code | |
# (ok actually you would do this in a separate step) | |
exec(open('code.py').read()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment