<?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[core2_factory_test.ino error i2c_err_t]]></title><description><![CDATA[<p dir="auto">Hello guys, I just got my M5Stack Core2 and im new to all this so bear with me here.<br />
Im working on a M1 MacBook Air, I installed Arduino IDE 2.0.3 M5Core2 Library 0.1.5 with all of the dependences it requires. I cloned the M5-ProductExampleCodes repo and am trying to compile core2_factory_test.ino but it keeps giving me an error. I already searched online for the same issue but i havent found anything. would anyone be able to give me a hand with this? Thanks in advance.</p>
<p dir="auto">this is the error im getting from the compiler:</p>
<p dir="auto">"/Users/u0xpsec/M5-ProductExampleCodes/Core/M5Core2/Arduino/Core2_Factory_test/ft6336_fw_updater.cpp: In function 'bool i2c_read(const uint8_t*, int, uint8_t*, int)':<br />
/Users/u0xpsec/M5-ProductExampleCodes/Core/M5Core2/Arduino/Core2_Factory_test/ft6336_fw_updater.cpp:44:9: error: 'i2c_err_t' has not been declared<br />
if (i2c_err_t::I2C_ERROR_CONTINUE != Wire1.writeTransmission(i2c_addr, const_cast&lt;uint8_t*&gt;(wrbuf), wrlen, false))<br />
^~~~~~~~~<br />
/Users/u0xpsec/M5-ProductExampleCodes/Core/M5Core2/Arduino/Core2_Factory_test/ft6336_fw_updater.cpp:44:48: error: 'class TwoWire' has no member named 'writeTransmission'; did you mean 'beginTransmission'?<br />
if (i2c_err_t::I2C_ERROR_CONTINUE != Wire1.writeTransmission(i2c_addr, const_cast&lt;uint8_t*&gt;(wrbuf), wrlen, false))<br />
^~~~~~~~~~~~~~~~~<br />
beginTransmission<br />
/Users/u0xpsec/M5-ProductExampleCodes/Core/M5Core2/Arduino/Core2_Factory_test/ft6336_fw_updater.cpp:50:7: error: 'i2c_err_t' has not been declared<br />
if (i2c_err_t::I2C_ERROR_OK != Wire1.readTransmission(i2c_addr, rdbuf, rdlen, true))<br />
^~~~~~~~~<br />
/Users/u0xpsec/M5-ProductExampleCodes/Core/M5Core2/Arduino/Core2_Factory_test/ft6336_fw_updater.cpp:50:40: error: 'class TwoWire' has no member named 'readTransmission'; did you mean 'endTransmission'?<br />
if (i2c_err_t::I2C_ERROR_OK != Wire1.readTransmission(i2c_addr, rdbuf, rdlen, true))<br />
^~~~~~~~~~~~~~~~<br />
endTransmission<br />
/Users/u0xpsec/M5-ProductExampleCodes/Core/M5Core2/Arduino/Core2_Factory_test/ft6336_fw_updater.cpp: In function 'bool i2c_write(const uint8_t*, int)':<br />
/Users/u0xpsec/M5-ProductExampleCodes/Core/M5Core2/Arduino/Core2_Factory_test/ft6336_fw_updater.cpp:60:7: error: 'i2c_err_t' has not been declared<br />
if (i2c_err_t::I2C_ERROR_OK != Wire1.writeTransmission(i2c_addr, const_cast&lt;uint8_t*&gt;(buf), len, true))<br />
^~~~~~~~~<br />
/Users/u0xpsec/M5-ProductExampleCodes/Core/M5Core2/Arduino/Core2_Factory_test/ft6336_fw_updater.cpp:60:40: error: 'class TwoWire' has no member named 'writeTransmission'; did you mean 'beginTransmission'?<br />
if (i2c_err_t::I2C_ERROR_OK != Wire1.writeTransmission(i2c_addr, const_cast&lt;uint8_t*&gt;(buf), len, true))<br />
^~~~~~~~~~~~~~~~~<br />
beginTransmission</p>
<p dir="auto">exit status 1</p>
<p dir="auto">Compilation error: 'i2c_err_t' has not been declared"</p>
]]></description><link>https://community.m5stack.com/topic/4961/core2_factory_test-ino-error-i2c_err_t</link><generator>RSS for Node</generator><lastBuildDate>Sat, 09 May 2026 19:17:28 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4961.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 09 Jan 2023 14:49:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to core2_factory_test.ino error i2c_err_t on Wed, 11 Jan 2023 01:15:55 GMT]]></title><description><![CDATA[<p dir="auto">thank you for the reply ill try comenting that piece of code and see if it compile.</p>
]]></description><link>https://community.m5stack.com/post/19819</link><guid isPermaLink="true">https://community.m5stack.com/post/19819</guid><dc:creator><![CDATA[u0xpsec]]></dc:creator><pubDate>Wed, 11 Jan 2023 01:15:55 GMT</pubDate></item><item><title><![CDATA[Reply to core2_factory_test.ino error i2c_err_t on Tue, 10 Jan 2023 10:39:07 GMT]]></title><description><![CDATA[<p dir="auto">Hello guys</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/teastain" aria-label="Profile: teastain">@<bdi>teastain</bdi></a> : ft6336 != AT608A</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/u0xpsec" aria-label="Profile: u0xpsec">@<bdi>u0xpsec</bdi></a> : M5Core2 factory test code is broken for Arduino 2.x.x. You can either setup and compile with Arduino 1.x.x, try to fix the issue for Arduino 2.x.x. or as I did, comment out the not working part of the code which is not critical as is to update the ft6336 touch screen.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/19798</link><guid isPermaLink="true">https://community.m5stack.com/post/19798</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Tue, 10 Jan 2023 10:39:07 GMT</pubDate></item><item><title><![CDATA[Reply to core2_factory_test.ino error i2c_err_t on Tue, 10 Jan 2023 02:38:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/teastain" aria-label="Profile: teastain">@<bdi>teastain</bdi></a> i havent even tried to upload the one i have errors with, just verifying/compiling makes it errors. all ive done so far is use the m5burner to test different things.</p>
]]></description><link>https://community.m5stack.com/post/19793</link><guid isPermaLink="true">https://community.m5stack.com/post/19793</guid><dc:creator><![CDATA[u0xpsec]]></dc:creator><pubDate>Tue, 10 Jan 2023 02:38:03 GMT</pubDate></item></channel></rss>