Skip to content

Instantly share code, notes, and snippets.

@SwitchScienceCode
Last active February 28, 2018 00:06
Show Gist options
  • Save SwitchScienceCode/6a8786b09ef6179ccc38c6a67a9ad290 to your computer and use it in GitHub Desktop.
Save SwitchScienceCode/6a8786b09ef6179ccc38c6a67a9ad290 to your computer and use it in GitHub Desktop.
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