<?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[M5StickC AXP I2C]]></title><description><![CDATA[<p dir="auto">Is there any documentation of the I2C memory mapping and usage for the ASP192?</p>
<p dir="auto">I have found a reference in Axp.GetBtnPress() that writes to 0x46.  What is at this address (or any address for that matter)?</p>
<p dir="auto">What button is associated with the AXP192?</p>
]]></description><link>https://community.m5stack.com/topic/1179/m5stickc-axp-i2c</link><generator>RSS for Node</generator><lastBuildDate>Sun, 15 Mar 2026 08:06:32 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1179.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 02 Aug 2019 15:33:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5StickC AXP I2C on Sun, 04 Aug 2019 20:52:16 GMT]]></title><description><![CDATA[<p dir="auto">Hi, you can find the <a href="https://github.com/m5stack/M5-Schematic/blob/master/Core/AXP192%20Datasheet%20v1.13_cn.pdf" target="_blank" rel="noopener noreferrer nofollow ugc">datasheet here</a>. It is in Chinese but Google translate does a pretty decent job so we can understand almost everything.</p>
<p dir="auto">You can also have a look a register 36h where you can modify long/short press times. Be careful, this button is used to power-on/off the device</p>
]]></description><link>https://community.m5stack.com/post/5015</link><guid isPermaLink="true">https://community.m5stack.com/post/5015</guid><dc:creator><![CDATA[Oliv&#x27;]]></dc:creator><pubDate>Sun, 04 Aug 2019 20:52:16 GMT</pubDate></item><item><title><![CDATA[Reply to M5StickC AXP I2C on Sat, 03 Aug 2019 18:47:01 GMT]]></title><description><![CDATA[<p dir="auto">The datasheet has most of the registers explained. I have the Chinese version, so it requires a little squinting (my Chinese is ok but nowhere near the level required to read datasheets with a smile pasted on my face ;-).</p>
<p dir="auto">However I recently spent some quality time with the source code and the datasheet, so I have that more or less nailed down.</p>
<p dir="auto"><img src="/assets/uploads/files/1564857639777-084f8473-5542-4879-9369-06395cf83b15-image.png" alt="0_1564857639385_084f8473-5542-4879-9369-06395cf83b15-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Register 46H is IRQ Status 3. Bits 0/1 are for the button:</p>
<pre><code>// 0 not press, 0x01 long press, 0x02 press
uint8_t AXP192::GetBtnPress() {
  Wire1.beginTransmission(0x34);
  Wire1.write(0x46);
  Wire1.endTransmission();
  Wire1.requestFrom(0x34, 1);
  uint8_t state = Wire1.read();
  if (state) {
    Wire1.beginTransmission(0x34);
    Wire1.write(0x46);
    Wire1.write(0x03);
    Wire1.endTransmission();
  }
  return state;
}
</code></pre>
<p dir="auto">In <code>Wire1.write(0x03);</code> 0x03 is the two bits 0 and 1 set.</p>
<p dir="auto">There are many more registers, and the best would be to get a datasheet in English and read the registers description.</p>
]]></description><link>https://community.m5stack.com/post/4996</link><guid isPermaLink="true">https://community.m5stack.com/post/4996</guid><dc:creator><![CDATA[dda]]></dc:creator><pubDate>Sat, 03 Aug 2019 18:47:01 GMT</pubDate></item></channel></rss>