<?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[Ultrasonic I2C module and using port B and Port C on Core2 for AWS with the included library]]></title><description><![CDATA[<p dir="auto">I have an Ultrasonic I2C module and am trying to use it with the AWS Core 2 device.  It works fine on port a, but am trying to use port b or port c for the I2C commications.  I am using the Arduino development environment and the code in place that works with port a is this:</p>
<pre><code>SONIC_I2C sensor;

sensor.begin(); 
newvalue = sensor.getDistance(); //this is returned in mm
CoreS3.Lcd.printf("%.2f mm", newvalue);
</code></pre>
<p dir="auto">I do not know how to do the same with the sensor plugged into Port B or Port C?</p>
<p dir="auto">thanks for any assistance!</p>
]]></description><link>https://community.m5stack.com/topic/7041/ultrasonic-i2c-module-and-using-port-b-and-port-c-on-core2-for-aws-with-the-included-library</link><generator>RSS for Node</generator><lastBuildDate>Wed, 13 May 2026 04:15:25 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/7041.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 30 Nov 2024 18:28:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ultrasonic I2C module and using port B and Port C on Core2 for AWS with the included library on Fri, 20 Dec 2024 13:45:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a> thanks.</p>
<p dir="auto">I did not there was a different port version of the sensor?</p>
]]></description><link>https://community.m5stack.com/post/27532</link><guid isPermaLink="true">https://community.m5stack.com/post/27532</guid><dc:creator><![CDATA[tdahbura]]></dc:creator><pubDate>Fri, 20 Dec 2024 13:45:11 GMT</pubDate></item><item><title><![CDATA[Reply to Ultrasonic I2C module and using port B and Port C on Core2 for AWS with the included library on Mon, 02 Dec 2024 06:17:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tdahbura" aria-label="Profile: tdahbura">@<bdi>tdahbura</bdi></a> You cant use it on port B because the port has one hardware fixed output pin and one hardware fixed input pin.<br />
Port C is attached to dedicated UART pins.<br />
For port B you need the PortB version of the sensor or use a the PaHub .</p>
]]></description><link>https://community.m5stack.com/post/27288</link><guid isPermaLink="true">https://community.m5stack.com/post/27288</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Mon, 02 Dec 2024 06:17:22 GMT</pubDate></item><item><title><![CDATA[Reply to Ultrasonic I2C module and using port B and Port C on Core2 for AWS with the included library on Mon, 02 Dec 2024 21:59:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tdahbura" aria-label="Profile: tdahbura">@<bdi>tdahbura</bdi></a> Deleted previous post with assertions that did not pan out in my tests!<br />
Sorry</p>
]]></description><link>https://community.m5stack.com/post/27263</link><guid isPermaLink="true">https://community.m5stack.com/post/27263</guid><dc:creator><![CDATA[teastain]]></dc:creator><pubDate>Mon, 02 Dec 2024 21:59:51 GMT</pubDate></item></channel></rss>