<?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[ENV IV Unit not working with firmware V2.0.8]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I did not succeed to make my ENV IV unit working with Firmware V2.0.8.<br />
Same issue with a M5Dial and a M5StickC</p>
<p dir="auto">The code (for StickC)</p>
<pre><code>import os, sys, io
import M5
from M5 import *
from hardware import *
from unit import ENVUnit

label0 = None
i2c0 = None
env4_0 = None


def setup():
  global label0, i2c0, env4_0

  M5.begin()
  label0 = Widgets.Label("label0", 4, 26, 1.0, 0xffffff, 0x222222, Widgets.FONTS.DejaVu18)

  i2c0 = I2C(0, scl=Pin(33), sda=Pin(32), freq=100000)
  print(i2c0.scan())
  env4_0 = ENVUnit(i2c=i2c0, type=4)
  label0.setText(str(env4_0.read_temperature()))


def loop():
  global label0, i2c0, env4_0
  M5.update()


if __name__ == '__main__':
  try:
    setup()
    while True:
      loop()
  except (Exception, KeyboardInterrupt) as e:
    try:
      from utility import print_error_msg
      print_error_msg(e)
    except ImportError:
      print("please update to latest firmware")

</code></pre>
<p dir="auto">The output :<br />
[68, 118]<br />
Traceback (most recent call last):<br />
File "&lt;stdin&gt;", line 22, in &lt;module&gt;<br />
File "&lt;stdin&gt;", line 15, in setup<br />
File "unit/env.py", line 1, in <strong>init</strong><br />
File "driver/bmp280.py", line 113, in <strong>init</strong><br />
ValueError: device not found</p>
<p dir="auto">However, the 2 sensors are well detected during the I2C scan ( 68 is the SHT40, 118 is the BMP280).</p>
<p dir="auto">With Firmware V2.0.7, no issue for both devices.</p>
]]></description><link>https://community.m5stack.com/topic/6580/env-iv-unit-not-working-with-firmware-v2-0-8</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 07:42:10 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/6580.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 23 Jun 2024 17:03:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ENV IV Unit not working with firmware V2.0.8 on Fri, 05 Jul 2024 09:01:55 GMT]]></title><description><![CDATA[<p dir="auto">Hi guys</p>
<p dir="auto">please try v2.0.9 which has the issue resolved.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/25752</link><guid isPermaLink="true">https://community.m5stack.com/post/25752</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Fri, 05 Jul 2024 09:01:55 GMT</pubDate></item><item><title><![CDATA[Reply to ENV IV Unit not working with firmware V2.0.8 on Tue, 25 Jun 2024 16:07:08 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I had this too and messaged M5stack, they said it is a bug since the new firmware 2.08 and they are fixing it.</p>
<p dir="auto">2.07 works fine with it.</p>
<p dir="auto">Thanks,</p>
<p dir="auto">Matthew</p>
]]></description><link>https://community.m5stack.com/post/25678</link><guid isPermaLink="true">https://community.m5stack.com/post/25678</guid><dc:creator><![CDATA[mattjcuk]]></dc:creator><pubDate>Tue, 25 Jun 2024 16:07:08 GMT</pubDate></item><item><title><![CDATA[Reply to ENV IV Unit not working with firmware V2.0.8 on Mon, 24 Jun 2024 10:35:21 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/dcn91" aria-label="Profile: dcn91">@<bdi>dcn91</bdi></a></p>
<p dir="auto">it's broken for me to. M5Dial UIFlow firmware v2.0.<strong>8</strong>. (And yes, with UIFlow firmware v2.0.7 it works fine.)</p>
<p dir="auto">Note: created an issue <a href="https://github.com/m5stack/uiflow-micropython/issues/23" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/25664</link><guid isPermaLink="true">https://community.m5stack.com/post/25664</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Mon, 24 Jun 2024 10:35:21 GMT</pubDate></item></channel></rss>