Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sample code for creating main.py with MicroPython's Paste-Mode.
str = '''
from m5stack import lcd
lcd.clear()
lcd.print('Hello World!')
'''
f = open('main.py', 'w')
f.write(str)
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment