<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[FATAL ERROR: Name m5line is not defined]]></title><description><![CDATA[<pre><code>from m5stack import *
from m5ui import *
from uiflow import *
import unit

setScreenColor(0x514f4f)
earth0 = unit.get(unit.EARTH, unit.PORTA)

std = M5Circle(40, 91, 10, 0xFFFFFF, 0xFFFFFF)
text0 = M5TextBox(61, 119, "Status", lcd.FONT_Default, 0x78ff00, rotate=180)
text1 = M5TextBox(77, 149, "Water monitor", lcd.FONT_DefaultSmall, 0x00e5ff, rotate=0)
label0 = M5TextBox(77, 58, "value:", lcd.FONT_Default, 0xe4ff00, rotate=180)
rectangle0 = M5Rect(2, 41, 34, 20, 0xFFFFFF, 0xFFFFFF)
angread = M5TextBox(30, 57, "err", lcd.FONT_DefaultSmall, 0x000000, rotate=180)
rectangle1 = M5Rect(16, 11, 20, 20, 0xFFFFFF, 0xFFFFFF)
label1 = M5TextBox(77, 27, "Unit std:", lcd.FONT_DefaultSmall, 0xfffe00, rotate=180)
line0 = M5Line(M5Line.PLINE, 16, 128, 62, 128, 0xFFFFFF)    # &lt;--bug line
need = M5TextBox(75, 74, "Water needed!", lcd.FONT_DefaultSmall, 0xff0000, rotate=180)

# sysinit
def init():
  need.hide()
  angread.setText('0')
  rectangle0.setBgColor(0xff0000)
  rectangle0.setBorderColor(0xff0000)
  std.setBgColor(0xff0000)
  std.setBorderColor(0xff0000)



init()
while True:
  if False:
    angread.setText(str(earth0.analogValue))
  elif False:
    pass
  wait_ms(2)
</code></pre>
]]></description><link>https://community.m5stack.com/topic/2860/fatal-error-name-m5line-is-not-defined</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 22:00:28 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/2860.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 30 Jan 2021 04:10:47 GMT</pubDate><ttl>60</ttl></channel></rss>