<?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[Error DHT12 M5stack CORE]]></title><description><![CDATA[<p dir="auto">unexpected keyword argument freq<br />
M5stack CORE<br />
<img src="/assets/uploads/files/1613464309318-41061b55-0ccf-482e-ba8c-24ef37afc9ab-imagen-resized.png" alt="0_1613464279029_41061b55-0ccf-482e-ba8c-24ef37afc9ab-imagen.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">UI 1,4,5</p>
<p dir="auto">from m5stack import *<br />
from m5ui import *<br />
from uiflow import *<br />
import i2c_bus</p>
<p dir="auto">setScreenColor(0x222222)</p>
<p dir="auto">label0 = M5TextBox(85, 57, "Text", lcd.FONT_DejaVu40,0xFFFFFF, rotate=0)<br />
label1 = M5TextBox(83, 145, "Text", lcd.FONT_DejaVu40,0xFFFFFF, rotate=0)<br />
label2 = M5TextBox(215, 146, "C", lcd.FONT_DejaVu40,0xFFFFFF, rotate=0)<br />
label3 = M5TextBox(215, 57, "%", lcd.FONT_DejaVu40,0xFFFFFF, rotate=0)<br />
label4 = M5TextBox(250, 135, "O", lcd.FONT_Default,0xFFFFFF, rotate=0)</p>
<p dir="auto">hum_Integer = None<br />
hum_decimal = None<br />
tem_Integer = None<br />
tem_decimal = None</p>
<p dir="auto">i2c0 = i2c_bus.easyI2C(i2c_bus.PORTA, 0x5C)<br />
while True:<br />
wait_ms(100)<br />
hum_Integer = int(((i2c0.read_u16(0x00, byteorder="big")) / 256))<br />
wait_ms(100)<br />
hum_decimal = ((i2c0.read_u16(0x00, byteorder="big")) % 256) * 0.1<br />
wait_ms(100)<br />
label0.setText(str(hum_Integer + hum_decimal))<br />
wait_ms(100)<br />
tem_Integer = int(((i2c0.read_u16(0x02, byteorder="big")) / 256))<br />
wait_ms(100)<br />
tem_decimal = ((i2c0.read_u16(0x02, byteorder="big")) % 256) * 0.1<br />
wait_ms(100)<br />
label1.setText(str(tem_Integer + tem_decimal))<br />
wait_ms(2)<br />
I2c Bus error 6</p>
<p dir="auto">Thanks</p>
]]></description><link>https://community.m5stack.com/topic/2961/error-dht12-m5stack-core</link><generator>RSS for Node</generator><lastBuildDate>Sun, 10 May 2026 21:37:19 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/2961.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 16 Feb 2021 08:35:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Error DHT12 M5stack CORE on Fri, 19 Feb 2021 14:43:29 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/chetosvsgeez" aria-label="Profile: chetosvsgeez">@<bdi>chetosvsgeez</bdi></a></p>
<p dir="auto">Have you considered using the latest UI 1.7.2? Your code runs fine here on a M5Stack Gray and UI 1.7.2.</p>
<p dir="auto">BTW: if you enclose your code with ``` on a new line before and after the code, the code becomes much more readable. For example:</p>
<pre><code>from m5Stack import *
</code></pre>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/12565</link><guid isPermaLink="true">https://community.m5stack.com/post/12565</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Fri, 19 Feb 2021 14:43:29 GMT</pubDate></item></channel></rss>