<?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[X ERROR - unsupported types for __and__: &#x27;function&#x27;, &#x27;int&#x27;]]></title><description><![CDATA[<p dir="auto">I keep receiving "X ERROR - unsupported types for _ and _: 'function', 'int' " on my M5Fire for the following code.  Sometimes it happens right away, other times it works flawlessly for a little while and then I get the error.  Can anyone help with this?</p>
<p dir="auto"><img src="/assets/uploads/files/1587593001717-uiflow1-resized.png" alt="0_1587593001795_uiflow1.PNG" class=" img-fluid img-markdown" /><br />
from m5stack import *<br />
from m5ui import *<br />
from uiflow import *<br />
import unit</p>
<p dir="auto">setScreenColor(0x222222)<br />
relay0 = unit.get(unit.RELAY, unit.PORTB)<br />
rfid2 = unit.get(unit.RFID, unit.PORTA)</p>
<p dir="auto">label1 = M5TextBox(253, 42, "ID:", lcd.FONT_DejaVu24,0xFFFFFF, rotate=90)<br />
label2 = M5TextBox(297, 42, "-", lcd.FONT_DejaVu24,0xFFFFFF, rotate=90)<br />
title = M5Title(title="Workshop", x=7 , fgcolor=0x000000, bgcolor=0xfefefe)<br />
label4 = M5TextBox(253, 83, "-", lcd.FONT_DejaVu24,0xFFFFFF, rotate=90)</p>
<p dir="auto">while True:<br />
relay0.off()<br />
label4.setText(str(rfid2.readUid()))<br />
label2.setColor(0xcccccc)<br />
label2.setText('Place ID Card')<br />
while rfid2.isCardOn():<br />
label4.setText(str(rfid2.readUid()))<br />
if (rfid2.readUid()) == '8848f1f1c':<br />
label2.setColor(0x33ff33)<br />
label2.setText('Proceed')<br />
relay0.on()<br />
else:<br />
label2.setColor(0xff0000)<br />
label2.setText('Access Denied!')<br />
break<br />
wait_ms(2)</p>
]]></description><link>https://community.m5stack.com/topic/1882/x-error-unsupported-types-for-__and__-function-int</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 10:45:20 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1882.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 22 Apr 2020 22:04:01 GMT</pubDate><ttl>60</ttl></channel></rss>