<?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[SPI on M5Tough (MAX31865)]]></title><description><![CDATA[<p dir="auto">I have done several projects with the M5Tough and I really love the device. However I need an SPI connection now on the M5Tough to communicate with  a MAX31865 for reading out temperatures from a PT100. This is a real requirement I can not use something else than a PT100!<br />
I always use Arduino code for the M5Tough, how can I configure the pins on the extensions board as (software) SPI pins and have it working with the Adafruit arduino Library?<br />
Can you please get me started/help me out here please?</p>
]]></description><link>https://community.m5stack.com/topic/3754/spi-on-m5tough-max31865</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 23:55:29 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/3754.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 18 Nov 2021 14:04:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SPI on M5Tough (MAX31865) on Thu, 18 Nov 2021 18:10:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a> thank you for this quick and excellent reply!!! I will do this. Can you just tell me if I need to specify the pins as GPIO33 or 33 in the constructor</p>
]]></description><link>https://community.m5stack.com/post/15514</link><guid isPermaLink="true">https://community.m5stack.com/post/15514</guid><dc:creator><![CDATA[GrtVHecke]]></dc:creator><pubDate>Thu, 18 Nov 2021 18:10:44 GMT</pubDate></item><item><title><![CDATA[Reply to SPI on M5Tough (MAX31865) on Thu, 18 Nov 2021 15:08:28 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/grtvhecke" aria-label="Profile: GrtVHecke">@<bdi>GrtVHecke</bdi></a></p>
<p dir="auto">software SPI can be assigned to almost any GPIO - just select four GPIOs available on port A (GPIO33 / 32), port B (GPIO36 / 26) and C (GPIO13 / 14).<br />
Note: GPIO36 can only be an input</p>
<p dir="auto">In you sketch use this line:</p>
<pre><code>// Use software SPI: CS, DI, DO, CLK
Adafruit_MAX31865 thermo = Adafruit_MAX31865(&lt;CS&gt;, &lt;MOSI&gt;, &lt;MISO&gt;, &lt;SCK&gt;);
</code></pre>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/15513</link><guid isPermaLink="true">https://community.m5stack.com/post/15513</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Thu, 18 Nov 2021 15:08:28 GMT</pubDate></item></channel></rss>