Skip to content

Instantly share code, notes, and snippets.

@SwitchScienceCode
Last active February 28, 2018 00:06
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