Skip to content

Instantly share code, notes, and snippets.

@RobCranfill
Created February 25, 2023 00:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobCranfill/7e80ea8d6dd29812a16c1bd2dc17566b to your computer and use it in GitHub Desktop.
Save RobCranfill/7e80ea8d6dd29812a16c1bd2dc17566b to your computer and use it in GitHub Desktop.
Run code on a micropython device.
# 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