#File Test 5.py
from machine import LCD
lcd = LCD()
lcd.fillScreen(lcd.color.BLACK)
lcd.setTextColor(lcd.color.RED,lcd.color.BLACK)
lcd.setTextSize(2)
lcd.drawString(“This Line works”, 10, 0)
The WIO Terminal is great except for this problem!
with open(‘SixDayOutput.txt’) as fo:
for line in fo:
print(line) # This prints correctly
lcd.drawString(line, 10, 20) # This crashes the program
This program fork when the last line is omitted.
Any ideas why?