<?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[ATOM Lite and ENV.II]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I'm trying to get the  working with ENV.II unit using modified sample code from <a href="https://github.com/m5stack/M5-ProductExampleCodes/blob/master/Unit/ENVII/Arduino/ENVII/ENVII.ino" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5-ProductExampleCodes/blob/master/Unit/ENVII/Arduino/ENVII/ENVII.ino</a> but I keep getting the "Could not find a valid BMP280 sensor, check wiring!" error.</p>
<p dir="auto">I've got the ENV.II working with M5Stack Core, but can't figure out the ATOM Lite.</p>
<p dir="auto">The code is as follows:</p>
<pre><code>#include "M5Atom.h"
#include &lt;Wire.h&gt;
#include "Adafruit_Sensor.h"
#include &lt;Adafruit_BMP280.h&gt;
#include "SHT3X.h"
SHT3X sht30;
Adafruit_BMP280 bme;

float tmp = 0.0;
float hum = 0.0;
float pressure = 0.0;

void setup()
{
  M5.begin(true, true, true);
  Wire.begin();
  Serial.println(F("ENV Unit(SHT30 and BMP280) test..."));
  while (!bme.begin(0x76))
  {
    Serial.println("Could not find a valid BMP280 sensor, check wiring!");
  }
}

void loop() {
  pressure = bme.readPressure();
  if(sht30.get()==0){
    tmp = sht30.cTemp;
    hum = sht30.humidity;
  }
  Serial.printf("Temperature: %2.2f*C  Humidity: %0.2f%%  Pressure: %0.2fPa\r\n", tmp, hum, pressure);

  delay(100);

}
</code></pre>
<p dir="auto">Any suggestions would be appreciated,<br />
Thank you</p>
]]></description><link>https://community.m5stack.com/topic/2564/atom-lite-and-env-ii</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 09:36:45 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/2564.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 07 Dec 2020 10:51:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ATOM Lite and ENV.II on Fri, 06 Oct 2023 21:39:21 GMT]]></title><description><![CDATA[<p dir="auto">I have tried using code above and similar from M5Stack repo. I changed the pin assignments to 19 and 22, which works fine on an alt. setup with Atom Lite, Env I hat, and Atom Mate.</p>
<p dir="auto">Using the setup below:<br />
Atom Matrix<br />
Env II hat<br />
Atom Mate</p>
<p dir="auto">I get this error and continuous reset loop.</p>
<p dir="auto">[   913][W][Wire.cpp:301] begin(): Bus already started in Master Mode.<br />
Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.</p>
<p dir="auto">If I pull out the hat, I get a warning via the code that it is disconnected. I know the origin of this post was from long ago, but I can't think what could be causing it. Is there any difference between Env II unit and Env II hat? Any other thoughts welcome.</p>
]]></description><link>https://community.m5stack.com/post/22427</link><guid isPermaLink="true">https://community.m5stack.com/post/22427</guid><dc:creator><![CDATA[gavin67890]]></dc:creator><pubDate>Fri, 06 Oct 2023 21:39:21 GMT</pubDate></item><item><title><![CDATA[Reply to ATOM Lite and ENV.II on Mon, 07 Dec 2020 12:26:05 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a></p>
<p dir="auto">Thank you for the advice, the  <code>Wire.begin(26, 32)</code> is what I was missing.<br />
I tired <code> M5.begin(true, false, true)</code> before but, by itself, it didn't make any difference.</p>
<p dir="auto">Looks like explicitly specifying I2C pins is the way to go.</p>
<p dir="auto">Again, thank you<br />
regres</p>
]]></description><link>https://community.m5stack.com/post/11089</link><guid isPermaLink="true">https://community.m5stack.com/post/11089</guid><dc:creator><![CDATA[regres]]></dc:creator><pubDate>Mon, 07 Dec 2020 12:26:05 GMT</pubDate></item><item><title><![CDATA[Reply to ATOM Lite and ENV.II on Mon, 07 Dec 2020 11:40:23 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/regres" aria-label="Profile: regres">@<bdi>regres</bdi></a></p>
<p dir="auto">the Groove connector on M5Atom Lite uses GPIO26 and GPIO32 as SDA and SDL. Try this:</p>
<pre><code>  M5.begin(true, false, true);
  Wire.begin(26, 32);
</code></pre>
<p dir="auto">Note: second parameter to <code>M5.begin()</code> set to <code>false</code> to disable default I2C initialisation (which uses different GPIOs). Then initialise I2C with desired GPIOs.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/11088</link><guid isPermaLink="true">https://community.m5stack.com/post/11088</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Mon, 07 Dec 2020 11:40:23 GMT</pubDate></item></channel></rss>