Last active
February 28, 2018 00:06
-
-
Save SwitchScienceCode/6a8786b09ef6179ccc38c6a67a9ad290 to your computer and use it in GitHub Desktop.
Sample code for creating main.py with MicroPython's Paste-Mode.
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
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