<?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[Using the Set Bit Block]]></title><description><![CDATA[<p dir="auto">I am trying to use the set bit block and having problems. I have attached a simple program to illustrate the problem.<img src="/assets/uploads/files/1614783657757-5b0c9f58-cb6b-4fed-85fa-2b514ebd23f0-image.png" alt="0_1614783654835_5b0c9f58-cb6b-4fed-85fa-2b514ebd23f0-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The python code generated is<br />
<img src="/assets/uploads/files/1614783755021-9532c1ed-5674-44c4-85a9-51e2a3d0a248-image.png" alt="0_1614783747974_9532c1ed-5674-44c4-85a9-51e2a3d0a248-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">On an M5Core, I get the error</p>
<p dir="auto">unsupported types for <strong>or</strong>:'NoneType', 'int'</p>
<p dir="auto">Can someone help me to resolve the problem?</p>
<p dir="auto">Allan</p>
]]></description><link>https://community.m5stack.com/topic/3029/using-the-set-bit-block</link><generator>RSS for Node</generator><lastBuildDate>Fri, 01 May 2026 12:37:32 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/3029.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 03 Mar 2021 15:06:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Using the Set Bit Block on Sat, 06 Mar 2021 16:36:13 GMT]]></title><description><![CDATA[<p dir="auto">Thanks - elementary error on my part. Problem resolved.</p>
<p dir="auto">Allan</p>
]]></description><link>https://community.m5stack.com/post/12852</link><guid isPermaLink="true">https://community.m5stack.com/post/12852</guid><dc:creator><![CDATA[uppermill]]></dc:creator><pubDate>Sat, 06 Mar 2021 16:36:13 GMT</pubDate></item><item><title><![CDATA[Reply to Using the Set Bit Block on Thu, 04 Mar 2021 09:50:30 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/uppermill" aria-label="Profile: uppermill">@<bdi>uppermill</bdi></a></p>
<p dir="auto">try to set <code>var1</code> to 0 before setting the bit.</p>
<pre><code>var1 = 0
var2 = (var1 | (0x01 &lt;&lt; 0))
</code></pre>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/12798</link><guid isPermaLink="true">https://community.m5stack.com/post/12798</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Thu, 04 Mar 2021 09:50:30 GMT</pubDate></item></channel></rss>