<?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[Connect a Gesture sensor paj7620u2 to an M5Paper]]></title><description><![CDATA[<p dir="auto">Good morning</p>
<p dir="auto">I'm trying to connect the gesture sensor unit (<a href="https://shop.m5stack.com/collections/m5-sensor/products/unit-gesture-recognition-sensor-paj7620u2" target="_blank" rel="noopener noreferrer nofollow ugc">https://shop.m5stack.com/collections/m5-sensor/products/unit-gesture-recognition-sensor-paj7620u2</a>) to an M5 Paper.</p>
<p dir="auto">To do that I'm just using part of the code of the example but adapting it to the M5paper (just using the M5paper libraries) <a href="https://github.com/m5stack/M5Stack/blob/master/examples/Unit/GESTURE_PAJ7620U2/GESTURE_PAJ7620U2.ino" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5Stack/blob/master/examples/Unit/GESTURE_PAJ7620U2/GESTURE_PAJ7620U2.ino</a></p>
<p dir="auto">Unfortunately it fails in the initialization of the sensor (begin function) More info <a href="https://github.com/m5stack/M5Stack/blob/master/examples/Unit/GESTURE_PAJ7620U2/GESTURE_PAJ7620U2.ino" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5Stack/blob/master/examples/Unit/GESTURE_PAJ7620U2/GESTURE_PAJ7620U2.ino</a></p>
<p dir="auto">The example says to connect the sensor to port A (G21/G22) on an M5Core but the M5paper uses different pins, I've tried connecting the sensor in Port A, B and C with no success</p>
<p dir="auto">Any idea about how to solve this issue?</p>
<p dir="auto">the example works without any problem on an M5Stack fire!</p>
<p dir="auto">kind regards</p>
]]></description><link>https://community.m5stack.com/topic/4302/connect-a-gesture-sensor-paj7620u2-to-an-m5paper</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 23:05:34 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4302.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 17 May 2022 17:15:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Connect a Gesture sensor paj7620u2 to an M5Paper on Sat, 23 Jul 2022 06:08:35 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/jcarolinares" aria-label="Profile: jcarolinares">@<bdi>jcarolinares</bdi></a></p>
<p dir="auto">in case you are still looking for a solution. I've received my gesture unit and did a quick test. The library allows to pass the <code>Wire1</code> instance so it's quite straight forward.<br />
See example <a href="https://github.com/felmue/MyM5StackExamples/blob/main/M5Paper/GestureSensor.ino" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/17698</link><guid isPermaLink="true">https://community.m5stack.com/post/17698</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sat, 23 Jul 2022 06:08:35 GMT</pubDate></item><item><title><![CDATA[Reply to Connect a Gesture sensor paj7620u2 to an M5Paper on Tue, 17 May 2022 19:55:26 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/jcarolinares" aria-label="Profile: jcarolinares">@<bdi>jcarolinares</bdi></a></p>
<p dir="auto">have a look at this <a href="https://community.m5stack.com/topic/2982/m5paper-i2c/7">thread</a> explaining the internal I2C bus (using <code>Wire</code>) and external I2C bus (using <code>Wire1</code>) used in M5Paper. You'll need to modify the gesture library to use <code>Wire1</code> (instead of <code>Wire</code>) with the GPIOs used on port A.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/17510</link><guid isPermaLink="true">https://community.m5stack.com/post/17510</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Tue, 17 May 2022 19:55:26 GMT</pubDate></item></channel></rss>